Ignore:
Timestamp:
03/14/17 19:12:25 (7 years ago)
Author:
yushan
Message:

Using threads : modif for xios_initialize

Location:
XIOS/dev/branch_yushan/src/transformation
Files:
2 edited

Legend:

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

    r1037 r1072  
    5959  typedef std::map<EReductionType, CreateOperationCallBack> CallBackMap; 
    6060  static CallBackMap* reductionCreationCallBacks_; 
     61  #pragma omp threadprivate(reductionCreationCallBacks_) 
    6162 
    6263  static bool registerOperation(EReductionType reduceType, CreateOperationCallBack createFn); 
     
    6667  static bool initReductionOperation(std::map<StdString,EReductionType>& m); 
    6768  static bool _dummyInit; 
     69  #pragma omp threadprivate(_dummyInit) 
    6870}; 
    6971 
  • XIOS/dev/branch_yushan/src/transformation/grid_transformation_factory_impl.hpp

    r933 r1072  
    5757  typedef std::map<ETranformationType, CreateTransformationCallBack> CallBackMap; 
    5858  static CallBackMap* transformationCreationCallBacks_; 
     59  #pragma omp threadprivate(transformationCreationCallBacks_) 
     60   
    5961  static bool registerTransformation(ETranformationType transType, CreateTransformationCallBack createFn); 
    6062  static bool unregisterTransformation(ETranformationType transType); 
    6163  static bool initializeTransformation_; 
     64  #pragma omp threadprivate(initializeTransformation_) 
    6265}; 
    6366 
Note: See TracChangeset for help on using the changeset viewer.