source:
issm/oecreview/Archive/11025-11228/ISSM-11069-11070.diff@
11232
Last change on this file since 11232 was 11232, checked in by , 13 years ago | |
---|---|
File size: 2.5 KB |
-
proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/shared/Numerics/isnan.h
7 7 8 8 #ifdef _INTEL_WIN_ 9 9 int isnan(double X); 10 #define NAN 0.0/0.0 10 11 #endif 11 12 12 13 #endif -
proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/shared/Numerics/UnitConversion.cpp
66 66 case SurfaceforcingsAblationRateEnum: scale=yts;break; //m/yr 67 67 case SurfaceforcingsMassBalanceEnum: scale=yts;break; //m/yr 68 68 case MisfitEnum: scale=pow(yts,2);break; //(m/yr)^2 69 case MassFluxEnum: scale=pow( 10,-12)*yts;break; // (GigaTon/year)69 case MassFluxEnum: scale=pow((double)10,-12)*yts;break; // (GigaTon/year) 70 70 default: scale=1.0; break; 71 71 } 72 72 return scale; -
proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/objects/Elements/Tria.cpp
4901 4901 for(i=0;i<numdof;i++){ 4902 4902 values[i]=solution[doflist[i]]; 4903 4903 if(isnan(values[i])) _error_("NaN found in solution vector"); 4904 if (values[i]<pow( 10,-10))values[i]=pow(10,-10); //correcting the water column to positive values4904 if (values[i]<pow((double)10,(double)-10))values[i]=pow((double)10,(double)-10); //correcting the water column to positive values 4905 4905 4906 4906 } 4907 4907 -
proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/objects/Inputs/IntInput.cpp
189 189 void IntInput::SquareMin(double* psquaremin, bool process_units,Parameters* parameters){ 190 190 191 191 /*square min of an integer is the square of the integer itself: */ 192 *psquaremin=pow( value,2);192 *psquaremin=pow((double)value,2); 193 193 } 194 194 /*}}}*/ 195 195 /*FUNCTION IntInput::Scale{{{1*/
Note:
See TracBrowser
for help on using the repository browser.