Changeset 968 for XIOS/trunk/src


Ignore:
Timestamp:
10/13/16 15:48:36 (8 years ago)
Author:
mhnguyen
Message:

Improvements: Tighten checking transformation type in xml

+) A not-supported transformation will cause error message

Test
+) On Curie
+) OK

Location:
XIOS/trunk/src/node
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/axis.cpp

    r964 r968  
    10021002                                                                                                               &node))); 
    10031003        } 
     1004        else 
     1005        { 
     1006          ERROR("void CAxis::parse(xml::CXMLNode & node)", 
     1007                << "The transformation " << nodeElementName << " has not been supported yet."); 
     1008        } 
    10041009      } while (node.goToNextElement()) ; 
    10051010      node.goToParentElement(); 
  • XIOS/trunk/src/node/domain.cpp

    r953 r968  
    21052105                                                                                                                &node))); 
    21062106        } 
     2107        else 
     2108        { 
     2109          ERROR("void CDomain::parse(xml::CXMLNode & node)", 
     2110                << "The transformation " << nodeElementName << " has not been supported yet."); 
     2111        } 
    21072112      } while (node.goToNextElement()) ; 
    21082113      node.goToParentElement(); 
  • XIOS/trunk/src/node/grid.cpp

    r967 r968  
    325325        case 3: 
    326326          checkGridMask(mask_3d, domainMasks, axisMasks, axis_domain_order, true); 
     327          break; 
     328        case 4: 
     329          checkGridMask(mask_4d, domainMasks, axisMasks, axis_domain_order, true); 
     330          break; 
     331        case 5: 
     332          checkGridMask(mask_5d, domainMasks, axisMasks, axis_domain_order, true); 
     333          break; 
     334        case 6: 
     335          checkGridMask(mask_6d, domainMasks, axisMasks, axis_domain_order, true); 
     336          break; 
     337        case 7: 
     338          checkGridMask(mask_7d, domainMasks, axisMasks, axis_domain_order, true); 
    327339          break; 
    328340        default: 
  • XIOS/trunk/src/node/scalar.cpp

    r960 r968  
    154154                                                                                                                 &node))); 
    155155        } 
     156        else 
     157        { 
     158          ERROR("void CScalar::parse(xml::CXMLNode & node)", 
     159                << "The transformation " << nodeElementName << " has not been supported yet."); 
     160        } 
    156161      } while (node.goToNextElement()) ; 
    157162      node.goToParentElement(); 
Note: See TracChangeset for help on using the changeset viewer.