Changeset 22485


Ignore:
Timestamp:
02/28/18 12:45:34 (7 years ago)
Author:
schlegel
Message:

CHG: use NAN to set static spc for the SMB Pdd schemes

Location:
issm/trunk-jpl/src/c/analyses
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp

    r22484 r22485  
    5454                                if (issurface[i]==1){
    5555                                        spcvector[i*N+j] = heatcapacity*(spcvector[i*N+j]-referencetemperature);
    56                                         spcvectorstatic[i*N+j] = nan("");
     56                                        spcvectorstatic[i*N+j] = NAN;
    5757                                }
    5858                                else{
    59                                         spcvector[i*N+j] = nan("");
     59                                        spcvector[i*N+j] = NAN;
    6060                                        spcvectorstatic[i*N+j] = heatcapacity*(spcvectorstatic[i*N+j]-referencetemperature);
    6161                                }
  • issm/trunk-jpl/src/c/analyses/ThermalAnalysis.cpp

    r22484 r22485  
    5050                for(int j=0;j<N;j++){
    5151                        if (isdynamic){
    52                                 if (issurface[i]==1)spcvectorstatic[i*N+j] = nan("");
    53                                 else spcvector[i*N+j] = nan("");
     52                                if (issurface[i]==1)spcvectorstatic[i*N+j] = NAN;
     53                                else spcvector[i*N+j] = NAN;
    5454                        }
    5555                }
Note: See TracChangeset for help on using the changeset viewer.