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 1359 for trunk/NEMO/OPA_SRC/opa.F90 – NEMO

Ignore:
Timestamp:
2009-03-31T14:36:28+02:00 (15 years ago)
Author:
smasson
Message:

first implementation of iom_put, see ticket:387

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/opa.F90

    r1226 r1359  
    6868   USE step            ! OPA time-stepping                  (stp     routine) 
    6969#if defined key_oasis3 
    70    USE cpl_oasis3      ! OASIS3 coupling (to ECHAM5) 
     70   USE cpl_oasis3      ! OASIS3 coupling 
    7171#elif defined key_oasis4 
    72    USE cpl_oasis4      ! OASIS4 coupling (to ECHAM5) 
     72   USE cpl_oasis4      ! OASIS4 coupling (not working) 
    7373#endif 
    7474   USE dynspg_oce      ! Control choice of surface pressure gradient schemes 
     
    7979 
    8080   USE trcini          ! Initialization of the passive tracers 
     81   USE iom 
     82#if defined key_ioserver 
     83   USE io_interface 
     84#endif 
    8185 
    8286   IMPLICIT NONE 
     
    172176      !! 
    173177      !!---------------------------------------------------------------------- 
    174 #if defined key_oasis3 || defined key_oasis4 
     178#if defined key_oasis3 || defined key_oasis4 || defined key_ioserver 
    175179      INTEGER :: localComm 
    176180#endif 
     
    209213      call cpl_prism_init(localComm) 
    210214      ! Nodes selection 
     215      narea = mynode(localComm) 
     216#elif key_ioserver 
     217      CALL init_ioserver(localcomm, .FALSE.) 
    211218      narea = mynode(localComm) 
    212219#else 
     
    283290 
    284291#if defined key_top 
    285       CALL trc_ini                           ! Passive tracers 
     292      CALL trc_ini                          ! Passive tracers 
    286293#endif 
    287294 
    288295      CALL dia_ptr_init                     ! Poleward TRansports initialization 
     296 
     297      CALL iom_init( fjulday - adatrj )     ! iom_put initialization 
    289298 
    290299      !                                     ! =============== ! 
     
    437446      IF ( lk_mpp ) CALL mppsync 
    438447 
    439       ! 1. Unit close 
    440       ! ------------- 
    441  
    442448      CLOSE( numnam )           ! namelist 
    443449      CLOSE( numout )           ! standard model output file 
    444450 
    445451      IF(lwp) CLOSE( numstp )   ! time-step file 
    446       IF(lwp) CLOSE( numsol ) 
     452      IF(lwp) CLOSE( numsol )   ! solver file 
     453 
     454      CALL iom_close            ! close all input/output files 
    447455 
    448456   END SUBROUTINE opa_closefile 
Note: See TracChangeset for help on using the changeset viewer.