Changeset 1053 for XIOS/dev/branch_yushan/src/interface
- Timestamp:
- 02/17/17 17:55:37 (7 years ago)
- 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 23 23 #include "context.hpp" 24 24 #include "context_client.hpp" 25 #include "mpi .hpp"25 #include "mpi_std.hpp" 26 26 #include "timer.hpp" 27 27 #include "array_new.hpp" … … 54 54 { 55 55 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; 58 58 59 fc_comm_map.clear();59 ep_lib::fc_comm_map.clear(); 60 60 61 61 if (!cstr2string(client_id, len_client_id, str)) return; … … 63 63 int initialized; 64 64 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)); 66 67 else local_comm = MPI_COMM_NULL; 67 68 … … 69 70 70 71 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); 72 74 73 75 printf("in icdata.cpp, f_return_comm = %d\n", *f_return_comm); … … 80 82 { 81 83 std::string str; 82 MPI_Comm comm;84 ep_lib::MPI_Comm comm; 83 85 84 86 if (!cstr2string(context_id, len_context_id, str)) return; 85 87 CTimer::get("XIOS").resume(); 86 88 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)); 88 90 89 91 CClient::registerContext(str, comm); 90 92 91 //printf("client register context OK\n");93 printf("icdata.cpp: client register context OK\n"); 92 94 93 95 CTimer::get("XIOS init context").suspend(); -
XIOS/dev/branch_yushan/src/interface/c/oasis_cinterface.cpp
r1037 r1053 26 26 27 27 fxios_oasis_get_localcomm(&f_comm) ; 28 comm=MPI_Comm_f2c(f_comm) ;28 //comm=MPI_Comm_f2c(f_comm) ; 29 29 } 30 30 … … 34 34 35 35 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) ; 37 37 } 38 38 … … 42 42 43 43 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) ; 45 45 } 46 46 } -
XIOS/dev/branch_yushan/src/interface/fortran/idata.F90
r1037 r1053 476 476 477 477 !print*, "in fortran, world_f = ", MPI_COMM_WORLD 478 478 479 print*, "in fortran, f_return_comm = ", f_return_comm 479 480
Note: See TracChangeset
for help on using the changeset viewer.