Changeset 9356 for issm/trunk/src/c/objects/Loads/Icefront.cpp
- Timestamp:
- 08/19/11 18:04:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Loads/Icefront.cpp
r9320 r9356 43 43 int segment_width; 44 44 int element; 45 int num_nodes; 45 int num_nodes; 46 int dim; 47 int numberofelements; 46 48 47 49 /*icefront constructor data: */ … … 50 52 int icefront_node_ids[NUMVERTICESQUA]; //initialize with largest size 51 53 int icefront_fill; 54 55 /*find parameters: */ 56 iomodel->parameters->FindParam(&dim,DimEnum); 57 iomodel->parameters->FindParam(&numberofelements,NumberOfElementsEnum); 52 58 53 59 /*First, retrieve element index and element type: */ 54 if ( iomodel->dim==2){60 if (dim==2){ 55 61 segment_width=4; 56 62 } … … 62 68 /*Build ids for hook constructors: */ 63 69 icefront_eid=(int) *(iomodel->pressureload+segment_width*i+segment_width-2); //matlab indexing 64 icefront_mparid= iomodel->numberofelements+1; //matlab indexing70 icefront_mparid=numberofelements+1; //matlab indexing 65 71 66 72 if (in_icefront_type==MacAyeal2dIceFrontEnum || in_icefront_type==MacAyeal3dIceFrontEnum){
Note:
See TracChangeset
for help on using the changeset viewer.