MODULE nemogcm !!====================================================================== !! *** MODULE nemogcm *** !! StandAlone Surface module : surface fluxes + sea-ice + iceberg floats !!====================================================================== !! History : 3.6 ! 2011-11 (S. Alderson, G. Madec) original code !! - ! 2013-06 (I. Epicoco, S. Mocavero, CMCC) nemo_northcomms: setup avoiding MPI communication !! - ! 2014-12 (G. Madec) remove KPP scheme and cross-land advection (cla) !! 4.0 ! 2016-10 (G. Madec, S. Flavoni) domain configuration / user defined interface !!---------------------------------------------------------------------- !!---------------------------------------------------------------------- !! nemo_gcm : solve ocean dynamics, tracer, biogeochemistry and/or sea-ice !! nemo_init : initialization of the NEMO system !! nemo_ctl : initialisation of the contol print !! nemo_closefile: close remaining open files !! nemo_alloc : dynamical allocation !!---------------------------------------------------------------------- USE step_oce ! module used in the ocean time stepping module USE sbc_oce ! surface boundary condition: ocean USE phycst ! physical constant (par_cst routine) USE domain ! domain initialization (dom_init & dom_cfg routines) USE closea ! treatment of closed seas (for ln_closea) USE usrdef_nam ! user defined configuration USE daymod ! calendar USE restart ! open restart file USE step ! NEMO time-stepping (stp routine) USE cpl_oasis3 ! USE sbcssm ! USE icbini ! handle bergs, initialisation USE icbstp ! handle bergs, calving, themodynamics and transport USE bdyini ! open boundary cond. setting (bdy_init routine). mandatory for sea-ice USE bdydta ! open boundary cond. setting (bdy_dta_init routine). mandatory for sea-ice ! USE lib_mpp ! distributed memory computing USE mppini ! shared/distributed memory setting (mpp_init routine) USE lbcnfd , ONLY : isendto, nsndto, nfsloop, nfeloop ! Setup of north fold exchanges USE lib_fortran ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) #if defined key_iomput USE xios ! xIOserver #endif #if defined key_agrif && defined key_si3 USE agrif_ice_update ! ice update #endif IMPLICIT NONE PRIVATE PUBLIC nemo_gcm ! called by model.F90 PUBLIC nemo_init ! needed by AGRIF CHARACTER(lc) :: cform_aaa="( /, 'AAAAAAAA', / ) " ! flag for output listing !!---------------------------------------------------------------------- !! NEMO/SAS 4.0 , NEMO Consortium (2018) !! $Id$ !! Software governed by the CeCILL license (see ./LICENSE) !!---------------------------------------------------------------------- CONTAINS SUBROUTINE nemo_gcm !!---------------------------------------------------------------------- !! *** ROUTINE nemo_gcm *** !! !! ** Purpose : NEMO solves the primitive equations on an orthogonal !! curvilinear mesh on the sphere. !! !! ** Method : - model general initialization !! - launch the time-stepping (stp routine) !! - finalize the run by closing files and communications !! !! References : Madec, Delecluse, Imbard, and Levy, 1997: internal report, IPSL. !! Madec, 2008, internal report, IPSL. !!---------------------------------------------------------------------- INTEGER :: istp ! time step index !!---------------------------------------------------------------------- ! #if defined key_agrif CALL Agrif_Init_Grids() ! AGRIF: set the meshes #endif ! !-----------------------! CALL nemo_init !== Initialisations ==! ! !-----------------------! #if defined key_agrif CALL Agrif_Declare_Var_dom ! AGRIF: set the meshes for DOM CALL Agrif_Declare_Var ! " " " " " DYN/TRA # if defined key_top CALL Agrif_Declare_Var_top ! " " " " " TOP # endif # if defined key_si3 CALL Agrif_Declare_Var_ice ! " " " " " Sea ice # endif #endif ! check that all process are still there... If some process have an error, ! they will never enter in step and other processes will wait until the end of the cpu time! CALL mpp_max( 'nemogcm', nstop ) IF(lwp) WRITE(numout,cform_aaa) ! Flag AAAAAAA ! !-----------------------! ! !== time stepping ==! ! !-----------------------! istp = nit000 ! #if defined key_agrif ! !== AGRIF time-stepping ==! CALL Agrif_Regrid() ! #if defined key_si3 ! Recursive update from highest nested level to lowest: CALL Agrif_step_child_adj(Agrif_update_ice) #endif ! DO WHILE( istp <= nitend .AND. nstop == 0 ) CALL stp istp = istp + 1 END DO ! IF( .NOT. Agrif_Root() ) THEN CALL Agrif_ParentGrid_To_ChildGrid() IF( ln_timing ) CALL timing_finalize CALL Agrif_ChildGrid_To_ParentGrid() ENDIF ! #else ! IF( .NOT.ln_diurnal_only ) THEN !== Standard time-stepping ==! ! DO WHILE( istp <= nitend .AND. nstop == 0 ) CALL stp ( istp ) istp = istp + 1 END DO ! ELSE !== diurnal SST time-steeping only ==! ! DO WHILE( istp <= nitend .AND. nstop == 0 ) CALL stp_diurnal( istp ) ! time step only the diurnal SST istp = istp + 1 END DO ! ENDIF ! #endif ! IF( ln_icebergs ) CALL icb_end( nitend ) ! !------------------------! ! !== finalize the run ==! ! !------------------------! IF(lwp) WRITE(numout,cform_aaa) ! Flag AAAAAAA ! IF( nstop /= 0 .AND. lwp ) THEN ! error print WRITE(numout,cform_err) WRITE(numout,*) ' ==>>> nemo_gcm: a total of ', nstop, ' errors have been found' WRITE(numout,*) ENDIF ! IF( ln_timing ) CALL timing_finalize ! CALL nemo_closefile ! #if defined key_iomput CALL xios_finalize ! end mpp communications with xios IF( lk_oasis ) CALL cpl_finalize ! end coupling and mpp communications with OASIS #else IF ( lk_oasis ) THEN ; CALL cpl_finalize ! end coupling and mpp communications with OASIS ELSEIF( lk_mpp ) THEN ; CALL mppstop( ldfinal = .TRUE. ) ! end mpp communications ENDIF #endif ! IF(lwm) THEN IF( nstop == 0 ) THEN ; STOP 0 ELSE ; STOP 999 ENDIF ENDIF ! END SUBROUTINE nemo_gcm SUBROUTINE nemo_init !!---------------------------------------------------------------------- !! *** ROUTINE nemo_init *** !! !! ** Purpose : initialization of the NEMO GCM !!---------------------------------------------------------------------- INTEGER :: ji ! dummy loop indices INTEGER :: ios, ilocal_comm ! local integers CHARACTER(len=120), DIMENSION(30) :: cltxt, cltxt2, clnam CHARACTER(len=80) :: clname !! NAMELIST/namctl/ ln_ctl , sn_cfctl, nn_print, nn_ictls, nn_ictle, & & nn_isplt , nn_jsplt, nn_jctls, nn_jctle, & & ln_timing, ln_diacfl NAMELIST/namcfg/ ln_read_cfg, cn_domcfg, ln_closea, ln_write_cfg, cn_domcfg_out, ln_use_jattr !!---------------------------------------------------------------------- ! cltxt = '' cltxt2 = '' clnam = '' cxios_context = 'nemo' ! ! ! Open reference namelist and configuration namelist files IF( lk_oasis ) THEN CALL ctl_opn( numnam_ref, 'namelist_sas_ref', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) CALL ctl_opn( numnam_cfg, 'namelist_sas_cfg', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) cxios_context = 'sas' clname = 'output.namelist_sas.dyn' ELSE CALL ctl_opn( numnam_ref, 'namelist_ref', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) CALL ctl_opn( numnam_cfg, 'namelist_cfg', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) cxios_context = 'nemo' clname = 'output.namelist.dyn' ENDIF ! REWIND( numnam_ref ) ! Namelist namctl in reference namelist READ ( numnam_ref, namctl, IOSTAT = ios, ERR = 901 ) 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in reference namelist', .TRUE. ) REWIND( numnam_cfg ) ! Namelist namctl in confguration namelist READ ( numnam_cfg, namctl, IOSTAT = ios, ERR = 902 ) 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namctl in configuration namelist', .TRUE. ) ! REWIND( numnam_ref ) ! Namelist namcfg in reference namelist READ ( numnam_ref, namcfg, IOSTAT = ios, ERR = 903 ) 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in reference namelist', .TRUE. ) REWIND( numnam_cfg ) ! Namelist namcfg in confguration namelist READ ( numnam_cfg, namcfg, IOSTAT = ios, ERR = 904 ) 904 IF( ios > 0 ) CALL ctl_nam ( ios , 'namcfg in configuration namelist', .TRUE. ) ! !--------------------------! ! ! Set global domain size ! (control print return in cltxt2) ! !--------------------------! IF( ln_read_cfg ) THEN ! Read sizes in domain configuration file CALL domain_cfg ( cltxt2, cn_cfg, nn_cfg, jpiglo, jpjglo, jpkglo, jperio ) ! ELSE ! user-defined namelist CALL usr_def_nam( cltxt2, clnam, cn_cfg, nn_cfg, jpiglo, jpjglo, jpkglo, jperio ) ENDIF ! ! ! !--------------------------------------------! ! ! set communicator & select the local node ! ! ! NB: mynode also opens output.namelist.dyn ! ! ! on unit number numond on first proc ! ! !--------------------------------------------! #if defined key_iomput IF( Agrif_Root() ) THEN IF( lk_oasis ) THEN CALL cpl_init( "sas", ilocal_comm ) ! nemo local communicator given by oasis CALL xios_initialize( "not used",local_comm=ilocal_comm ) ! send nemo communicator to xios ELSE CALL xios_initialize( "for_xios_mpi_id",return_comm=ilocal_comm ) ! nemo local communicator given by xios ENDIF ENDIF narea = mynode ( cltxt, clname, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) ! Nodes selection #else IF( lk_oasis ) THEN IF( Agrif_Root() ) THEN CALL cpl_init( "sas", ilocal_comm ) ! nemo local communicator given by oasis ENDIF narea = mynode( cltxt, clname, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) ! Nodes selection (control print return in cltxt) ELSE ilocal_comm = 0 narea = mynode( cltxt, clname, numnam_ref, numnam_cfg, numond , nstop ) ! Nodes selection (control print return in cltxt) ENDIF #endif narea = narea + 1 ! mynode return the rank of proc (0 --> jpnij -1 ) IF( sn_cfctl%l_config ) THEN ! Activate finer control of report outputs ! optionally switch off output from selected areas (note this only ! applies to output which does not involve global communications) IF( ( narea < sn_cfctl%procmin .OR. narea > sn_cfctl%procmax ) .OR. & & ( MOD( narea - sn_cfctl%procmin, sn_cfctl%procincr ) /= 0 ) ) & & CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) ELSE ! Use ln_ctl to turn on or off all options. CALL nemo_set_cfctl( sn_cfctl, ln_ctl, .TRUE. ) ENDIF lwm = (narea == 1) ! control of output namelists lwp = (narea == 1) .OR. ln_ctl ! control of all listing output print IF(lwm) THEN ! write merged namelists from earlier to output namelist ! ! now that the file has been opened in call to mynode. ! ! NB: nammpp has already been written in mynode (if lk_mpp_mpi) WRITE( numond, namctl ) WRITE( numond, namcfg ) IF( .NOT.ln_read_cfg ) THEN DO ji = 1, SIZE(clnam) IF( TRIM(clnam(ji)) /= '' ) WRITE(numond, * ) clnam(ji) ! namusr_def print END DO ENDIF ENDIF IF(lwp) THEN ! open listing units ! IF( lk_oasis ) THEN ; CALL ctl_opn( numout, 'sas.output', 'REPLACE','FORMATTED','SEQUENTIAL', -1, 6, .FALSE., narea ) ELSE ; CALL ctl_opn( numout, 'ocean.output', 'REPLACE','FORMATTED','SEQUENTIAL', -1, 6, .FALSE., narea ) ENDIF ! WRITE(numout,*) WRITE(numout,*) ' CNRS - NERC - Met OFFICE - MERCATOR-ocean - INGV - CMCC' WRITE(numout,*) ' NEMO team' WRITE(numout,*) ' Ocean General Circulation Model' WRITE(numout,*) ' NEMO version 4.0 (2019) ' WRITE(numout,*) ' StandAlone Surface version (SAS) ' WRITE(numout,*) " ._ ._ ._ ._ ._ " WRITE(numout,*) " _.-._)`\_.-._)`\_.-._)`\_.-._)`\_.-._)`\_ " WRITE(numout,*) WRITE(numout,*) " o _, _, " WRITE(numout,*) " o .' ( .-' / " WRITE(numout,*) " o _/..._'. .' / " WRITE(numout,*) " ( o .-'` ` '-./ _.' " WRITE(numout,*) " ) ( o) ;= <_ ( " WRITE(numout,*) " ( '-.,\\__ __.-;`\ '. ) " WRITE(numout,*) " ) ) \) |`\ \) '. \ ( ( " WRITE(numout,*) " ( ( \_/ '-._\ ) ) " WRITE(numout,*) " ) ) jgs ` ( ( " WRITE(numout,*) " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ " WRITE(numout,*) DO ji = 1, SIZE(cltxt) IF( TRIM(cltxt (ji)) /= '' ) WRITE(numout,*) TRIM(cltxt(ji)) ! control print of mynode END DO WRITE(numout,*) WRITE(numout,*) DO ji = 1, SIZE(cltxt2) IF( TRIM(cltxt2(ji)) /= '' ) WRITE(numout,*) TRIM(cltxt2(ji)) ! control print of domain size END DO ! WRITE(numout,cform_aaa) ! Flag AAAAAAA ! ENDIF ! open /dev/null file to be able to supress output write easily CALL ctl_opn( numnul, '/dev/null', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) ! ! ! Domain decomposition CALL mpp_init ! MPP ! Now we know the dimensions of the grid and numout has been set: we can allocate arrays CALL nemo_alloc() ! !-------------------------------! ! ! NEMO general initialization ! ! !-------------------------------! CALL nemo_ctl ! Control prints ! ! ! General initialization IF( ln_timing ) CALL timing_init ! timing IF( ln_timing ) CALL timing_start( 'nemo_init') CALL phy_cst ! Physical constants CALL eos_init ! Equation of seawater CALL dom_init('SAS') ! Domain IF( ln_ctl ) CALL prt_ctl_init ! Print control CALL day_init ! model calendar (using both namelist and restart infos) IF( ln_rstart ) CALL rst_read_open ! ! external forcing CALL sbc_init ! Forcings : surface module ! ==> clem: open boundaries init. is mandatory for sea-ice because ice BDY is not decoupled from ! the environment of ocean BDY. Therefore bdy is called in both OPA and SAS modules. ! This is not clean and should be changed in the future. CALL bdy_init ! ==> CALL icb_init( rdt, nit000) ! initialise icebergs instance ! IF(lwp) WRITE(numout,cform_aaa) ! Flag AAAAAAA ! IF( ln_timing ) CALL timing_stop( 'nemo_init') ! END SUBROUTINE nemo_init SUBROUTINE nemo_ctl !!---------------------------------------------------------------------- !! *** ROUTINE nemo_ctl *** !! !! ** Purpose : control print setting !! !! ** Method : - print namctl information and check some consistencies !!---------------------------------------------------------------------- ! IF(lwp) THEN ! control print WRITE(numout,*) WRITE(numout,*) 'nemo_ctl: Control prints' WRITE(numout,*) '~~~~~~~~' WRITE(numout,*) ' Namelist namctl' WRITE(numout,*) ' run control (for debugging) ln_ctl = ', ln_ctl WRITE(numout,*) ' finer control over o/p sn_cfctl%l_config = ', sn_cfctl%l_config WRITE(numout,*) ' sn_cfctl%l_runstat = ', sn_cfctl%l_runstat WRITE(numout,*) ' sn_cfctl%l_trcstat = ', sn_cfctl%l_trcstat WRITE(numout,*) ' sn_cfctl%l_oceout = ', sn_cfctl%l_oceout WRITE(numout,*) ' sn_cfctl%l_layout = ', sn_cfctl%l_layout WRITE(numout,*) ' sn_cfctl%l_mppout = ', sn_cfctl%l_mppout WRITE(numout,*) ' sn_cfctl%l_mpptop = ', sn_cfctl%l_mpptop WRITE(numout,*) ' sn_cfctl%procmin = ', sn_cfctl%procmin WRITE(numout,*) ' sn_cfctl%procmax = ', sn_cfctl%procmax WRITE(numout,*) ' sn_cfctl%procincr = ', sn_cfctl%procincr WRITE(numout,*) ' sn_cfctl%ptimincr = ', sn_cfctl%ptimincr WRITE(numout,*) ' level of print nn_print = ', nn_print WRITE(numout,*) ' Start i indice for SUM control nn_ictls = ', nn_ictls WRITE(numout,*) ' End i indice for SUM control nn_ictle = ', nn_ictle WRITE(numout,*) ' Start j indice for SUM control nn_jctls = ', nn_jctls WRITE(numout,*) ' End j indice for SUM control nn_jctle = ', nn_jctle WRITE(numout,*) ' number of proc. following i nn_isplt = ', nn_isplt WRITE(numout,*) ' number of proc. following j nn_jsplt = ', nn_jsplt WRITE(numout,*) ' timing by routine ln_timing = ', ln_timing WRITE(numout,*) ' CFL diagnostics ln_diacfl = ', ln_diacfl ENDIF ! nprint = nn_print ! convert DOCTOR namelist names into OLD names nictls = nn_ictls nictle = nn_ictle njctls = nn_jctls njctle = nn_jctle isplt = nn_isplt jsplt = nn_jsplt IF(lwp) THEN ! control print WRITE(numout,*) WRITE(numout,*) ' Namelist namcfg' WRITE(numout,*) ' read domain configuration file ln_read_cfg = ', ln_read_cfg WRITE(numout,*) ' filename to be read cn_domcfg = ', TRIM(cn_domcfg) WRITE(numout,*) ' keep closed seas in the domain (if exist) ln_closea = ', ln_closea WRITE(numout,*) ' create a configuration definition file ln_write_cfg = ', ln_write_cfg WRITE(numout,*) ' filename to be written cn_domcfg_out = ', TRIM(cn_domcfg_out) WRITE(numout,*) ' use file attribute if exists as i/p j-start ln_use_jattr = ', ln_use_jattr ENDIF IF( .NOT.ln_read_cfg ) ln_closea = .false. ! dealing possible only with a domcfg file ! ! ! Parameter control ! IF( ln_ctl ) THEN ! sub-domain area indices for the control prints IF( lk_mpp .AND. jpnij > 1 ) THEN isplt = jpni ; jsplt = jpnj ; ijsplt = jpni*jpnj ! the domain is forced to the real split domain ELSE IF( isplt == 1 .AND. jsplt == 1 ) THEN CALL ctl_warn( ' - isplt & jsplt are equal to 1', & & ' - the print control will be done over the whole domain' ) ENDIF ijsplt = isplt * jsplt ! total number of processors ijsplt ENDIF IF(lwp) WRITE(numout,*)' - The total number of processors over which the' IF(lwp) WRITE(numout,*)' print control will be done is ijsplt : ', ijsplt ! ! ! indices used for the SUM control IF( nictls+nictle+njctls+njctle == 0 ) THEN ! print control done over the default area lsp_area = .FALSE. ELSE ! print control done over a specific area lsp_area = .TRUE. IF( nictls < 1 .OR. nictls > jpiglo ) THEN CALL ctl_warn( ' - nictls must be 1<=nictls>=jpiglo, it is forced to 1' ) nictls = 1 ENDIF IF( nictle < 1 .OR. nictle > jpiglo ) THEN CALL ctl_warn( ' - nictle must be 1<=nictle>=jpiglo, it is forced to jpiglo' ) nictle = jpiglo ENDIF IF( njctls < 1 .OR. njctls > jpjglo ) THEN CALL ctl_warn( ' - njctls must be 1<=njctls>=jpjglo, it is forced to 1' ) njctls = 1 ENDIF IF( njctle < 1 .OR. njctle > jpjglo ) THEN CALL ctl_warn( ' - njctle must be 1<=njctle>=jpjglo, it is forced to jpjglo' ) njctle = jpjglo ENDIF ENDIF ENDIF ! IF( 1._wp /= SIGN(1._wp,-0._wp) ) CALL ctl_stop( 'nemo_ctl: The intrinsec SIGN function follows f2003 standard.', & & 'Compile with key_nosignedzero enabled:', & & '--> add -Dkey_nosignedzero to the definition of %CPP in your arch file' ) ! #if defined key_agrif IF( ln_timing ) CALL ctl_stop( 'AGRIF not implemented with ln_timing = true') #endif ! END SUBROUTINE nemo_ctl SUBROUTINE nemo_closefile !!---------------------------------------------------------------------- !! *** ROUTINE nemo_closefile *** !! !! ** Purpose : Close the files !!---------------------------------------------------------------------- ! IF( lk_mpp ) CALL mppsync ! CALL iom_close ! close all input/output files managed by iom_* ! IF( numstp /= -1 ) CLOSE( numstp ) ! time-step file IF( numrun /= -1 ) CLOSE( numrun ) ! run statistics file IF( numnam_ref /= -1 ) CLOSE( numnam_ref ) ! oce reference namelist IF( numnam_cfg /= -1 ) CLOSE( numnam_cfg ) ! oce configuration namelist IF( lwm.AND.numond /= -1 ) CLOSE( numond ) ! oce output namelist IF( numnam_ice_ref /= -1 ) CLOSE( numnam_ice_ref ) ! ice reference namelist IF( numnam_ice_cfg /= -1 ) CLOSE( numnam_ice_cfg ) ! ice configuration namelist IF( lwm.AND.numoni /= -1 ) CLOSE( numoni ) ! ice output namelist IF( numevo_ice /= -1 ) CLOSE( numevo_ice ) ! ice variables (temp. evolution) IF( numout /= 6 ) CLOSE( numout ) ! standard model output file ! numout = 6 ! redefine numout in case it is used after this point... ! END SUBROUTINE nemo_closefile SUBROUTINE nemo_alloc !!---------------------------------------------------------------------- !! *** ROUTINE nemo_alloc *** !! !! ** Purpose : Allocate all the dynamic arrays of the OPA modules !! !! ** Method : !!---------------------------------------------------------------------- USE diawri , ONLY : dia_wri_alloc USE dom_oce , ONLY : dom_oce_alloc USE bdy_oce , ONLY : ln_bdy, bdy_oce_alloc USE oce ! mandatory for sea-ice because needed for bdy arrays ! INTEGER :: ierr !!---------------------------------------------------------------------- ! ierr = dia_wri_alloc() ierr = ierr + dom_oce_alloc() ! ocean domain ierr = ierr + oce_alloc () ! (tsn...) needed for agrif and/or SI3 and bdy ierr = ierr + bdy_oce_alloc() ! bdy masks (incl. initialization) ! CALL mpp_sum( 'nemogcm', ierr ) IF( ierr /= 0 ) CALL ctl_stop( 'STOP', 'nemo_alloc: unable to allocate standard ocean arrays' ) ! END SUBROUTINE nemo_alloc SUBROUTINE nemo_set_cfctl(sn_cfctl, setto, for_all ) !!---------------------------------------------------------------------- !! *** ROUTINE nemo_set_cfctl *** !! !! ** Purpose : Set elements of the output control structure to setto. !! for_all should be .false. unless all areas are to be !! treated identically. !! !! ** Method : Note this routine can be used to switch on/off some !! types of output for selected areas but any output types !! that involve global communications (e.g. mpp_max, glob_sum) !! should be protected from selective switching by the !! for_all argument !!---------------------------------------------------------------------- LOGICAL :: setto, for_all TYPE(sn_ctl) :: sn_cfctl !!---------------------------------------------------------------------- IF( for_all ) THEN sn_cfctl%l_runstat = setto sn_cfctl%l_trcstat = setto ENDIF sn_cfctl%l_oceout = setto sn_cfctl%l_layout = setto sn_cfctl%l_mppout = setto sn_cfctl%l_mpptop = setto END SUBROUTINE nemo_set_cfctl !!====================================================================== END MODULE nemogcm