Changeset 4508
- Timestamp:
- 07/09/10 14:26:31 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/InputToResultx/InputToResultx.cpp
r4218 r4508 19 19 20 20 /*Go through elemnets, and ask each element to transfer the enum_type input into the results dataset, with step and time information: */ 21 22 21 for(i=0;i<elements->Size();i++){ 23 22 -
issm/trunk/src/c/modules/OutputResultsx/ElementResultsToPatch.cpp
r4334 r4508 83 83 #endif 84 84 85 /*Check that results have been found*/86 if (numrows*numvertices==0) ISSMERROR("No results found in elements");87 88 85 /*Ok, initialize Patch object: */ 89 86 patch=new Patch(numrows,numvertices,numnodes); -
issm/trunk/src/c/objects/Elements/Penta.cpp
r4506 r4508 1208 1208 input=(Input*)this->inputs->GetObjectByOffset(i); 1209 1209 if (input->EnumType()==enum_type){ 1210 found=true; 1211 break; 1210 found=true; break; 1212 1211 } 1213 1212 } 1213 if (!found) ISSMERROR("Input %s not found in penta->inputs",EnumAsString(enum_type)); 1214 1214 1215 1215 /*If we don't find it, no big deal, just don't do the transfer. Otherwise, build a new Result -
issm/trunk/src/c/objects/Elements/Tria.cpp
r4494 r4508 1507 1507 } 1508 1508 } 1509 if (!found) ISSMERROR("Input %s not found in tria->inputs",EnumAsString(enum_type)); 1509 1510 1510 1511 /*If we don't find it, no big deal, just don't do the transfer. Otherwise, build a new Result -
issm/trunk/src/c/objects/Patch.cpp
r4316 r4508 46 46 +maxnodes; //nodes 47 47 48 //allocate and fill with NaN: 49 this->values=(double*)xmalloc(this->numcols*this->numrows*sizeof(double)); 50 for(i=0;i<this->numrows;i++){ 51 for(j=0;j<this->numcols;j++){ 52 this->values[i*this->numcols+j]=NAN; 48 //Allocate values and fill with NaN: 49 if (this->numcols*this->numrows==0){ 50 this->values=NULL; 51 } 52 else{ 53 this->values=(double*)xmalloc(this->numcols*this->numrows*sizeof(double)); 54 for(i=0;i<this->numrows;i++){ 55 for(j=0;j<this->numcols;j++){ 56 this->values[i*this->numcols+j]=NAN; 57 } 53 58 } 54 59 } -
issm/trunk/src/c/solutions/steadystate_core.cpp
r4331 r4508 47 47 InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VxEnum,VxOldEnum); 48 48 InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VyEnum,VyOldEnum); 49 if(dim==3)InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VzEnum,VzOldEnum);49 InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VzEnum,VzOldEnum); 50 50 InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,PressureEnum,PressureOldEnum); 51 51 InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,TemperatureEnum,TemperatureOldEnum); … … 61 61 InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VxEnum); 62 62 InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VyEnum); 63 InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VzEnum); 64 InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VelEnum); 63 65 InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,PressureEnum); 64 if(dim==3) InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VzEnum);65 66 InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,TemperatureEnum); 67 InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,MeltingRateEnum); 66 68 } 67 69 }
Note:
See TracChangeset
for help on using the changeset viewer.