Ignore:
Timestamp:
11/15/17 12:14:34 (7 years ago)
Author:
yushan
Message:

dev_omp

File:
1 edited

Legend:

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

    r1155 r1328  
    2525  //static std::map<StdString,EReductionType> ReductionOperations; 
    2626  static std::map<StdString,EReductionType> *ReductionOperations_ptr; 
    27   #pragma omp threadprivate(ReductionOperations_ptr) 
    2827 
    2928public: 
    30   CReductionAlgorithm() { } 
     29  CReductionAlgorithm() {} 
    3130 
    3231  /*! 
     
    4342    \param [in/out] dataOut Array contains local data 
    4443    \param [in/out] flagInitial vector of boolean to mark the local index already initialized. True means there is a need for initialization 
     44    \param [in] firstPass indicate if it is the first time the apply funtion is called for a same transformation, in order to make a clean initialization  
    4545  */ 
    4646  virtual void apply(const std::vector<std::pair<int,double> >& localIndex, 
     
    4848                     CArray<double,1>& dataOut, 
    4949                     std::vector<bool>& flagInitial,                      
    50                      bool ignoreMissingValue) = 0; 
     50                     bool ignoreMissingValue, bool firstPass) = 0; 
    5151  /*! 
    5252    Update local data  
     
    6262  typedef std::map<EReductionType, CreateOperationCallBack> CallBackMap; 
    6363  static CallBackMap* reductionCreationCallBacks_; 
    64   #pragma omp threadprivate(reductionCreationCallBacks_) 
    6564 
    6665  static bool registerOperation(EReductionType reduceType, CreateOperationCallBack createFn); 
     
    7170  static bool initReductionOperation(); 
    7271  static bool _dummyInit; 
    73   #pragma omp threadprivate(_dummyInit) 
    7472}; 
    7573 
Note: See TracChangeset for help on using the changeset viewer.