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 2236 for branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/opa.F90 – NEMO

Ignore:
Timestamp:
2010-10-12T20:49:32+02:00 (14 years ago)
Author:
cetlod
Message:

First guess of NEMO_v3.3

File:
1 edited

Legend:

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

    r2224 r2236  
    2525   !!             -   ! 2007-07  (J. Chanut, A. Sellar) Unstructured open boundaries (BDY) 
    2626   !!            3.2  ! 2009-08  (S. Masson)  open/write in the listing file in mpp 
    27    !!            3.3  ! 2010-10  (C. Ethe, G. Madec) reorganisation of initialisation phase 
     27   !!            3.3  ! 2010-05  (K. Mogensen, A. Weaver, M. Martin, D. Lea) Assimilation interface  
     28   !!             -   ! 2010-10  (C. Ethe, G. Madec) reorganisation of initialisation phase 
    2829   !!---------------------------------------------------------------------- 
    2930 
     
    4748   USE zdfini 
    4849   USE phycst          ! physical constant                  (par_cst routine) 
     50   USE trdmod          ! momentum/tracers trends       (trd_mod_init routine) 
     51   USE asminc          ! assimilation increments       (asm_inc_init routine) 
     52   USE asmtrj          ! writing out state trajectory 
     53   USE sshwzv          ! vertical velocity used in asm 
     54   USE diaptr          ! poleward transports           (dia_ptr_init routine) 
     55   USE diaobs          ! Observation diagnostics       (dia_obs_init routine) 
    4956   USE step            ! OPA time-stepping                  (stp     routine) 
    5057#if defined key_oasis3 
     
    5360   USE cpl_oasis4      ! OASIS4 coupling (not working) 
    5461#endif 
     62#if defined key_c1d 
    5563   USE c1d             ! 1D configuration 
    5664   USE step_c1d        ! Time stepping loop for the 1D configuration 
     65#endif 
    5766#if defined key_top 
    5867   USE trcini          ! passive tracer initialisation 
     
    7483   !! NEMO/OPA 3.3 , LOCEAN-IPSL (2010)  
    7584   !! $Id$ 
    76    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     85   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    7786   !!---------------------------------------------------------------------- 
    7887 
     
    114123      !                            !-----------------------! 
    115124      istp = nit000 
    116       IF( lk_c1d ) THEN                 !==  1D configuration  ==! 
     125#if defined key_c1d 
    117126         DO WHILE ( istp <= nitend .AND. nstop == 0 ) 
    118127            CALL stp_c1d( istp ) 
    119128            istp = istp + 1 
    120129         END DO 
    121       ELSE                              !==  3D ocean with  ==! 
     130#else 
     131          IF( lk_asminc ) THEN 
     132             IF( ln_bkgwri ) CALL asm_bkg_wri( nit000 - 1 )    ! Output background fields 
     133             IF( ln_trjwri ) CALL asm_trj_wri( nit000 - 1 )    ! Output trajectory fields 
     134             IF( ln_asmdin ) THEN                        ! Direct initialization 
     135                IF( ln_trainc ) CALL tra_asm_inc( nit000 - 1 )    ! Tracers 
     136                IF( ln_dyninc ) THEN  
     137                   CALL dyn_asm_inc( nit000 - 1 )    ! Dynamics 
     138                   IF ( ln_asmdin ) CALL ssh_wzv ( nit000 - 1 )      ! update vertical velocity  
     139                ENDIF 
     140                IF( ln_sshinc ) CALL ssh_asm_inc( nit000 - 1 )    ! SSH 
     141             ENDIF 
     142          ENDIF 
     143         
    122144         DO WHILE ( istp <= nitend .AND. nstop == 0 ) 
    123145#if defined key_agrif 
     
    129151            IF( lk_mpp )   CALL mpp_max( nstop ) 
    130152         END DO 
    131       ENDIF 
     153#endif 
     154 
     155      IF( lk_diaobs ) CALL dia_obs_wri 
    132156        
    133157      !                            !------------------------! 
     
    184208#else 
    185209# if defined key_oasis3 || defined key_oasis4 
    186       CALL cpl_prism_init( ilocal_comm )      ! nemo local communicator given by oasis 
     210      IF( Agrif_Root() ) THEN 
     211         CALL cpl_prism_init( ilocal_comm )      ! nemo local communicator given by oasis 
     212      ENDIF 
    187213      narea = mynode( cltxt, ilocal_comm )    ! Nodes selection (control print return in cltxt) 
    188214# else 
     
    222248      ELSE                            ;   CALL mpp_init2     ! eliminate land processors 
    223249      ENDIF 
     250!!gm c1d case can be moved in dom_init routine 
     251#if defined key_c1d 
     252         CALL cor_c1d                            ! Coriolis defined at T-point 
     253         umask(:,:,:) = tmask(:,:,:)             ! U, V and T-points are the same 
     254         vmask(:,:,:) = tmask(:,:,:)             !  
     255#endif 
     256!!gm c1d end 
    224257 
    225258      !                                      ! General initialization 
     
    282315                            CALL dia_hsb_init   ! heat content, salt content and volume budgets 
    283316                            CALL trd_mod_init   ! Mixed-layer/Vorticity/Integral constraints trends 
     317      IF( lk_diaobs    ) THEN 
     318         CALL dia_obs_init                  ! Initialize observational data 
     319         CALL dia_obs( nit000 - 1 )         ! Observation operator for restart 
     320      ENDIF       
     321      IF( lk_asminc    )    CALL asm_inc_init     ! Initialize assimilation increments 
     322      IF(lwp) WRITE(numout,*)'Euler time step switch is ', neuler 
     323 
    284324      ! 
    285325   END SUBROUTINE opa_init 
Note: See TracChangeset for help on using the changeset viewer.