Changeset 12272
- Timestamp:
- 05/21/12 14:35:31 (13 years ago)
- Location:
- issm/trunk-jpl/src/c/objects
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/Elements/Tria.cpp
r12014 r12272 629 629 basal_melting_input->GetInputValue(&basal_melting_g,gauss); 630 630 thickness_input->GetInputValue(&thickness_g,gauss); 631 if(basal_melting_correction_input) basal_melting_correction_input->GetInputValue(&basal_melting_correction_g,gauss); 631 if(basal_melting_correction_input) 632 basal_melting_correction_input->GetInputValue(&basal_melting_correction_g,gauss); 633 else 634 basal_melting_correction_g=0.; 632 635 633 636 for(i=0;i<numdof;i++) pe->values[i]+=Jdettria*gauss->weight*(thickness_g+dt*(surface_mass_balance_g-basal_melting_g-basal_melting_correction_g))*L[i]; -
issm/trunk-jpl/src/c/objects/Numerics/ElementVector.cpp
r11734 r12272 166 166 double* localvalues=NULL; 167 167 168 /*In debugging mode, check consistency (no NaN, and values not too big)*/ 169 this->CheckConsistency(); 170 168 171 if(this->fsize){ 169 172 /*first, retrieve values that are in the f-set from the g-set values vector: */ … … 200 203 } 201 204 205 } 206 /*}}}*/ 207 /*FUNCTION ElementVector::CheckConsistency{{{1*/ 208 void ElementVector::CheckConsistency(void){ 209 /*Check element matrix values, only in debugging mode*/ 210 #ifdef _ISSM_DEBUG_ 211 for (int i=0;i<this->nrows;i++){ 212 if (isnan(this->values[i])) _error_("NaN found in Element Vector"); 213 if (fabs( this->values[i])>1.e+50) _error_("Element Vector values exceeds 1.e+50"); 214 } 215 #endif 202 216 } 203 217 /*}}}*/ -
issm/trunk-jpl/src/c/objects/Numerics/ElementVector.h
r11679 r12272 43 43 void InsertIntoGlobal(Vector* pf); 44 44 void Echo(void); 45 void CheckConsistency(void); 45 46 void Init(ElementVector* pe); 46 47 void SetValue(double scalar);
Note:
See TracChangeset
for help on using the changeset viewer.