- Timestamp:
- 07/10/17 18:17:04 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/extern/remap/src/libmapper.cpp
r1176 r1205 14 14 #include "mapper.hpp" 15 15 #include "cputime.hpp" // cputime 16 #include "gridRemap.hpp"17 18 16 #include <stdio.h> 19 17 20 18 using namespace sphereRemap ; 21 22 //extern CRemapGrid srcGrid;23 //#pragma omp threadprivate(srcGrid)24 25 //extern CRemapGrid tgtGrid;26 //#pragma omp threadprivate(tgtGrid)27 28 19 29 20 /* mapper is a ponter to a global class instance whoes members are allocated in the first step (finding the sizes of the weight arrays) … … 42 33 int order, int* n_weights) 43 34 { 44 printf("libmapper callded : remap_get_num_weights\n");45 35 assert(src_bounds_lon); 46 36 assert(src_bounds_lat); … … 125 115 double* centre_lon, double* centre_lat, double* areas) 126 116 { 127 printf("libmapper callded : remap_get_barycentres_and_areas\n");128 117 for (int i = 0; i < n_cell; i++) 129 118 { … … 149 138 extern "C" void remap_get_weights(double* weights, int* src_indices, int* dst_indices) 150 139 { 151 printf("libmapper callded : remap_get_weights\n");152 140 memcpy(weights, mapper->remapMatrix, mapper->nWeights*sizeof(double)); 153 141 memcpy(src_indices, mapper->srcAddress, mapper->nWeights*sizeof(int));
Note: See TracChangeset
for help on using the changeset viewer.