Changeset 598
- Timestamp:
- 05/26/09 14:08:51 (15 years ago)
- Location:
- issm/trunk/src/c/ModelProcessorx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/CreateParameters.cpp
r586 r598 11 11 #include "../objects/objects.h" 12 12 #include "../shared/shared.h" 13 #include "../MeshPartitionx/MeshPartitionx.h" 13 14 #include "./Model.h" 14 15 … … 24 25 int numberofdofspernode; 25 26 int dim; 26 double* epart=NULL;27 double* part=NULL;27 int* epart=NULL; 28 int* part=NULL; 28 29 29 30 … … 219 220 char** descriptors=NULL; 220 221 char* descriptor=NULL; 221 char* tag=NULL; 222 char* tag=NULL; 223 int elements_width; //size of elements 222 224 223 225 descriptors=(char**)xmalloc(model->numberofresponses*sizeof(char*)); … … 245 247 xfree((void**)&descriptors); 246 248 249 /*Width of elements: */ 250 if(strcmp(model->meshtype,"2d")==0){ 251 elements_width=3; //tria elements 252 } 253 else{ 254 elements_width=6; //penta elements 255 } 256 247 257 #ifdef _PARALLEL_ 248 258 /*partition grids in model->qmu_npart parts: */ … … 259 269 count++; 260 270 param= new Param(count,"qmu_part",DOUBLEVEC); 261 param->SetDoubleVec( part,model->numberofnodes);271 param->SetDoubleVec((double*)part,model->numberofnodes); 262 272 parameters->AddObject(param); 263 273 -
issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp
r586 r598 181 181 } 182 182 183 184 183 MeshPartitionx(&epart, &npart,model->numberofelements,model->numberofnodes,model->elements, model->numberofelements2d,model->numberofnodes2d,model->elements2d,model->numlayers,elements_width, model->meshtype,num_procs); 185 184
Note:
See TracChangeset
for help on using the changeset viewer.