source:
issm/oecreview/Archive/24307-24683/ISSM-24483-24484.diff@
24684
Last change on this file since 24684 was 24684, checked in by , 5 years ago | |
---|---|
File size: 2.4 KB |
-
../trunk-jpl/src/c/classes/FemModel.cpp
5338 5338 hmaxvertices_serial=xNew<IssmDouble>(numberofvertices); 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 5347 5347 if(my_rank==0){ … … 5521 5521 IssmDouble L1,L2,L3; 5522 5522 int vid,v1,v2,v3; 5523 5523 bool refine; 5524 5524 5525 5525 5526 /*Fill variables*/ 5526 5527 switch(errorestimator_type){ … … 5542 5543 } 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*/ 5547 5555 if(maxerror<DBL_EPSILON){ … … 5552 5560 } 5553 5561 } 5554 5562 5555 /*Get mesh*/5556 this->GetMesh(&index,&x,&y,&numberofvertices,&numberofelements);5557 maxlength = xNew<IssmDouble>(numberofelements);5558 error_vertices = xNewZeroInit<IssmDouble>(numberofvertices);5559 5560 5563 /*Fill error_vertices (this is the sum of all elements connected to the vertex)*/ 5561 5564 for(int i=0;i<numberofelements;i++){ 5562 5565 v1=index[i*elementswidth+0]-1;//Matlab to C indexing
Note:
See TracBrowser
for help on using the repository browser.