Ignore:
Timestamp:
12/05/17 16:24:42 (4 years ago)
Author:
yushan
Message:

unify MPI_Comm type

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

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/extern/remap/src/mapper.hpp

    r1328 r1355  
    1818{ 
    1919public: 
    20        Mapper(ep_lib::MPI_Comm comm) : communicator(comm), verbose(SILENT), neighbourElements(NULL), sstree(comm) {} 
     20       //Mapper(ep_lib::MPI_Comm comm) : communicator(comm), verbose(SILENT), neighbourElements(NULL), sstree(comm) {} 
     21       Mapper(ep_lib::MPI_Comm comm) : verbose(SILENT), neighbourElements(NULL), sstree(comm)  
     22       { 
     23         ep_lib::MPI_Comm_dup(comm, &communicator); 
     24       } 
     25 
    2126       ~Mapper(); 
    2227       void setVerbosity(verbosity v) {verbose=v ;} 
  • XIOS/dev/branch_openmp/extern/remap/src/mpi_cascade.hpp

    r1328 r1355  
    1212{ 
    1313public: 
    14   CCascadeLevel(ep_lib::MPI_Comm comm) : comm(comm) 
     14  CCascadeLevel(ep_lib::MPI_Comm in_comm) : comm(in_comm) 
    1515  { 
     16    ep_lib::MPI_Comm_dup(in_comm, &comm); 
    1617    ep_lib::MPI_Comm_size(comm, &size); 
    1718    ep_lib::MPI_Comm_rank(comm, &rank); 
  • XIOS/dev/branch_openmp/extern/remap/src/parallel_tree.cpp

    r1335 r1355  
    121121} 
    122122 
    123 //CParallelTree::CParallelTree(MPI_Comm comm) : communicator(comm), cascade(MIN_NODE_SZ*MIN_NODE_SZ, comm) 
    124 CParallelTree::CParallelTree(MPI_Comm comm) : communicator(comm), cascade(MAX_NODE_SZ*MAX_NODE_SZ*2, comm) 
    125 { 
    126         treeCascade.reserve(cascade.num_levels); 
    127         for (int lev = 0; lev < cascade.num_levels; lev++) 
    128                 treeCascade.push_back(CSampleTree(cascade.level[lev].group_size, assignLevel)); 
     123//CParallelTree::CParallelTree(MPI_Comm comm) : communicator(comm), cascade(MIN_NODE_SZ*MIN_NODE_SZ*2, comm) 
     124CParallelTree::CParallelTree(MPI_Comm comm) : cascade(MAX_NODE_SZ*MAX_NODE_SZ*2, comm) 
     125{ 
     126  MPI_Comm_dup(comm, &communicator); 
     127  treeCascade.reserve(cascade.num_levels); 
     128  for (int lev = 0; lev < cascade.num_levels; lev++) 
     129    treeCascade.push_back(CSampleTree(cascade.level[lev].group_size, assignLevel)); 
    129130} 
    130131 
Note: See TracChangeset for help on using the changeset viewer.