Changeset 1840
- Timestamp:
- 08/24/09 17:57:05 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Qmux/Qmux.cpp
r970 r1840 57 57 58 58 #ifdef _SERIAL_ 59 void Qmux(mxArray* femmodels,mxArray* inputs,int analysis_type,int sub_analysis_type,char* dakota_input_file,char* dakota_output_file,char* dakota_error_file){59 void Qmux(mxArray* model,mxArray* inputs,int analysis_type,int sub_analysis_type,char* dakota_input_file,char* dakota_output_file,char* dakota_error_file){ 60 60 #else 61 void Qmux( FemModel* femmodels,ParameterInputs* inputs,int analysis_type,int sub_analysis_type){61 void Qmux(Model* model,ParameterInputs* inputs,int analysis_type,int sub_analysis_type){ 62 62 #endif 63 63 … … 76 76 #ifdef _PARALLEL_ 77 77 /*Recover dakota_input_file, dakota_output_file and dakota_error_file, in the parameters dataset in parallel */ 78 femmodels->parameters->FindParam((void*)&dakota_input_file,"qmuinname");79 femmodels->parameters->FindParam((void*)&dakota_output_file,"qmuoutname");80 femmodels->parameters->FindParam((void*)&dakota_error_file,"qmuerrname");78 model->DiagnosticHorizontal()->parameters->FindParam((void*)&dakota_input_file,"qmuinname"); 79 model->DiagnosticHorizontal()->parameters->FindParam((void*)&dakota_output_file,"qmuoutname"); 80 model->DiagnosticHorizontal()->parameters->FindParam((void*)&dakota_error_file,"qmuerrname"); 81 81 #endif 82 82 … … 117 117 118 118 // Serial case: plug in derived Interface object without an analysisComm 119 interface.assign_rep(new SIM::DakotaPlugin(problem_db,(void*) femmodels,(void*)inputs,analysis_type,sub_analysis_type), false);119 interface.assign_rep(new SIM::DakotaPlugin(problem_db,(void*)model,(void*)inputs,analysis_type,sub_analysis_type), false); 120 120 } 121 121 … … 134 134 for(;;){ 135 135 136 SpawnCore(NULL,0, NULL,NULL,0, femmodels,inputs,analysis_type,sub_analysis_type,0);136 SpawnCore(NULL,0, NULL,NULL,0,model,inputs,analysis_type,sub_analysis_type,0); 137 137 138 138 //Figure out if cpu 0 is done iterating
Note:
See TracChangeset
for help on using the changeset viewer.