- Timestamp:
- 11/15/17 12:14:34 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/transformation/grid_transformation_factory_impl.hpp
r1134 r1328 57 57 typedef std::map<ETranformationType, CreateTransformationCallBack> CallBackMap; 58 58 static CallBackMap* transformationCreationCallBacks_; 59 #pragma omp threadprivate(transformationCreationCallBacks_)60 61 59 static bool registerTransformation(ETranformationType transType, CreateTransformationCallBack createFn); 62 60 static bool unregisterTransformation(ETranformationType transType); 63 61 static bool initializeTransformation_; 64 #pragma omp threadprivate(initializeTransformation_)65 62 }; 66 63 … … 82 79 std::map<int, int>& elementPositionInGridDst2DomainPosition) 83 80 { 84 if (0 == transformationCreationCallBacks_)85 transformationCreationCallBacks_ = new CallBackMap();86 81 typename CallBackMap::const_iterator it = (*transformationCreationCallBacks_).find(transType); 87 82 if ((*transformationCreationCallBacks_).end() == it)
Note: See TracChangeset
for help on using the changeset viewer.