Changeset 1328 for XIOS/dev/branch_openmp/extern/remap/src/libmapper.cpp
- Timestamp:
- 11/15/17 12:14:34 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/remap/src/libmapper.cpp
r1205 r1328 14 14 #include "mapper.hpp" 15 15 #include "cputime.hpp" // cputime 16 #include <stdio.h> 16 17 using namespace ep_lib; 17 18 18 19 using namespace sphereRemap ; … … 21 22 and deallocated during the second step (computing the weights) */ 22 23 Mapper *mapper; 23 #pragma omp threadprivate(mapper) 24 24 25 25 26 /** xxx_bounds_yyy is of length n_vert_per_cell_xxx*n_cell_xxx … … 33 34 int order, int* n_weights) 34 35 { 35 36 37 38 39 40 41 42 43 36 assert(src_bounds_lon); 37 assert(src_bounds_lat); 38 assert(n_vert_per_cell_src >= 3); 39 assert(n_cell_src >= 4); 40 assert(dst_bounds_lon); 41 assert(dst_bounds_lat); 42 assert(n_vert_per_cell_dst >= 3); 43 assert(n_cell_dst >= 4); 44 assert(1 <= order && order <= 2); 44 45 45 46 mapper = new Mapper(MPI_COMM_WORLD); … … 80 81 double tic = cputime(); 81 82 mapper = new Mapper(MPI_COMM_WORLD); 82 83 mapper->setVerbosity(PROGRESS) ; 83 84 mapper->buildSSTree(src_msh, dst_msh); 84 85 double tac = cputime(); … … 149 150 char **argv = NULL; 150 151 MPI_Init(&argc, &argv);*/ 151 //MPI_Init(NULL, NULL); 152 int provided; 153 MPI_Init_thread(NULL, NULL, 3, &provided); 154 assert(provided >= 3); 152 MPI_Init(NULL, NULL); 155 153 } 156 154
Note: See TracChangeset
for help on using the changeset viewer.