Last change
on this file since 286 was
286,
checked in by ymipsl, 13 years ago
|
reprise en main de la version de H. Ozdoba. Correction de différentes erreurs de conception et bug.
Version NEMO operationnel en client/server, interoperabilita avec OASIS, reconstition de fichiers via netcdf4/HDF5
YM
|
-
Property svn:eol-style set to
native
|
File size:
526 bytes
|
Rev | Line | |
---|
[286] | 1 | #include "oasis_cinterface.hpp" |
---|
| 2 | #include <string> |
---|
| 3 | #include <mpi.h> |
---|
| 4 | |
---|
| 5 | namespace xmlioserver |
---|
| 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 | |
---|
| 18 | |
---|
| 19 | void oasis_get_intracomm(MPI_Comm& comm_client_server,const std::string& server_id) |
---|
| 20 | { |
---|
| 21 | MPI_Fint f_comm ; |
---|
| 22 | |
---|
| 23 | fxios_oasis_get_intracomm(&f_comm,server_id.data(),server_id.size()) ; |
---|
| 24 | comm_client_server=MPI_Comm_f2c(f_comm) ; |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.