Changeset 24484


Ignore:
Timestamp:
12/19/19 15:06:27 (5 years ago)
Author:
tsantos
Message:

CHG: changing order of estimators - AMR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r24378 r24484  
    53395339                for(int i=0;i<numberofvertices;i++) hmaxvertices_serial[i]=NAN;
    53405340                /*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);
    53415343                if(this->amrbamg->groundingline_distance>0)             this->GethmaxVerticesFromZeroLevelSetDistance(hmaxvertices_serial,MaskGroundediceLevelsetEnum);
    53425344                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);
    53455345        }
    53465346
     
    55225522        int vid,v1,v2,v3;
    55235523        bool refine;
     5524       
    55245525
    55255526        /*Fill variables*/
     
    55435544        if(!error_elements) _error_("error_elements is NULL!\n");
    55445545        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);
    55455553
    55465554        /*Find the max of the estimators if it was not provided*/
     
    55525560        }
    55535561        }
    5554 
    5555         /*Get mesh*/
    5556         this->GetMesh(&index,&x,&y,&numberofvertices,&numberofelements);
    5557         maxlength               = xNew<IssmDouble>(numberofelements);
    5558         error_vertices  = xNewZeroInit<IssmDouble>(numberofvertices);
    55595562
    55605563        /*Fill error_vertices (this is the sum of all elements connected to the vertex)*/
Note: See TracChangeset for help on using the changeset viewer.