Ignore:
Timestamp:
03/15/17 17:17:30 (7 years ago)
Author:
yushan
Message:

add test_omp ; Using threads : modif for context_initialize

Location:
XIOS/dev/branch_yushan/extern/remap/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/extern/remap/src/clipper.cpp

    r1072 r1073  
    5252 
    5353static double const pi = 3.141592653589793238; 
    54 #pragma omp threadprivate(pi) 
    5554 
    5655static double const two_pi = pi *2; 
    57 #pragma omp threadprivate(two_pi) 
    5856 
    5957static double const def_arc_tolerance = 0.25; 
    60 #pragma omp threadprivate(def_arc_tolerance) 
    6158 
    6259enum Direction { dRightToLeft, dLeftToRight }; 
    6360 
    6461static int const Unassigned = -1;  //edge not currently 'owning' a solution 
    65 #pragma omp threadprivate(Unassigned) 
    6662 
    6763static int const Skip = -2;        //edge that would otherwise close a path 
    68 #pragma omp threadprivate(Skip) 
    6964 
    7065#define HORIZONTAL (-1.0E+40) 
  • XIOS/dev/branch_yushan/extern/remap/src/clipper.hpp

    r1072 r1073  
    7373  typedef int cInt; 
    7474  static cInt const loRange = 0x7FFF; 
    75   #pragma omp threadprivate(loRange) 
    7675 
    7776  static cInt const hiRange = 0x7FFF; 
    78   #pragma omp threadprivate(hiRange) 
    7977 
    8078#else 
    8179  typedef signed long long cInt; 
    8280  static cInt const loRange = 0x3FFFFFFF; 
    83   #pragma omp threadprivate(loRange) 
    8481 
    8582  static cInt const hiRange = 0x3FFFFFFFFFFFFFFFLL; 
    86   #pragma omp threadprivate(hiRange) 
    8783   
    8884  typedef signed long long long64;     //used by Int128 class 
  • XIOS/dev/branch_yushan/extern/remap/src/timerRemap.hpp

    r1072 r1073  
    2727    void print(void); 
    2828    static map<string,CTimer*> allTimer; 
    29     //#pragma omp threadprivate(allTimer) 
    3029 
    3130    static double getTime(void); 
Note: See TracChangeset for help on using the changeset viewer.