Ignore:
Timestamp:
06/14/18 13:42:14 (3 years ago)
Author:
yushan
Message:

bug fix for tests in prod mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/io/nc4_data_input.cpp

    r1491 r1544  
    193193*/ 
    194194 
    195     //if (!SuperClassWriter::isRectilinear(fieldId)) 
    196     if (true) 
    197     { 
    198       for (std::list<StdString>::const_iterator it = dimList.begin(); it != dimList.end(); ++it) 
     195    for (std::list<StdString>::const_iterator it = dimList.begin(); it != dimList.end(); ++it) 
    199196        listDimSize.push_front(*dimSizeMap.find(*it)); 
    200     } 
    201     else 
    202     { 
    203        std::list<StdString> coords = SuperClassWriter::getCoordinatesIdList(fieldId); 
    204        std::list<StdString>::const_iterator itCoord = coords.begin(); 
    205        for (; itCoord != coords.end(); itCoord++) 
    206        { 
    207          const StdString& coord = *itCoord; 
    208          if (SuperClassWriter::hasVariable(coord) && !SuperClassWriter::isTemporal(coord)) 
    209          { 
    210            std::map<StdString, StdSize> dimsTmp = SuperClassWriter::getDimensions(&coord); 
    211            StdString dimNameTmp = dimsTmp.begin()->first; 
    212            StdSize dimSizeTmp = dimsTmp.begin()->second; 
    213            listDimSize.push_front(make_pair(coord, dimSizeTmp)); 
    214            dimSizeMap.erase(dimNameTmp); 
    215            dimList.remove(dimNameTmp); 
    216          } 
    217        } 
    218        for (std::list<StdString>::const_iterator it = dimList.begin(); it != dimList.end(); ++it) 
    219         listDimSize.push_front(*dimSizeMap.find(*it)); 
    220     } 
    221197 
    222198    // Now process domain and axis 
Note: See TracChangeset for help on using the changeset viewer.