Ignore:
Timestamp:
04/12/17 16:02:29 (7 years ago)
Author:
yushan
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/node/axis.cpp

    r1088 r1089  
    4545 
    4646   //std::map<StdString, ETranformationType> CAxis::transformationMapList_ = std::map<StdString, ETranformationType>(); 
    47    std::map<StdString, ETranformationType> *CAxis::transformationMapList_ptr = new std::map<StdString, ETranformationType>; 
     47   std::map<StdString, ETranformationType> *CAxis::transformationMapList_ptr = 0; 
    4848   bool CAxis::dummyTransformationMapList_ = CAxis::initializeTransformationMap(*CAxis::transformationMapList_ptr); 
    4949   bool CAxis::initializeTransformationMap(std::map<StdString, ETranformationType>& m) 
     
    10051005 
    10061006        nodeElementName = node.getElementName(); 
    1007         std::map<StdString, ETranformationType>::const_iterator ite = transformationMapList_ptr->end(), it; 
     1007        if(transformationMapList_ptr == NULL) transformationMapList_ptr = new std::map<StdString, ETranformationType>; 
     1008 
     1009        std::map<StdString, ETranformationType>::const_iterator ite = (*transformationMapList_ptr).end(), it; 
    10081010        it = transformationMapList_ptr->find(nodeElementName); 
    10091011        if (ite != it) 
Note: See TracChangeset for help on using the changeset viewer.