Ignore:
Timestamp:
11/29/11 16:04:20 (13 years ago)
Author:
Mathieu Morlighem
Message:

Improvement: do not load control parameters if iscontrol=0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/Control/UpdateElementsAndMaterialsControl.cpp

    r9733 r10970  
    2929        iomodel->Constant(&numberofelements,MeshNumberofelementsEnum);
    3030        iomodel->Constant(&control_analysis,InversionIscontrolEnum);
    31         iomodel->Constant(&num_control_type,InversionNumControlParametersEnum);
     31        if(control_analysis) iomodel->Constant(&num_control_type,InversionNumControlParametersEnum);
    3232
    3333        /*Now, return if no control*/
Note: See TracChangeset for help on using the changeset viewer.