Ignore:
Timestamp:
04/21/17 17:39:29 (7 years ago)
Author:
yushan
Message:

save modif. Todo: axis, domain, mesh, scalar, transformation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/transformation/Functions/reduction.hpp

    r1079 r1103  
    2323{ 
    2424public: 
    25   static std::map<StdString,EReductionType> ReductionOperations; 
     25  //static std::map<StdString,EReductionType> ReductionOperations; 
     26  static std::map<StdString,EReductionType> *ReductionOperations_ptr; 
     27  #pragma omp threadprivate(ReductionOperations_ptr) 
    2628 
    2729public: 
     
    5961  typedef std::map<EReductionType, CreateOperationCallBack> CallBackMap; 
    6062  static CallBackMap* reductionCreationCallBacks_; 
    61   //#pragma omp threadprivate(reductionCreationCallBacks_) 
     63  #pragma omp threadprivate(reductionCreationCallBacks_) 
    6264 
    6365  static bool registerOperation(EReductionType reduceType, CreateOperationCallBack createFn); 
     
    6567 
    6668protected: 
    67   static bool initReductionOperation(std::map<StdString,EReductionType>& m); 
     69  //static bool initReductionOperation(std::map<StdString,EReductionType>& m); 
     70  static bool initReductionOperation(std::map<StdString,EReductionType>* m); 
    6871  static bool _dummyInit; 
    69   //#pragma omp threadprivate(_dummyInit) 
     72  #pragma omp threadprivate(_dummyInit) 
    7073}; 
    7174 
Note: See TracChangeset for help on using the changeset viewer.