Changeset 1840


Ignore:
Timestamp:
08/24/09 17:57:05 (15 years ago)
Author:
Eric.Larour
Message:

Brachning back from issm.controlstatic, by hand

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Qmux/Qmux.cpp

    r970 r1840  
    5757
    5858#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){
     59void Qmux(mxArray* model,mxArray* inputs,int analysis_type,int sub_analysis_type,char* dakota_input_file,char* dakota_output_file,char* dakota_error_file){
    6060#else
    61 void Qmux(FemModel* femmodels,ParameterInputs* inputs,int analysis_type,int sub_analysis_type){
     61void Qmux(Model* model,ParameterInputs* inputs,int analysis_type,int sub_analysis_type){
    6262#endif
    6363
     
    7676        #ifdef _PARALLEL_
    7777        /*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");
    8181        #endif
    8282
     
    117117
    118118                        // 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);
    120120                }
    121121       
     
    134134                for(;;){
    135135
    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);
    137137
    138138                        //Figure out if cpu 0 is done iterating
Note: See TracChangeset for help on using the changeset viewer.