Changeset 1244


Ignore:
Timestamp:
08/29/17 14:57:04 (3 years ago)
Author:
oabramkina
Message:

Fixing a bug in missing_values.

Location:
XIOS/dev/XIOS_DEV_CMIP6/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/filter/store_filter.cpp

    r1201 r1244  
    8787    if (detectMissingValues) 
    8888    { 
     89      const double nanValue = std::numeric_limits<double>::quiet_NaN(); 
    8990      const size_t nbData = packet->data.numElements(); 
    9091      for (size_t idx = 0; idx < nbData; ++idx) 
    9192      { 
    92         if (NumTraits<double>::isnan(packet->data(idx))) 
    93           packet->data(idx) = missingValue; 
     93        if (packet->data(idx)==missingValue) 
     94          packet->data(idx) = nanValue; 
    9495      } 
    9596    } 
  • XIOS/dev/XIOS_DEV_CMIP6/src/server.cpp

    r1243 r1244  
    380380        else if (serverLevel == 2) 
    381381        { 
    382           info(50)<<"intercommCreate::server "<<globalRank<<" intraCommSize : "<<intraCommSize 
     382          info(50)<<"intercommCreate::server (server level 2)"<<globalRank<<" intraCommSize : "<<intraCommSize 
    383383                   <<" intraCommRank :"<<intraCommRank<<"  clientLeader "<< srvGlobalRanks[0] <<endl ; 
    384384          MPI_Intercomm_create(intraComm, 0, CXios::globalComm, srvGlobalRanks[0], 0, &newComm) ; 
Note: See TracChangeset for help on using the changeset viewer.