Ignore:
Timestamp:
02/17/17 17:55:37 (7 years ago)
Author:
yushan
Message:

ep_lib namespace specified when netcdf involved

Location:
XIOS/dev/branch_yushan/src/interface
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/interface/c/icdata.cpp

    r1037 r1053  
    2323#include "context.hpp" 
    2424#include "context_client.hpp" 
    25 #include "mpi.hpp" 
     25#include "mpi_std.hpp" 
    2626#include "timer.hpp" 
    2727#include "array_new.hpp" 
     
    5454   { 
    5555      std::string str; 
    56       MPI_Comm local_comm; 
    57       MPI_Comm return_comm; 
     56      ep_lib::MPI_Comm local_comm; 
     57      ep_lib::MPI_Comm return_comm; 
    5858       
    59       fc_comm_map.clear(); 
     59      ep_lib::fc_comm_map.clear(); 
    6060 
    6161      if (!cstr2string(client_id, len_client_id, str)) return; 
     
    6363      int initialized; 
    6464      MPI_Initialized(&initialized); 
    65       if (initialized) local_comm=MPI_Comm_f2c(*f_local_comm); 
     65      //if (initialized) local_comm.mpi_comm = MPI_Comm_f2c(*f_local_comm); 
     66      if (initialized) local_comm = ep_lib::EP_Comm_f2c(static_cast< int >(*f_local_comm)); 
    6667      else local_comm = MPI_COMM_NULL; 
    6768       
     
    6970 
    7071      CXios::initClientSide(str, local_comm, return_comm); 
    71       *f_return_comm = MPI_Comm_c2f(return_comm); 
     72 
     73      *f_return_comm = ep_lib::EP_Comm_c2f(return_comm); 
    7274 
    7375      printf("in icdata.cpp, f_return_comm = %d\n", *f_return_comm); 
     
    8082   { 
    8183     std::string str; 
    82      MPI_Comm comm; 
     84     ep_lib::MPI_Comm comm; 
    8385 
    8486     if (!cstr2string(context_id, len_context_id, str)) return; 
    8587     CTimer::get("XIOS").resume(); 
    8688     CTimer::get("XIOS init context").resume(); 
    87      comm=MPI_Comm_f2c(*f_comm); 
     89     comm = ep_lib::EP_Comm_f2c(static_cast< int >(*f_comm)); 
    8890     
    8991     CClient::registerContext(str, comm); 
    9092      
    91      //printf("client register context OK\n"); 
     93     printf("icdata.cpp: client register context OK\n"); 
    9294      
    9395     CTimer::get("XIOS init context").suspend(); 
  • XIOS/dev/branch_yushan/src/interface/c/oasis_cinterface.cpp

    r1037 r1053  
    2626     
    2727    fxios_oasis_get_localcomm(&f_comm) ; 
    28     comm=MPI_Comm_f2c(f_comm) ; 
     28    //comm=MPI_Comm_f2c(f_comm) ; 
    2929  } 
    3030  
     
    3434     
    3535    fxios_oasis_get_intracomm(&f_comm,server_id.data(),server_id.size()) ; 
    36     comm_client_server=MPI_Comm_f2c(f_comm) ; 
     36    //comm_client_server=MPI_Comm_f2c(f_comm) ; 
    3737  } 
    3838  
     
    4242     
    4343    fxios_oasis_get_intercomm(&f_comm,server_id.data(),server_id.size()) ; 
    44     comm_client_server=MPI_Comm_f2c(f_comm) ; 
     44    //comm_client_server=MPI_Comm_f2c(f_comm) ; 
    4545  } 
    4646} 
  • XIOS/dev/branch_yushan/src/interface/fortran/idata.F90

    r1037 r1053  
    476476       
    477477      !print*, "in fortran, world_f = ", MPI_COMM_WORLD  
     478 
    478479      print*, "in fortran, f_return_comm = ", f_return_comm  
    479480 
Note: See TracChangeset for help on using the changeset viewer.