Ignore:
Timestamp:
05/16/17 17:54:30 (7 years ago)
Author:
yushan
Message:

branch merged with trunk r1130

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan_merged/src/transformation/grid_transformation_factory_impl.hpp

    r933 r1134  
    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 
     
    7982                                                                               std::map<int, int>& elementPositionInGridDst2DomainPosition) 
    8083{ 
     84  if (0 == transformationCreationCallBacks_) 
     85    transformationCreationCallBacks_ = new CallBackMap(); 
    8186  typename CallBackMap::const_iterator it = (*transformationCreationCallBacks_).find(transType); 
    8287  if ((*transformationCreationCallBacks_).end() == it) 
Note: See TracChangeset for help on using the changeset viewer.