Changeset 22536
- Timestamp:
- 03/13/18 14:53:54 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/modules/ModelProcessorx/Control/UpdateElementsAndMaterialsControl.cpp ¶
r22517 r22536 131 131 void UpdateElementsAndMaterialsControl(Elements* elements,Materials* materials, IoModel* iomodel){ 132 132 133 133 134 /*Intermediaries*/ 134 135 int num_independent_objects,M,N; … … 138 139 IssmDouble** independents_min = NULL; 139 140 IssmDouble** independents_max = NULL; 141 bool control_analysis =false; 142 143 iomodel->FindConstant(&control_analysis,"md.inversion.iscontrol"); 144 145 /*Now, return if no control*/ 146 if(!control_analysis) return; 140 147 141 148 /*Step1: create controls (independents)*/ 142 149 iomodel->FetchData(&num_independent_objects,"md.autodiff.num_independent_objects"); 143 //_assert_(num_independent_objects>0);150 _assert_(num_independent_objects>0); 144 151 iomodel->FetchData(&names,&M,"md.autodiff.independent_object_names"); 145 152 _assert_(M==num_independent_objects);
Note:
See TracChangeset
for help on using the changeset viewer.