Last change
on this file since 2001 was
1639,
checked in by yushan, 6 years ago
|
revert erroneous commit on trunk
|
-
Property copyright set to
Software name : XIOS (Xml I/O Server) http://forge.ipsl.jussieu.fr/ioserver Creation date : January 2009 Licence : CeCCIL version2 see license file in root directory : Licence_CeCILL_V2-en.txt or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement) CNRS/IPSL (Institut Pierre Simon Laplace) Project Manager : Yann Meurdesoif yann.meurdesoif@cea.fr
-
Property svn:eol-style set to
native
|
File size:
978 bytes
|
Rev | Line | |
---|
[325] | 1 | #include "oasis_cinterface.hpp" |
---|
| 2 | #include <string> |
---|
[382] | 3 | #include "mpi.hpp" |
---|
[325] | 4 | |
---|
[335] | 5 | namespace xios |
---|
[325] | 6 | { |
---|
| 7 | |
---|
| 8 | void oasis_init(const std::string& server_id) |
---|
| 9 | { |
---|
| 10 | fxios_oasis_init(server_id.data(),server_id.size()) ; |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | void oasis_finalize(void) |
---|
| 14 | { |
---|
| 15 | fxios_oasis_finalize() ; |
---|
| 16 | } |
---|
| 17 | |
---|
[475] | 18 | void oasis_enddef(void) |
---|
| 19 | { |
---|
| 20 | fxios_oasis_enddef() ; |
---|
| 21 | } |
---|
| 22 | |
---|
[1639] | 23 | void oasis_get_localcomm(MPI_Comm& comm) |
---|
[325] | 24 | { |
---|
[1639] | 25 | MPI_Fint f_comm ; |
---|
[325] | 26 | |
---|
| 27 | fxios_oasis_get_localcomm(&f_comm) ; |
---|
[1639] | 28 | comm=MPI_Comm_f2c(f_comm) ; |
---|
[325] | 29 | } |
---|
| 30 | |
---|
[1639] | 31 | void oasis_get_intracomm(MPI_Comm& comm_client_server,const std::string& server_id) |
---|
[325] | 32 | { |
---|
[1639] | 33 | MPI_Fint f_comm ; |
---|
[325] | 34 | |
---|
| 35 | fxios_oasis_get_intracomm(&f_comm,server_id.data(),server_id.size()) ; |
---|
[1639] | 36 | comm_client_server=MPI_Comm_f2c(f_comm) ; |
---|
[325] | 37 | } |
---|
| 38 | |
---|
[1639] | 39 | void oasis_get_intercomm(MPI_Comm& comm_client_server,const std::string& server_id) |
---|
[325] | 40 | { |
---|
[1639] | 41 | MPI_Fint f_comm ; |
---|
[325] | 42 | |
---|
| 43 | fxios_oasis_get_intercomm(&f_comm,server_id.data(),server_id.size()) ; |
---|
[1639] | 44 | comm_client_server=MPI_Comm_f2c(f_comm) ; |
---|
[325] | 45 | } |
---|
| 46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.