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 5296 for branches/2015/dev_r5177_CNRS4_stopar/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2015-05-27T12:47:55+02:00 (9 years ago)
Author:
pabouttier
Message:

Commit stochastic parametrization module and perturbation of EOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5177_CNRS4_stopar/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r5123 r5296  
    2929   !!            3.3.1! 2011-01  (A. R. Porter, STFC Daresbury) dynamical allocation 
    3030   !!            3.4  ! 2011-11  (C. Harris) decomposition changes for running with CICE 
    31    !!                 ! 2012-05  (C. Calone, J. Simeon, G. Madec, C. Ethe) Add grid coarsening  
     31   !!                 ! 2012-05  (C. Calone, J. Simeon, G. Madec, C. Ethe) Add grid coarsening 
    3232   !!---------------------------------------------------------------------- 
    3333 
     
    5959   USE phycst          ! physical constant                  (par_cst routine) 
    6060   USE trdini          ! dyn/tra trends initialization     (trd_init routine) 
    61    USE asminc          ! assimilation increments      
     61   USE asminc          ! assimilation increments 
    6262   USE asmbkg          ! writing out state trajectory 
    6363   USE diaptr          ! poleward transports           (dia_ptr_init routine) 
     
    8181   USE sbctide, ONLY: lk_tide 
    8282   USE crsini          ! initialise grid coarsening utility 
    83    USE lbcnfd, ONLY: isendto, nsndto, nfsloop, nfeloop ! Setup of north fold exchanges  
     83   USE lbcnfd, ONLY: isendto, nsndto, nfsloop, nfeloop ! Setup of north fold exchanges 
     84   USE stopar 
     85   USE stopts 
    8486 
    8587   IMPLICIT NONE 
     
    125127#if defined key_agrif 
    126128      CALL Agrif_Declare_Var_dom   ! AGRIF: set the meshes for DOM 
    127       CALL Agrif_Declare_Var       !  "      "   "   "      "  DYN/TRA  
     129      CALL Agrif_Declare_Var       !  "      "   "   "      "  DYN/TRA 
    128130# if defined key_top 
    129131      CALL Agrif_Declare_Var_top   !  "      "   "   "      "  TOP 
     
    197199      IF( lk_cpl ) CALL cpl_finalize    ! end coupling and mpp communications with OASIS 
    198200#else 
    199       IF( lk_cpl ) THEN  
     201      IF( lk_cpl ) THEN 
    200202         CALL cpl_finalize              ! end coupling and mpp communications with OASIS 
    201203      ELSE 
     
    246248      REWIND( numnam_cfg )              ! Namelist namcfg in confguration namelist : Control prints & Benchmark 
    247249      READ  ( numnam_cfg, namcfg, IOSTAT = ios, ERR = 904 ) 
    248 904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in configuration namelist', .TRUE. )    
     250904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in configuration namelist', .TRUE. ) 
    249251 
    250252! Force values for AGRIF zoom (cf. agrif_user.F90) 
     
    322324#if defined key_nemocice_decomp 
    323325         jpi = ( nx_global+2-2*jpreci + (jpni-1) ) / jpni + 2*jpreci ! first  dim. 
    324          jpj = ( ny_global+2-2*jprecj + (jpnj-1) ) / jpnj + 2*jprecj ! second dim.  
     326         jpj = ( ny_global+2-2*jprecj + (jpnj-1) ) / jpnj + 2*jprecj ! second dim. 
    325327#else 
    326328         jpi = ( jpiglo-2*jpreci + (jpni-1) ) / jpni + 2*jpreci   ! first  dim. 
     
    392394 
    393395                            CALL dyn_nept_init  ! simplified form of Neptune effect 
    394       !      
     396      ! 
    395397      IF( ln_crs        )   CALL     crs_init   ! Domain initialization of coarsened grid 
    396398      ! 
     
    432434      IF( nn_cla == 1 .AND. cp_cfg == 'orca' .AND. jp_cfg == 2 )   CALL cla_init       ! Cross Land Advection 
    433435                            CALL icb_init( rdt, nit000)   ! initialise icebergs instance 
    434       
     436                            CALL sto_par_init   ! Stochastic parametrization 
     437      IF( ln_sto_eos     )  CALL sto_pts_init   ! RRandom T/S fluctuations 
     438 
    435439#if defined key_top 
    436440      !                                     ! Passive tracers 
     
    506510         WRITE(numout,*) '      left bottom i index of the zoom (in data domain) jpizoom = ', jpizoom 
    507511         WRITE(numout,*) '      left bottom j index of the zoom (in data domain) jpizoom = ', jpjzoom 
    508          WRITE(numout,*) '      lateral cond. type (between 0 and 6) jperio = ', jperio    
     512         WRITE(numout,*) '      lateral cond. type (between 0 and 6) jperio = ', jperio 
    509513         WRITE(numout,*) '      use file attribute if exists as i/p j-start ln_use_jattr = ', ln_use_jattr 
    510514      ENDIF 
     
    607611      USE ldftra_oce, ONLY: ldftra_oce_alloc 
    608612      USE trc_oce   , ONLY: trc_oce_alloc 
    609 #if defined key_diadct  
    610       USE diadct    , ONLY: diadct_alloc  
    611 #endif  
     613#if defined key_diadct 
     614      USE diadct    , ONLY: diadct_alloc 
     615#endif 
    612616#if defined key_bdy 
    613617      USE bdy_oce   , ONLY: bdy_oce_alloc 
     
    626630      ierr = ierr + trc_oce_alloc   ()          ! shared TRC / TRA arrays 
    627631      ! 
    628 #if defined key_diadct  
    629       ierr = ierr + diadct_alloc    ()          !  
    630 #endif  
     632#if defined key_diadct 
     633      ierr = ierr + diadct_alloc    ()          ! 
     634#endif 
    631635#if defined key_bdy 
    632636      ierr = ierr + bdy_oce_alloc   ()          ! bdy masks (incl. initialization) 
     
    757761      !!====================================================================== 
    758762      !!                     ***  ROUTINE  nemo_northcomms  *** 
    759       !! nemo_northcomms    :  Setup for north fold exchanges with explicit  
     763      !! nemo_northcomms    :  Setup for north fold exchanges with explicit 
    760764      !!                       point-to-point messaging 
    761765      !!===================================================================== 
     
    765769      !!---------------------------------------------------------------------- 
    766770      !!    1.0  ! 2011-10  (A. C. Coward, NOCS & J. Donners, PRACE) 
    767       !!    2.0  ! 2013-06 Setup avoiding MPI communication (I. Epicoco, S. Mocavero, CMCC)  
     771      !!    2.0  ! 2013-06 Setup avoiding MPI communication (I. Epicoco, S. Mocavero, CMCC) 
    768772      !!---------------------------------------------------------------------- 
    769773 
     
    772776 
    773777      njmppmax = MAXVAL( njmppt ) 
    774      
     778 
    775779      !initializes the north-fold communication variables 
    776780      isendto(:) = 0 
     
    788792          !loop over the other north-fold processes to find the processes 
    789793          !managing the points belonging to the sxT-dxT range 
    790    
     794 
    791795          DO jn = 1, jpni 
    792796                !sxT is the first point (in the global domain) of the jn 
Note: See TracChangeset for help on using the changeset viewer.