Ignore:
Timestamp:
01/23/19 10:31:44 (5 years ago)
Author:
yushan
Message:

dev on ADA. add flag switch _usingEP/_usingMPI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/object_template_impl.hpp

    r1545 r1642  
    2424      xios_map<StdString, 
    2525      xios_map<StdString, 
    26       std::shared_ptr<T> > > *CObjectTemplate<T>::AllMapObj_ptr = 0; 
     26      std::shared_ptr<T> > > CObjectTemplate<T>::AllMapObj; 
    2727 
    2828   template <class T> 
    2929      xios_map<StdString, 
    30       std::vector<std::shared_ptr<T> > > *CObjectTemplate<T>::AllVectObj_ptr = 0; 
    31  
    32    template <class T> 
    33       xios_map<StdString,long int> *CObjectTemplate<T>::GenId_ptr = 0; 
     30      std::vector<std::shared_ptr<T> > > CObjectTemplate<T>::AllVectObj; 
     31 
     32   template <class T> 
     33      xios_map<StdString,long int> CObjectTemplate<T>::GenId; 
    3434 
    3535   template <class T> 
     
    6666         CObjectTemplate<T>::GetAllVectobject(const StdString & contextId) 
    6767   { 
    68      return (CObjectTemplate<T>::AllVectObj_ptr->at(contextId)); 
     68      return (CObjectTemplate<T>::AllVectObj[contextId]); 
    6969   } 
    7070 
     
    109109   template <class T> 
    110110      void CObjectTemplate<T>::parse(xml::CXMLNode & node) 
     111   TRY 
    111112   { 
    112113      xml::THashAttributes attributes = node.getAttributes(); 
    113114      CAttributeMap::setAttributes(attributes); 
    114115   } 
     116   CATCH 
    115117 
    116118   //--------------------------------------------------------------- 
     
    426428   const vector<T*> CObjectTemplate<T>::getAll() 
    427429   { 
    428      const vector< std::shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>(CObjectFactory::GetCurrentContextId()); 
     430     const vector< std::shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>(); 
    429431     vector<T*> vect; 
    430432 
     
    475477     oss << iendl; 
    476478     oss << "#include <boost/multi_array.hpp>" << iendl; 
    477      oss << "#include <boostXXX/shared_ptr.hpp>" << iendl; 
    478479     oss << "#include \"xios.hpp\"" << iendl; 
    479480     oss << "#include \"attribute_template.hpp\"" << iendl; 
     
    509510     oss << "INTERFACE" << iendl++; 
    510511     oss << "! Do not call directly / interface FORTRAN 2003 <-> C99"; 
    511      SuperClassMap::generateFortran2003Interface(oss,className); 
     512     SuperClassMap::generateFortran2003Interface(oss, className); 
    512513     oss << iendl--; 
    513514     oss << "END INTERFACE" << iendl--; 
Note: See TracChangeset for help on using the changeset viewer.