New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 991 for branches/dev_003_CPL/NEMO/OPA_SRC/opa.F90 – NEMO

Ignore:
Timestamp:
2008-05-23T17:55:55+02:00 (16 years ago)
Author:
smasson
Message:

dev_003_CPL: preliminary draft (not working), see ticket #155

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_003_CPL/NEMO/OPA_SRC/opa.F90

    r990 r991  
    3838   !! * Modules used 
    3939   USE oce             ! dynamics and tracers variables 
    40    USE cpl_oce         ! ocean-atmosphere-sea ice coupled exchanges 
    4140   USE dom_oce         ! ocean space domain variables 
    4241   USE sbc_oce         ! surface boundary condition: ocean 
     
    7069 
    7170   USE step            ! OPA time-stepping                  (stp     routine) 
    72 #if defined key_oasis3 
    73    USE cpl_oasis3      ! OASIS3 coupling (to ECHAM5) 
    74 #elif defined key_oasis4 
    75    USE cpl_oasis4      ! OASIS4 coupling (to ECHAM5) 
    76 #endif 
     71   USE cpl_oasis3      ! OASIS3 coupling 
    7772   USE dynspg_oce      ! Control choice of surface pressure gradient schemes 
    7873   USE prtctl          ! Print control                 (prt_ctl_init routine) 
     
    159154 
    160155      CALL opa_closefile 
    161 #if defined key_oasis3 || defined key_oasis4 
    162       call cpl_prism_finalize 
    163 #else 
    164       IF( lk_mpp )   CALL mppstop                          ! Close all files (mpp) 
    165 #endif 
    166       ! 
     156      IF      ( lk_cpl ) THEN   ;   CALL cpl_prism_finalize 
     157      ELSE IF ( lk_mpp ) THEN   ;   CALL mppstop                ! Close all files (mpp) 
     158      ENDIF 
     159                           
    167160   END SUBROUTINE opa_model 
    168161 
     
    175168      !! 
    176169      !!---------------------------------------------------------------------- 
    177 #if defined key_coupled 
    178       INTEGER ::   itro, istp0        ! ??? 
    179 #endif 
    180 #if defined key_oasis3 || defined key_oasis4 
    181170      INTEGER :: localComm 
    182 #endif 
    183171      CHARACTER (len=20) ::   namelistname 
    184172      CHARACTER (len=28) ::   file_out 
     
    212200      READ  ( numnam, namctl ) 
    213201 
    214 #if defined key_oasis3 || defined key_oasis4 
    215       call cpl_prism_init(localComm) 
    216       ! Nodes selection 
    217       narea = mynode(localComm) 
    218 #else 
    219       ! Nodes selection 
    220       narea = mynode() 
    221 #endif 
     202      IF ( lk_cpl ) THEN 
     203         CALL cpl_prism_init() 
     204         narea = mynode(nlocalComm) 
     205      ELSE  
     206         narea = mynode() 
     207      ENDIF 
     208           
    222209      narea = narea + 1    ! mynode return the rank of proc (0 --> jpnij -1 ) 
    223210      lwp   = narea == 1 
     
    290277      CALL trd_mod_init                         ! Mixed-layer/Vorticity/Integral constraints trends 
    291278 
    292  
    293279#if defined key_top 
    294280      CALL ini_trc                           ! Passive tracers 
    295 #endif 
    296  
    297 #if defined key_coupled && ! defined key_oasis3 && ! defined key_oasis4 
    298       itro  = nitend - nit000 + 1           ! Coupled 
    299       istp0 = NINT( rdt ) 
    300       CALL cpl_init( itro, nexco, istp0 )   ! Signal processing and process id exchange 
    301 #endif 
    302  
    303 #if defined key_oasis3 || defined key_oasis4 
    304       CALL cpl_prism_define 
    305281#endif 
    306282 
Note: See TracChangeset for help on using the changeset viewer.