- Timestamp:
- 11/21/17 13:42:35 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/transformation/scalar_algorithm_reduce_axis.cpp
r1334 r1339 13 13 #include "grid.hpp" 14 14 #include "grid_transformation_factory_impl.hpp" 15 #include "reduction.hpp"16 15 17 16 namespace xios { … … 73 72 } 74 73 74 if(CReductionAlgorithm::ReductionOperations_ptr == 0) 75 { 76 CReductionAlgorithm::initReductionOperation(); 77 } 78 75 79 //if (CReductionAlgorithm::ReductionOperations.end() == CReductionAlgorithm::ReductionOperations.find(op)) 76 if ( CReductionAlgorithm::ReductionOperations_ptr->end() == CReductionAlgorithm::ReductionOperations_ptr->find(op))80 if ((*CReductionAlgorithm::ReductionOperations_ptr).end() == (*CReductionAlgorithm::ReductionOperations_ptr).find(op)) 77 81 ERROR("CScalarAlgorithmReduceAxis::CScalarAlgorithmReduceAxis(CAxis* axisDestination, CAxis* axisSource, CReduceAxisToScalar* algo)", 78 82 << "Operation '" << op << "' not found. Please make sure to use a supported one" … … 81 85 82 86 //reduction_ = CReductionAlgorithm::createOperation(CReductionAlgorithm::ReductionOperations[op]); 83 reduction_ = CReductionAlgorithm::createOperation( CReductionAlgorithm::ReductionOperations_ptr->at(op));87 reduction_ = CReductionAlgorithm::createOperation((*CReductionAlgorithm::ReductionOperations_ptr)[op]); 84 88 } 85 89
Note: See TracChangeset
for help on using the changeset viewer.