Changeset 9081
- Timestamp:
- 07/20/11 07:30:25 (14 years ago)
- Location:
- issm/trunk/src/c/modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp
r9075 r9081 60 60 } 61 61 } 62 else {62 else if (M==iomodel->numberofvertices+1){ 63 63 /*transient: create transient Spct objects. Same logic, except we need to retrieve 64 64 * various times and values to initialize an Spct object: */ … … 95 95 } 96 96 } 97 else{ 98 _error_("Size of field %s not supported",EnumToStringx(vector_enum)); 99 } 97 100 98 101 /*Free ressources:*/ … … 100 103 xfree((void**)×); 101 104 xfree((void**)&values); 102 103 105 } -
issm/trunk/src/c/modules/ModelProcessorx/Balancethickness/CreateConstraintsBalancethickness.cpp
r8926 r9081 1 /*2 * CreateConstraintsBalancethickness.c:3 */4 5 1 #include "../../../Container/Container.h" 2 #include "../../../modules/modules.h" 6 3 #include "../../../io/io.h" 7 4 #include "../../../toolkits/toolkits.h" … … 12 9 13 10 void CreateConstraintsBalancethickness(Constraints** pconstraints, IoModel* iomodel,FILE* iomodel_handle){ 14 15 /*Intermediary*/16 int i;17 int count;18 11 19 12 /*Output*/ … … 28 21 /*Do not add constraints in DG*/ 29 22 if(!iomodel->prognostic_DG){ 30 31 /*Fetch data: */ 32 IoModelFetchData(&iomodel->spcthickness,NULL,NULL,iomodel_handle,SpcthicknessEnum); 33 34 /*Initialize counter*/ 35 count=0; 36 37 /*Create spcs from x,y,z, as well as the spc values on those spcs: */ 38 for (i=0;i<iomodel->numberofvertices;i++){ 39 if(iomodel->my_vertices[i]){ 40 41 if ((int)iomodel->spcthickness[2*i]){ 42 43 constraints->AddObject(new Spc(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,1, 44 *(iomodel->spcthickness+2*i+1),BalancethicknessAnalysisEnum));//we enforce first translation degree of freedom, for temperature 45 count++; 46 } 47 } 48 } 49 50 /*Free data: */ 51 xfree((void**)&iomodel->spcthickness); 23 IoModelToConstraintsx(constraints,iomodel,iomodel_handle,SpcthicknessEnum,BalancethicknessAnalysisEnum); 52 24 } 53 25 -
issm/trunk/src/c/modules/ModelProcessorx/Prognostic/CreateConstraintsPrognostic.cpp
r9075 r9081 10 10 void CreateConstraintsPrognostic(Constraints** pconstraints, IoModel* iomodel,FILE* iomodel_handle){ 11 11 12 /*Intermediary*/13 int i;14 int count;15 16 12 /*Output*/ 17 13 Constraints *constraints = NULL; 18 Spc *spc = NULL;19 14 20 15 /*Recover pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/Thermal/CreateConstraintsThermal.cpp
r9002 r9081 27 27 if(!constraints) constraints = new Constraints(ConstraintsEnum); 28 28 29 /*return if 2d mesh*/ 30 if (iomodel->dim==2) goto cleanup_and_return; 31 32 /*Create constraints: */ 33 IoModelToConstraintsx(constraints,iomodel,iomodel_handle,SpctemperatureEnum,ThermalAnalysisEnum); 34 35 cleanup_and_return: 29 /*Only 3d mesh supported*/ 30 if (iomodel->dim==3){ 31 IoModelToConstraintsx(constraints,iomodel,iomodel_handle,SpctemperatureEnum,ThermalAnalysisEnum); 32 } 36 33 37 34 /*Assign output pointer: */
Note:
See TracChangeset
for help on using the changeset viewer.