Changeset 24451


Ignore:
Timestamp:
12/06/19 08:54:38 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing dakota output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/OutputResultsx/OutputResultsx.cpp

    r24448 r24451  
    2424        int         solutiontype;
    2525        char*       solutiontypestring      = NULL;
    26         bool        dakota_analysis;
    27         bool        dakota_output;
    2826
    29         /*retrieve parameters: */
    30         femmodel->parameters->FindParam(&dakota_analysis,QmuIsdakotaEnum);
    31         femmodel->parameters->FindParam(&dakota_output,QmuOutputEnum);
    3227
    3328        /*recover my_rank:*/
    3429        my_rank=IssmComm::GetRank();
    3530
    36         if(dakota_analysis & !dakota_output){
    37                 //user wants to rely purely on Dakota analysis output, not the core output.
    38                 return;
     31        /*If we are running dakota, do we want to output?*/
     32        bool dakota_analysis;
     33        femmodel->parameters->FindParam(&dakota_analysis,QmuIsdakotaEnum);
     34        if(dakota_analysis){
     35                bool dakota_output;
     36                femmodel->parameters->FindParam(&dakota_output,QmuOutputEnum);
     37                if(!dakota_output) return;
    3938        }
    4039
Note: See TracChangeset for help on using the changeset viewer.