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