Changeset 24484
- Timestamp:
- 12/19/19 15:06:27 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/FemModel.cpp
r24378 r24484 5339 5339 for(int i=0;i<numberofvertices;i++) hmaxvertices_serial[i]=NAN; 5340 5340 /*Fill hmaxvertices*/ 5341 if(this->amrbamg->thicknesserror_threshold>0) this->GethmaxVerticesFromEstimators(hmaxvertices_serial,ThicknessErrorEstimatorEnum); 5342 if(this->amrbamg->deviatoricerror_threshold>0) this->GethmaxVerticesFromEstimators(hmaxvertices_serial,DeviatoricStressErrorEstimatorEnum); 5341 5343 if(this->amrbamg->groundingline_distance>0) this->GethmaxVerticesFromZeroLevelSetDistance(hmaxvertices_serial,MaskGroundediceLevelsetEnum); 5342 5344 if(this->amrbamg->icefront_distance>0) this->GethmaxVerticesFromZeroLevelSetDistance(hmaxvertices_serial,MaskIceLevelsetEnum); 5343 if(this->amrbamg->thicknesserror_threshold>0) this->GethmaxVerticesFromEstimators(hmaxvertices_serial,ThicknessErrorEstimatorEnum);5344 if(this->amrbamg->deviatoricerror_threshold>0) this->GethmaxVerticesFromEstimators(hmaxvertices_serial,DeviatoricStressErrorEstimatorEnum);5345 5345 } 5346 5346 … … 5522 5522 int vid,v1,v2,v3; 5523 5523 bool refine; 5524 5524 5525 5525 5526 /*Fill variables*/ … … 5543 5544 if(!error_elements) _error_("error_elements is NULL!\n"); 5544 5545 if(groupthreshold<DBL_EPSILON) _error_("group threshold is too small!"); 5546 5547 /*Get mesh*/ 5548 this->GetMesh(&index,&x,&y,&numberofvertices,&numberofelements); 5549 if(numberofelements<0) _error_("number of elements is negative!\n"); 5550 if(numberofvertices<0) _error_("number of vertices is negative!\n"); 5551 maxlength = xNew<IssmDouble>(numberofelements); 5552 error_vertices = xNewZeroInit<IssmDouble>(numberofvertices); 5545 5553 5546 5554 /*Find the max of the estimators if it was not provided*/ … … 5552 5560 } 5553 5561 } 5554 5555 /*Get mesh*/5556 this->GetMesh(&index,&x,&y,&numberofvertices,&numberofelements);5557 maxlength = xNew<IssmDouble>(numberofelements);5558 error_vertices = xNewZeroInit<IssmDouble>(numberofvertices);5559 5562 5560 5563 /*Fill error_vertices (this is the sum of all elements connected to the vertex)*/
Note:
See TracChangeset
for help on using the changeset viewer.