Ignore:
Timestamp:
12/06/17 18:36:26 (6 years ago)
Author:
ymipsl
Message:

Fix : when arithmetic field expression is defined, other xml node are now taking into account.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/field.cpp

    r1358 r1363  
    15091509   void CField::parse(xml::CXMLNode& node) 
    15101510   { 
     1511      string newContent ; 
    15111512      SuperClass::parse(node); 
    1512       if (!node.getContent(this->content)) 
     1513      if (node.goToChildElement()) 
    15131514      { 
    1514         if (node.goToChildElement()) 
     1515        do 
    15151516        { 
    1516           do 
    1517           { 
    1518             if (node.getElementName() == "variable" || node.getElementName() == "variable_group") this->getVirtualVariableGroup()->parseChild(node); 
    1519           } while (node.goToNextElement()); 
    1520           node.goToParentElement(); 
    1521         } 
    1522       } 
     1517          if (node.getElementName() == "variable" || node.getElementName() == "variable_group") this->getVirtualVariableGroup()->parseChild(node); 
     1518          else if (node.getElementName() == "expr") if (node.getContent(newContent)) content+=newContent ; 
     1519        } while (node.goToNextElement()); 
     1520        node.goToParentElement(); 
     1521      } 
     1522      if (node.getContent(newContent)) content=newContent ; 
    15231523    } 
    15241524 
Note: See TracChangeset for help on using the changeset viewer.