Changeset 1829
- Timestamp:
- 08/24/09 17:48:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/parallel/ControlInitialization.cpp
r1805 r1829 13 13 #include "../issm.h" 14 14 15 void ControlInitialization( FemModel** pmodel, FemModel* fems, ParameterInputs* inputs){15 void ControlInitialization(Model* model, ParameterInputs* inputs){ 16 16 17 17 extern int my_rank; … … 53 53 54 54 /*recover fem models: */ 55 fem_dh= fems+0;56 fem_dv= fems+1;57 fem_ds= fems+2;58 fem_dhu= fems+3;59 fem_sl= fems+4;55 fem_dh=model->DiagnosticHorizontal(); 56 fem_dv=model->DiagnosticVertical(); 57 fem_ds=model->DiagnosticStokes(); 58 fem_dhu=model->DiagnosticHutter(); 59 fem_sl=model->Slope(); 60 60 61 61 //first recover parameters common to all solutions … … 75 75 /*if no Stokes, assign output and return*/ 76 76 if (!isstokes){ 77 *pmodel=fem_dh;77 model->SetActive(fem_dh); 78 78 return; 79 79 } … … 97 97 //horizontal velocity 98 98 if(debug)_printf_("%s\n"," computing horizontal velocities..."); 99 diagnostic_core_nonlinear(&ug,NULL,NULL, NULL,fem_dh,inputs,DiagnosticAnalysisEnum(),HorizAnalysisEnum());99 diagnostic_core_nonlinear(&ug,NULL,NULL,fem_dh,inputs,DiagnosticAnalysisEnum(),HorizAnalysisEnum()); 100 100 if(debug)_printf_("%s\n"," extruding horizontal velocities..."); 101 101 VecDuplicatePatch(&ug_horiz,ug); FieldExtrudex( ug_horiz,fem_dh->elements,fem_dh->nodes, fem_dh->loads,fem_dh-> materials,"velocity",1); … … 138 138 if(debug)_printf_("%s\n"," computing stokes velocities and pressure ..."); 139 139 VecFree(&ug); 140 diagnostic_core_nonlinear(&ug,NULL,NULL,NULL, 140 diagnostic_core_nonlinear(&ug,NULL,NULL,NULL,fem_ds,inputs,DiagnosticAnalysisEnum(),StokesAnalysisEnum()); 141 141 VecFree(&pg); 142 142 … … 146 146 147 147 /*Assign output*/ 148 *pmodel=fem_ds;148 model->SetActive(fem_ds); 149 149 }
Note:
See TracChangeset
for help on using the changeset viewer.