Ignore:
Timestamp:
02/11/14 13:29:57 (10 years ago)
Author:
aclsce
Message:

Modified to use Oasis-MCT coupler in coupled mode.

Location:
XIOS/trunk/src/interface
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/c/oasis_cinterface.cpp

    r382 r475  
    1616  } 
    1717   
     18  void oasis_enddef(void) 
     19  { 
     20    fxios_oasis_enddef() ; 
     21  } 
     22 
    1823  void oasis_get_localcomm(MPI_Comm& comm) 
    1924  { 
  • XIOS/trunk/src/interface/c/oasis_cinterface.hpp

    r382 r475  
    88 
    99  void fxios_oasis_init(const char* server_id,int str_len) ; 
     10  void fxios_oasis_enddef(void) ; 
    1011  void fxios_oasis_finalize(void) ; 
    1112  void fxios_oasis_get_localcomm(MPI_Fint* f_comm) ; 
     
    1718{ 
    1819  void oasis_init(const std::string& server_id) ; 
     20  void oasis_enddef(void) ; 
    1921  void oasis_finalize(void) ; 
    2022  void oasis_get_localcomm(MPI_Comm& comm) ; 
  • XIOS/trunk/src/interface/fortran/oasis_interface.F90

    r325 r475  
    33#ifdef USE_OASIS 
    44  USE mod_prism_proto 
     5#endif 
     6#ifdef USE_OMCT 
     7  USE mod_prism 
    58#endif 
    69    CHARACTER(kind = C_CHAR),DIMENSION(*) :: server_id 
     
    1619    ENDDO 
    1720 
    18 #ifdef USE_OASIS 
    19     CALL prism_init_comp_proto (comp_id, oasis_server_id, ierr) 
     21#if defined USE_OASIS || defined USE_OMCT 
     22     CALL prism_init_comp_proto (comp_id, oasis_server_id, ierr) 
    2023#endif 
    2124    PRINT *,"---> prism_init",oasis_server_id,ierr 
     
    2326END SUBROUTINE fxios_oasis_init 
    2427 
     28SUBROUTINE fxios_oasis_enddef() BIND(C,NAME="fxios_oasis_enddef") 
     29  USE, INTRINSIC :: ISO_C_BINDING 
     30#ifdef USE_OMCT 
     31  USE mod_prism 
     32#endif 
     33  IMPLICIT NONE 
     34  INTEGER :: ierr 
     35#ifdef USE_OMCT 
     36     CALL prism_enddef_proto(ierr) 
     37#endif 
     38 
     39END SUBROUTINE fxios_oasis_enddef 
    2540 
    2641SUBROUTINE fxios_oasis_finalize() BIND(C,NAME="fxios_oasis_finalize") 
     
    2944  USE mod_prism_proto 
    3045#endif 
     46#ifdef USE_OMCT 
     47  USE mod_prism 
     48#endif 
    3149  IMPLICIT NONE 
    3250  INTEGER :: ierr 
    3351   
    34 #ifdef USE_OASIS 
     52#if defined USE_OASIS || defined USE_OMCT 
    3553    CALL prism_terminate_proto(ierr) 
    3654#endif 
     
    4260  USE, INTRINSIC :: ISO_C_BINDING 
    4361#ifdef USE_OASIS 
    44 !  USE mod_prism_get_localcomm_proto  
     62  USE mod_prism_get_localcomm_proto  
    4563#endif 
     64#ifdef USE_OMCT 
     65  USE mod_prism 
     66#endif  
    4667  IMPLICIT NONE 
    4768  INTEGER(kind=C_INT) :: f_comm 
     
    5071  INTEGER :: ierr 
    5172     
    52 #ifdef USE_OASIS 
     73#if defined USE_OASIS || defined USE_OMCT 
    5374    CALL prism_get_localcomm_proto(comm,ierr) 
    5475#endif 
     
    6485#ifdef USE_OASIS 
    6586  USE mod_prism_get_comm  
     87#endif 
     88#ifdef USE_OMCT 
     89  USE mod_prism 
    6690#endif 
    6791  IMPLICIT NONE 
     
    79103    ENDDO 
    80104     
    81 #ifdef USE_OASIS 
     105#if defined USE_OASIS || defined USE_OMCT 
    82106    CALL prism_get_intracomm(comm_client_server,oasis_client_id,ierr) 
    83107#endif 
     
    91115#ifdef USE_OASIS 
    92116  USE mod_prism_get_comm  
     117#endif 
     118#ifdef USE_OMCT 
     119  USE mod_prism 
    93120#endif 
    94121  IMPLICIT NONE 
     
    106133    ENDDO 
    107134     
    108 #ifdef USE_OASIS 
     135#if defined USE_OASIS || defined USE_OMCT 
    109136    CALL prism_get_intercomm(comm_client_server,oasis_client_id,ierr) 
    110137#endif 
Note: See TracChangeset for help on using the changeset viewer.