Changeset 3511
- Timestamp:
- 04/12/10 08:51:41 (15 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Icefront.cpp
r3463 r3511 112 112 icefront_b[1]=iomodel->bed[i2-1]; 113 113 114 if ((int)*(iomodel->elements_type+2*element+0)==MacAyealFormulationEnum()){ //this is a collapsed 3d element, icefront will be 2d 115 strcpy(icefront_type,"segment"); 116 } 117 else if ((int)*(iomodel->elements_type+2*element+0)==PattynFormulationEnum()){ //this is a real 3d element, icefront will be 3d. 114 if (iomodel->sub_analysis_type==HorizAnalysisEnum()){ 115 if ((int)*(iomodel->elements_type+2*element+0)==MacAyealFormulationEnum()){ //this is a collapsed 3d element, icefront will be 2d 116 strcpy(icefront_type,"segment"); 117 } 118 else if ((int)*(iomodel->elements_type+2*element+0)==PattynFormulationEnum()){ //this is a real 3d element, icefront will be 3d. 119 strcpy(icefront_type,"quad"); 120 i3=(int)*(iomodel->pressureload+segment_width*i+2); 121 i4=(int)*(iomodel->pressureload+segment_width*i+3); 122 icefront_node_ids[2]=i3; 123 icefront_node_ids[3]=i4; 124 125 icefront_h[2]=iomodel->thickness[i3-1]; 126 icefront_h[3]=iomodel->thickness[i4-1]; 127 128 icefront_b[2]=iomodel->bed[i3-1]; 129 icefront_b[3]=iomodel->bed[i4-1]; 130 } 131 else{ 132 ISSMERROR(exprintf(" element type %i not supported yet",(int)*(iomodel->elements_type+2*element+0))); 133 } 134 } 135 else if (iomodel->sub_analysis_type==StokesAnalysisEnum()){ 136 //We have a Stokes element, so we need a 3d Icefront 118 137 strcpy(icefront_type,"quad"); 119 138 i3=(int)*(iomodel->pressureload+segment_width*i+2); … … 128 147 icefront_b[3]=iomodel->bed[i4-1]; 129 148 } 130 else{ 131 ISSMERROR(exprintf(" element type %i not supported yet",(int)*(iomodel->elements_type+2*element+0))); 132 } 149 else ISSMERROR("Not supported yet!"); 133 150 134 151 this->Init(icefront_type,icefront_fill,icefront_sid,icefront_mparid,icefront_eid,icefront_element_type,icefront_node_ids,icefront_h,icefront_b); -
issm/trunk/src/c/objects/Icefront.h
r3463 r3511 26 26 char type[ICEFRONTSTRING]; 27 27 int fill; 28 int 28 int sid; 29 29 30 30 /*material: */ 31 int mparid; //material id31 int mparid; //material id 32 32 Matpar* matpar; 33 int matpar_offset;33 int matpar_offset; 34 34 35 35 /*element of icefront: */ 36 int element_type;37 int eid; //id of element on ice front36 int element_type; 37 int eid; //id of element on ice front 38 38 Element* element; 39 int element_offset;39 int element_offset; 40 40 41 41 /*nodes: */
Note:
See TracChangeset
for help on using the changeset viewer.