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 14915 for NEMO/branches – NEMO

Changeset 14915 for NEMO/branches


Ignore:
Timestamp:
2021-05-27T17:21:14+02:00 (3 years ago)
Author:
gsamson
Message:

minimum set of bugfixes and changes to get C1D_PAPA compiling and running with MPI; ticket #2680

Location:
NEMO/branches/2021/ticket2680_C1D_PAPA
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/ticket2680_C1D_PAPA/cfgs/C1D_PAPA/MY_SRC/usrdef_nam.F90

    r14433 r14915  
    7171      kk_cfg = 0 
    7272 
    73       ! Global Domain size:  C1D domain is 3 x 3 grid-points x 75 or vertical levels 
    74       kpi = 3 
    75       kpj = 3 
     73      ! Global Domain size:  C1D domain is 1 x 1 grid-points x 75 or vertical levels 
     74      kpi = 1 
     75      kpj = 1 
    7676      kpk = 75  
    7777      !                             ! Set the lateral boundary condition of the global domain 
    78       ldIperio =  .TRUE.   ;   ldJperio = .TRUE.   ! C1D configuration : 3x3 basin with cyclic Est-West and Norht-South condition 
     78      ldIperio =  .TRUE.   ;   ldJperio = .TRUE.   ! C1D configuration : 1x1 basin with cyclic Est-West and Norht-South condition 
    7979      ldNFold  = .FALSE.   ;   cdNFtype = '-' 
    8080      ! 
     
    8989         WRITE(numout,*) '         z-partial-step coordinate flag        ln_zps = ', ln_zps 
    9090         WRITE(numout,*) '         s-coordinate flag                     ln_sco = ', ln_sco 
    91          WRITE(numout,*) '      C1D domain = 3 x 3 x75 grid-points                ' 
     91         WRITE(numout,*) '      C1D domain = 1 x 1 x 75 grid-points                ' 
    9292         WRITE(numout,*) '         resulting global domain size :        jpiglo = ', kpi 
    9393         WRITE(numout,*) '                                               jpjglo = ', kpj 
  • NEMO/branches/2021/ticket2680_C1D_PAPA/src/OCE/C1D/dtauvd.F90

    r13497 r14915  
    2626   PUBLIC   dta_uvd        ! called by istate.F90 and dyndmp.90 
    2727 
    28    LOGICAL , PUBLIC ::   ln_uvd_init     ! Flag to initialise with U & V current data 
    29    LOGICAL , PUBLIC ::   ln_uvd_dyndmp   ! Flag for Newtonian damping toward U & V current data 
     28   LOGICAL , PUBLIC ::   ln_uvd_init   = .FALSE.   ! Flag to initialise with U & V current data 
     29   LOGICAL , PUBLIC ::   ln_uvd_dyndmp = .FALSE.   ! Flag for Newtonian damping toward U & V current data 
    3030 
    3131   TYPE(FLD), ALLOCATABLE, DIMENSION(:) ::   sf_uvd   ! structure for input U & V current (file information and data) 
  • NEMO/branches/2021/ticket2680_C1D_PAPA/src/OCE/C1D/step_c1d.F90

    r14239 r14915  
    1515   !!---------------------------------------------------------------------- 
    1616   USE step_oce        ! time stepping definition modules 
    17    USE step, ONLY : Nbb, Nnn, Naa, Nrhs ! time level indices 
     17   USE stpmlf, ONLY : Nbb, Nnn, Naa, Nrhs ! time level indices 
    1818#if defined key_top 
    1919   USE trcstp          ! passive tracer time-stepping      (trc_stp routine) 
    2020#endif 
    2121   USE dyncor_c1d      ! Coriolis term (c1d case)         (dyn_cor_1d     ) 
    22    USE dynatf          ! time filtering                   (dyn_atf routine) 
     22   USE dynatf_qco      ! time filtering                   (dyn_atf routine) 
    2323   USE dyndmp          ! U & V momentum damping           (dyn_dmp routine) 
    2424   USE restart         ! restart 
     
    7676      !  VERTICAL PHYSICS 
    7777                         CALL zdf_phy( kstp, Nbb, Nnn, Nrhs  )    ! vertical physics update (bfr, avt, avs, avm + MLD) 
    78  
     78#if ! defined key_linssh 
    7979      IF(.NOT.ln_linssh )   CALL ssh_nxt       ( kstp, Nbb, Nnn, ssh, Naa )  ! after ssh (includes call to div_hor) 
    8080      IF(.NOT.ln_linssh )   CALL dom_vvl_sf_nxt( kstp, Nbb, Nnn,      Naa )  ! after vertical scale factors 
    8181 
    8282      IF(.NOT.ln_linssh )   CALL wzv           ( kstp, Nbb, Nnn, Naa, ww )  ! now cross-level velocity 
     83#endif 
    8384      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    8485      ! diagnostics and outputs 
     
    121122      IF( ln_zdfosm  )  CALL dyn_osm    ( kstp,      Nnn      , uu, vv, Nrhs )  ! OSMOSIS non-local velocity fluxes 
    122123                        CALL dyn_zdf    ( kstp, Nbb, Nnn, Nrhs, uu, vv, Naa  )  ! vertical diffusion 
    123                         CALL dyn_atf    ( kstp, Nbb, Nnn, Naa , uu, vv, e3t, e3u, e3v )  ! time filtering of "now" fields 
    124       IF(.NOT.ln_linssh)CALL ssh_atf    ( kstp, Nbb, Nnn, Naa , ssh )                    ! time filtering of "now" sea surface height 
     124                        CALL dyn_atf_qco( kstp, Nbb, Nnn, Naa , uu, vv )        ! time filtering of "now" fields 
     125      IF(.NOT.ln_linssh)CALL ssh_atf    ( kstp, Nbb, Nnn, Naa , ssh )           ! time filtering of "now" sea surface height 
    125126      IF( kstp == nit000 .AND. ln_linssh) THEN 
    126127         ssh(:,:,Naa) = ssh(:,:,Nnn)  ! init ssh after in ln_linssh case 
     
    133134      Naa = Nrhs 
    134135      ! 
     136#if ! defined key_linssh 
    135137      IF(.NOT.ln_linssh)CALL dom_vvl_sf_update( kstp, Nbb, Nnn, Naa )                    ! update of vertical scale factors 
    136  
     138#endif 
    137139      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    138140      ! Control and restarts 
  • NEMO/branches/2021/ticket2680_C1D_PAPA/src/OCE/LBC/mppini.F90

    r14848 r14915  
    536536      END DO 
    537537      ! 
    538       CALL init_excl_landpt      ! exclude exchanges which contain only land points 
     538      IF( jpnij > 1) CALL init_excl_landpt      ! exclude exchanges which contain only land points 
    539539      ! 
    540540      ! Save processor layout changes in ascii file 
Note: See TracChangeset for help on using the changeset viewer.