1 #ifndef sstmac_libraries_uq_uq_h 2 #define sstmac_libraries_uq_uq_h 111 int njobs,
int nparams,
int nresults,
int max_nthread,
112 const char* param_names[],
uq_param_t* param_values[],
113 double* results[], uq_spawn_type_t ty);
133 int njobs,
int nparams,
int nresults,
int max_nthread,
134 const char* param_names[],
double* param_values[],
const char* units[],
135 double* results[], uq_spawn_type_t spwan_ty);
int sstmac_uq_int_param(void *queue, const char *param)
void sstmac_uq_finalize(void *queue)
void sstmac_uq_busy_loop(void *queue)
void free_values(double **values)
Free a 2D array allocated by allocate_values function.
int sstmac_uq_max_nproc(void *queue)
double ** allocate_values(void *queue, int njobs, int nparams)
Allocate a 2D double array.
void free_results(double **results)
Free a 2D array allocated by allocate_results function.
void * sstmac_uq_init(int argc, char **argv, int *workerID)
void sstmac_uq_stop(void *queue)
int sstmac_uq_sim_nproc(void *queue)
void free_params(uq_param_t **params)
Free a 2D array allocated by allocate_params function.
void sstmac_uq_run_units(void *queue, int njobs, int nparams, int nresults, int max_nthread, const char *param_names[], double *param_values[], const char *units[], double *results[], uq_spawn_type_t spwan_ty)
Run a set of jobs with particular parameters.
void sstmac_uq_run(void *queue, int njobs, int nparams, int nresults, int max_nthread, const char *param_names[], uq_param_t *param_values[], double *results[], uq_spawn_type_t ty)
Run a set of jobs with particular parameters, forking new procs for parallelism.
int sstmac_uq_double_param(void *queue, const char *param)
double ** allocate_results(void *queue, int njobs, int nresults)
Allocate a 2D double array.
uq_param_t ** allocate_params(int njobs, int nparams)
Allocate a 2D array of param structs.