2DSA Processor object More...
#include "us_2dsa_process.h"
Public Types | |
enum | RefineType { UGRID, LUGRID, RLGRID, SOLCO, CLIPLO } |
The type of refinement used. More... | |
enum | TaskState { READY, WORKING, ABORTED } |
The state of a task. More... | |
Signals | |
void | progress_update (int) |
void | process_complete (int) |
void | stage_complete (int, int) |
void | message_update (QString, bool) |
Public Member Functions | |
US_2dsaProcess (QList< SS_DATASET * > &, QObject *=0) | |
Create a 2DSA processor object. More... | |
void | start_fit (double, double, int, double, double, int, int, int, int) |
Start the fit calculations. More... | |
void | set_iters (int, int, int, double, double, double, int) |
Set up iteration-related parameters for a fit. More... | |
bool | get_results (US_DataIO::RawData *, US_DataIO::RawData *, US_Model *, US_Noise *, US_Noise *) |
Get results upon completion of all refinements. More... | |
void | stop_fit (void) |
Stop the current fit processing. More... | |
void | clear_data (void) |
Clear all data memory for the processor. More... | |
int | estimate_steps (int) |
Estimate progress steps after depth 0. More... | |
QString | lastError (void) |
Get message for last error. More... | |
Static Public Attributes | |
static const int | solute_doubles = sizeof( US_Solute ) / sizeof( double ) |
Private Slots | |
void | queue_task (WorkPacket2D &, double, double, int, int, int, QVector< US_Solute >) |
void | process_job (WorkerThread2D *) |
void | process_final (WorkerThread2D *) |
void | step_progress (int) |
void | final_computes (void) |
void | iterate (void) |
void | set_meniscus (void) |
void | set_monteCarlo (void) |
void | set_gaussians (void) |
void | requeue_tasks (void) |
void | submit_job (WorkPacket2D &, int) |
void | free_worker (int) |
int | running_at_depth (int) |
int | queued_at_depth (int) |
int | jobs_at_depth (int) |
QString | pmessage_head (void) |
WorkPacket2D | next_job (void) |
bool | memory_check (void) |
Private Member Functions | |
long int | max_rss (void) |
2DSA Processor object
This class sets up a set of 2DSA simulations for a grid across an s and k range. It divides the refinements in the grid across a specified number of worker threads.
Definition at line 33 of file us_2dsa_process.h.
The type of refinement used.
Enumerator | |
---|---|
UGRID | |
LUGRID | |
RLGRID | |
SOLCO | |
CLIPLO |
Definition at line 40 of file us_2dsa_process.h.
The state of a task.
Enumerator | |
---|---|
READY | |
WORKING | |
ABORTED |
Definition at line 43 of file us_2dsa_process.h.
US_2dsaProcess::US_2dsaProcess | ( | QList< SS_DATASET * > & | dsets, |
QObject * | parent = 0 |
||
) |
Create a 2DSA processor object.
dsets | Pointer to input experiment data |
parent | Pointer to parent object |
Definition at line 15 of file us_2dsa_process.cpp.
void US_2dsaProcess::clear_data | ( | void | ) |
Clear all data memory for the processor.
Definition at line 360 of file us_2dsa_process.cpp.
int US_2dsaProcess::estimate_steps | ( | int | ncsol | ) |
Estimate progress steps after depth 0.
ncsol | Number of last calculated solutes |
Definition at line 1217 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 384 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1198 of file us_2dsa_process.cpp.
bool US_2dsaProcess::get_results | ( | US_DataIO::RawData * | da_sim, |
US_DataIO::RawData * | da_res, | ||
US_Model * | da_mdl, | ||
US_Noise * | da_tin, | ||
US_Noise * | da_rin | ||
) |
Get results upon completion of all refinements.
da_sim | Calculated simulation data |
da_res | Residuals data (exper - simul) |
da_mdl | Composite model |
da_tin | Time-invariant noise (or null) |
da_rin | Radially-invariant noise (or null) |
Definition at line 786 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1091 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1297 of file us_2dsa_process.cpp.
|
inline |
Get message for last error.
Definition at line 96 of file us_2dsa_process.h.
|
private |
Definition at line 49 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1488 of file us_2dsa_process.cpp.
|
signal |
|
privateslot |
Definition at line 1454 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1447 of file us_2dsa_process.cpp.
|
signal |
|
privateslot |
Definition at line 444 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 838 of file us_2dsa_process.cpp.
|
signal |
|
privateslot |
Definition at line 1052 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1267 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1355 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1281 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1396 of file us_2dsa_process.cpp.
void US_2dsaProcess::set_iters | ( | int | mxiter, |
int | mciter, | ||
int | mniter, | ||
double | vtoler, | ||
double | menrng, | ||
double | cff0, | ||
int | jgref | ||
) |
Set up iteration-related parameters for a fit.
mxiter | Maximum refinement iterations |
mciter | Number of monte carlo iterations |
mniter | Number of meniscus iterations |
vtoler | Variance difference tolerance |
menrng | Meniscus range |
cff0 | Constant f/f0 (or 0.0) |
jgref | Flag of refine/solute type |
Definition at line 295 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1303 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 1319 of file us_2dsa_process.cpp.
|
signal |
void US_2dsaProcess::start_fit | ( | double | sll, |
double | sul, | ||
int | nss, | ||
double | kll, | ||
double | kul, | ||
int | nks, | ||
int | ngr, | ||
int | nthr, | ||
int | noif | ||
) |
Start the fit calculations.
sll | s lower limit |
sul | s upper limit |
nss | number of s steps |
kll | k lower limit |
kul | k upper limit |
nks | number of k steps |
ngr | number of grid refinements |
nthr | number of threads |
noif | noise flag: 0-3 for none|ti|ri|both |
Definition at line 55 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 374 of file us_2dsa_process.cpp.
void US_2dsaProcess::stop_fit | ( | void | ) |
Stop the current fit processing.
Definition at line 321 of file us_2dsa_process.cpp.
|
privateslot |
Definition at line 813 of file us_2dsa_process.cpp.
|
private |
Definition at line 176 of file us_2dsa_process.h.
|
private |
Definition at line 132 of file us_2dsa_process.h.
|
private |
Definition at line 127 of file us_2dsa_process.h.
|
private |
Definition at line 189 of file us_2dsa_process.h.
|
private |
Definition at line 151 of file us_2dsa_process.h.
|
private |
Definition at line 110 of file us_2dsa_process.h.
|
private |
Definition at line 131 of file us_2dsa_process.h.
|
private |
Definition at line 149 of file us_2dsa_process.h.
|
private |
Definition at line 177 of file us_2dsa_process.h.
|
private |
Definition at line 184 of file us_2dsa_process.h.
|
private |
Definition at line 183 of file us_2dsa_process.h.
|
private |
Definition at line 129 of file us_2dsa_process.h.
|
private |
Definition at line 125 of file us_2dsa_process.h.
|
private |
Definition at line 156 of file us_2dsa_process.h.
|
private |
Definition at line 117 of file us_2dsa_process.h.
|
private |
Definition at line 158 of file us_2dsa_process.h.
|
private |
Definition at line 163 of file us_2dsa_process.h.
|
private |
Definition at line 181 of file us_2dsa_process.h.
|
private |
Definition at line 164 of file us_2dsa_process.h.
|
private |
Definition at line 182 of file us_2dsa_process.h.
|
private |
Definition at line 169 of file us_2dsa_process.h.
|
private |
Definition at line 170 of file us_2dsa_process.h.
|
private |
Definition at line 112 of file us_2dsa_process.h.
|
private |
Definition at line 167 of file us_2dsa_process.h.
|
private |
Definition at line 188 of file us_2dsa_process.h.
|
private |
Definition at line 168 of file us_2dsa_process.h.
|
private |
Definition at line 172 of file us_2dsa_process.h.
|
private |
Definition at line 165 of file us_2dsa_process.h.
|
private |
Definition at line 166 of file us_2dsa_process.h.
|
private |
Definition at line 140 of file us_2dsa_process.h.
|
private |
Definition at line 157 of file us_2dsa_process.h.
|
private |
Definition at line 155 of file us_2dsa_process.h.
|
private |
Definition at line 154 of file us_2dsa_process.h.
|
private |
Definition at line 159 of file us_2dsa_process.h.
|
private |
Definition at line 161 of file us_2dsa_process.h.
|
private |
Definition at line 160 of file us_2dsa_process.h.
|
private |
Definition at line 153 of file us_2dsa_process.h.
|
private |
Definition at line 162 of file us_2dsa_process.h.
|
private |
Definition at line 174 of file us_2dsa_process.h.
|
private |
Definition at line 152 of file us_2dsa_process.h.
|
private |
Definition at line 173 of file us_2dsa_process.h.
|
private |
Definition at line 128 of file us_2dsa_process.h.
|
private |
Definition at line 147 of file us_2dsa_process.h.
|
private |
Definition at line 171 of file us_2dsa_process.h.
|
private |
Definition at line 138 of file us_2dsa_process.h.
|
private |
Definition at line 143 of file us_2dsa_process.h.
|
private |
Definition at line 135 of file us_2dsa_process.h.
|
private |
Definition at line 136 of file us_2dsa_process.h.
|
private |
Definition at line 186 of file us_2dsa_process.h.
|
private |
Definition at line 185 of file us_2dsa_process.h.
|
private |
Definition at line 123 of file us_2dsa_process.h.
|
private |
Definition at line 145 of file us_2dsa_process.h.
|
private |
Definition at line 179 of file us_2dsa_process.h.
|
static |
Definition at line 99 of file us_2dsa_process.h.
|
private |
Definition at line 180 of file us_2dsa_process.h.
|
private |
Definition at line 142 of file us_2dsa_process.h.
|
private |
Definition at line 191 of file us_2dsa_process.h.
|
private |
Definition at line 121 of file us_2dsa_process.h.
|
private |
Definition at line 187 of file us_2dsa_process.h.
|
private |
Definition at line 133 of file us_2dsa_process.h.
|
private |
Definition at line 120 of file us_2dsa_process.h.
|
private |
Definition at line 119 of file us_2dsa_process.h.
|
private |
Definition at line 116 of file us_2dsa_process.h.