Changeset 3098
- Timestamp:
- 02/23/10 16:08:37 (15 years ago)
- Location:
- issm/trunk/src/c/ModelProcessorx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateLoadsDiagnosticHoriz.cpp
r2959 r3098 88 88 89 89 if (strcmp(iomodel->meshtype,"2d")==0){ 90 segment_width= 3;90 segment_width=4; 91 91 element_type=TriaEnum(); 92 92 } 93 93 else{ 94 segment_width= 5;94 segment_width=6; 95 95 element_type=PentaEnum(); 96 96 } 97 97 98 98 99 element=(int)(*(iomodel->pressureload+segment_width*i+segment_width- 1)-1); //element is in the last column99 element=(int)(*(iomodel->pressureload+segment_width*i+segment_width-2)-1); //element is in the penultimate column (grid1 grid2 ... elem fill) 100 100 101 101 #ifdef _PARALLEL_ … … 115 115 icefront_mparid=iomodel->numberofelements+1; //matlab indexing 116 116 icefront_sid=i+1; //matlab indexing 117 icefront_eid=(int)*(iomodel->pressureload+segment_width*i+segment_width- 1); //matlab indexing117 icefront_eid=(int)*(iomodel->pressureload+segment_width*i+segment_width-2); //matlab indexing 118 118 icefront_element_type=element_type; 119 119 … … 253 253 254 254 } 255 256 -
issm/trunk/src/c/ModelProcessorx/DiagnosticStokes/CreateLoadsDiagnosticStokes.cpp
r2959 r3098 73 73 for (i=0;i<numberofpressureloads;i++){ 74 74 75 segment_width= 5;75 segment_width=6; 76 76 77 element=(int)(*(iomodel->pressureload+segment_width*i+segment_width- 1)-1); //element is in the last column77 element=(int)(*(iomodel->pressureload+segment_width*i+segment_width-2)-1); //element is in the penultimate column (grid1 grid2 ... elem fill) 78 78 79 79 #ifdef _PARALLEL_ … … 92 92 icefront_mparid=iomodel->numberofelements+1; //matlab indexing 93 93 icefront_sid=count+1; //matlab indexing 94 icefront_eid=(int)*(iomodel->pressureload+segment_width*i+segment_width- 1); //matlab indexing94 icefront_eid=(int)*(iomodel->pressureload+segment_width*i+segment_width-2); //matlab indexing 95 95 icefront_element_type=PentaEnum(); 96 96 … … 127 127 xfree((void**)&iomodel->bed); 128 128 129 130 131 132 129 //create penalties for grids on the base of icesheet. We must have wb=ub*db/dx+vb*db/dy 133 130 … … 160 157 } 161 158 162 163 164 159 xfree((void**)&iomodel->gridonbed); 165 160 xfree((void**)&iomodel->gridonstokes); … … 176 171 177 172 } 178 179
Note:
See TracChangeset
for help on using the changeset viewer.