Changeset 4351


Ignore:
Timestamp:
06/30/10 13:10:35 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor bug fix

Location:
issm/trunk/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/ModelProcessorx/Control/CreateParametersControl.cpp

    r4236 r4351  
    2525        if(iomodel->control_analysis){
    2626
    27                 if (strcmp(iomodel->control_type,"drag")==0){
     27                if (strcmp(iomodel->control_type,"drag_coefficient")==0){
    2828                        parameters->AddObject(new BoolParam(ExtrudeParamEnum,false));
    2929                        parameters->AddObject(new IntParam(ControlTypeEnum,DragCoefficientEnum));
    3030                }
    31                 else  if (strcmp(iomodel->control_type,"B")==0){
     31                else  if (strcmp(iomodel->control_type,"rheology_B")==0){
    3232                        parameters->AddObject(new BoolParam(ExtrudeParamEnum,true));
    3333                        parameters->AddObject(new IntParam(ControlTypeEnum,RheologyBEnum));
  • issm/trunk/src/c/solutions/stokescontrolinit.cpp

    r4076 r4351  
    1515
    1616        /*flags: */
    17         int verbose=0;
    18         int isstokes=0;
     17        int    verbose = 0;
     18        bool   isstokes;
    1919        double stokesreconditioning;
    20         bool conserve_loads=true;
     20        bool   conserve_loads = true;
    2121       
    2222        /*first recover parameters common to all solutions:*/
     
    2626
    2727        /*if no Stokes analysis carried out, assign output and return*/
    28         if (!isstokes)femmodel->SetCurrentAnalysis(DiagnosticHorizAnalysisEnum);
     28        if (!isstokes){
     29                femmodel->SetCurrentAnalysis(DiagnosticHorizAnalysisEnum);
     30                return;
     31        }
    2932
    3033        /* For Stokes inverse control method, we are going to carry out the inversion only on the Stokes part. So we need
Note: See TracChangeset for help on using the changeset viewer.