Changeset 11070


Ignore:
Timestamp:
12/29/11 12:03:38 (13 years ago)
Author:
Eric.Larour
Message:

Windows port: defined NAN in isnan.h header. Also updated
use of pow() routine in the case where both arguments are int. Cast
first to double.

Location:
issm/trunk-jpl/src/c
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/objects/Elements/Tria.cpp

    r11001 r11070  
    49024902                values[i]=solution[doflist[i]];
    49034903                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 values
     4904                if (values[i]<pow((double)10,(double)-10))values[i]=pow((double)10,(double)-10); //correcting the water column to positive values
    49054905 
    49064906        }
  • issm/trunk-jpl/src/c/objects/Inputs/IntInput.cpp

    r10135 r11070  
    190190
    191191        /*square min of an integer is the square of the integer itself: */
    192         *psquaremin=pow(value,2);
     192        *psquaremin=pow((double)value,2);
    193193}
    194194/*}}}*/
  • issm/trunk-jpl/src/c/shared/Numerics/UnitConversion.cpp

    r10535 r11070  
    6767                case SurfaceforcingsMassBalanceEnum:      scale=yts;break; //m/yr
    6868                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)
    7070                default: scale=1.0; break;
    7171        }
  • issm/trunk-jpl/src/c/shared/Numerics/isnan.h

    r2241 r11070  
    88#ifdef _INTEL_WIN_
    99int isnan(double X);
     10#define NAN 0.0/0.0
    1011#endif
    1112
Note: See TracChangeset for help on using the changeset viewer.