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.
nemogcm.F90 in NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/SAO – NEMO

source: NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/SAO/nemogcm.F90 @ 11872

Last change on this file since 11872 was 11872, checked in by acc, 4 years ago

Branch 2019/fix_sn_cfctl_ticket2328. See #2328. Replacement of ln_ctl and activation of full functionality with
sn_cfctl structure. These changes rename structure components l_mppout and l_mpptop as l_prtctl and l_prttrc
and introduce l_glochk to activate former ln_ctl code in stpctl.F90 to perform global location of min and max
checks. Also added is l_allon which can be used to activate all output (much like the former ln_ctl). If l_allon
is .false. then l_config decides whether or not the suboptions are used.

   sn_cfctl%l_glochk = .FALSE.    ! Range sanity checks are local (F) or global (T). Set T for debugging only
   sn_cfctl%l_allon  = .FALSE.    ! IF T activate all options. If F deactivate all unless l_config is T
   sn_cfctl%l_config = .TRUE.     ! IF .true. then control which reports are written with the remaining options

Note, these changes pass SETTE tests but all references to ln_ctl need to be removed from the sette scripts.

  • Property svn:keywords set to Id
File size: 22.8 KB
Line 
1MODULE nemogcm
2   !!======================================================================
3   !!                       ***  MODULE nemogcm   ***
4   !! Ocean system   : NEMO GCM (ocean dynamics, on-line tracers, biochemistry and sea-ice)
5   !!======================================================================
6   !! History :  3.6  ! 2015-12  (A. Ryan) Original code   (from OCE/)
7   !!            4.0  ! 2016-11  (G. Madec, S. Flavoni)  domain configuration / user defined interface
8   !!----------------------------------------------------------------------
9
10   !!----------------------------------------------------------------------
11   !!   nemo_gcm      : solve ocean dynamics, tracer, biogeochemistry and/or sea-ice
12   !!   nemo_init     : initialization of the NEMO system
13   !!   nemo_ctl      : initialisation of the contol print
14   !!   nemo_closefile: close remaining open files
15   !!   nemo_alloc    : dynamical allocation
16   !!----------------------------------------------------------------------
17   USE step_oce       ! module used in the ocean time stepping module (step.F90)
18   USE domain         ! domain initialization   (dom_init & dom_cfg routines)
19   USE istate         ! initial state setting          (istate_init routine)
20   USE phycst         ! physical constant                  (par_cst routine)
21   USE step           ! NEMO time-stepping                 (stp     routine)
22   USE cpl_oasis3     ! OASIS3 coupling
23   USE diaobs         ! Observation diagnostics       (dia_obs_init routine)
24#if defined key_nemocice_decomp
25   USE ice_domain_size, only: nx_global, ny_global
26#endif
27   !           ! Stand Alone Observation operator modules
28   USE sao_data
29   USE sao_intp
30   !
31   USE lib_mpp        ! distributed memory computing
32   USE mppini         ! shared/distributed memory setting (mpp_init routine)
33   USE lbcnfd  , ONLY : isendto, nsndto, nfsloop, nfeloop ! Setup of north fold exchanges
34   USE lib_fortran    ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined)
35#if defined key_iomput
36   USE xios           ! xIOserver
37#endif
38
39   IMPLICIT NONE
40   PRIVATE
41
42   PUBLIC   nemo_gcm    ! called by model.F90
43   PUBLIC   nemo_init   ! needed by AGRIF
44   PUBLIC   nemo_alloc  ! needed by TAM
45
46   CHARACTER(lc) ::   cform_aaa="( /, 'AAAAAAAA', / ) "     ! flag for output listing
47
48   !!----------------------------------------------------------------------
49   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
50   !! $Id$
51   !! Software governed by the CeCILL license (see ./LICENSE)
52   !!----------------------------------------------------------------------
53CONTAINS
54
55   SUBROUTINE nemo_gcm
56         !!----------------------------------------------------------------------
57         !!                    ***  SUBROUTINE offline_obs_oper ***
58         !!
59         !! ** Purpose : To use NEMO components to interpolate model fields
60         !!              to observation space.
61         !!
62         !! ** Method : 1. Initialise NEMO
63         !!             2. Initialise offline obs_oper
64         !!             3. Cycle through match ups
65         !!             4. Write results to file
66         !!----------------------------------------------------------------------
67         !
68         CALL nemo_init       ! Initialise NEMO
69         !
70         CALL sao_data_init   ! Initialise Stand Alone Observation operator data
71         !
72         CALL dia_obs_init    ! Initialise obs_operator
73         !
74         CALL sao_interp      ! Interpolate to observation space
75         !
76         CALL dia_obs_wri     ! Pipe to output files
77         !
78         CALL dia_obs_dealloc ! Reset the obs_oper between
79         !
80         IF(lk_mpp)   CALL mppstop  ! Safely stop MPI (end mpp communications)
81         !
82   END SUBROUTINE nemo_gcm
83
84
85   SUBROUTINE nemo_init
86      !!----------------------------------------------------------------------
87      !!                     ***  ROUTINE nemo_init  ***
88      !!
89      !! ** Purpose :   initialization of the NEMO GCM
90      !!----------------------------------------------------------------------
91      INTEGER ::   ios, ilocal_comm   ! local integer
92      !
93      NAMELIST/namctl/ sn_cfctl,  nn_print, nn_ictls, nn_ictle,             &
94         &             nn_isplt , nn_jsplt, nn_jctls, nn_jctle,             &
95         &             ln_timing, ln_diacfl
96      NAMELIST/namcfg/ ln_read_cfg, cn_domcfg, ln_closea, ln_write_cfg, cn_domcfg_out, ln_use_jattr
97      !!----------------------------------------------------------------------
98      !
99      cxios_context = 'nemo'
100      !
101      !                             !-------------------------------------------------!
102      !                             !     set communicator & select the local rank    !
103      !                             !  must be done as soon as possible to get narea  !
104      !                             !-------------------------------------------------!
105      !
106#if defined key_iomput
107      IF( Agrif_Root() ) THEN
108         IF( lk_oasis ) THEN
109            CALL cpl_init( "oceanx", ilocal_comm )                               ! nemo local communicator given by oasis
110            CALL xios_initialize( "not used"       , local_comm =ilocal_comm )   ! send nemo communicator to xios
111         ELSE
112            CALL xios_initialize( "for_xios_mpi_id", return_comm=ilocal_comm )   ! nemo local communicator given by xios
113         ENDIF
114      ENDIF
115      CALL mpp_start( ilocal_comm )
116#else
117      IF( lk_oasis ) THEN
118         IF( Agrif_Root() ) THEN
119            CALL cpl_init( "oceanx", ilocal_comm )          ! nemo local communicator given by oasis
120         ENDIF
121         CALL mpp_start( ilocal_comm )
122      ELSE
123         CALL mpp_start( )
124      ENDIF
125#endif
126      !
127      narea = mpprank + 1               ! mpprank: the rank of proc (0 --> mppsize -1 )
128      lwm = (narea == 1)                ! control of output namelists
129      !
130      !                             !---------------------------------------------------------------!
131      !                             ! Open output files, reference and configuration namelist files !
132      !                             !---------------------------------------------------------------!
133      !
134      ! open ocean.output as soon as possible to get all output prints (including errors messages)
135      IF( lwm )   CALL ctl_opn(     numout,        'ocean.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. )
136      ! open reference and configuration namelist files
137                  CALL ctl_opn( numnam_ref,        'namelist_ref',     'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. )
138                  CALL ctl_opn( numnam_cfg,        'namelist_cfg',     'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. )
139      IF( lwm )   CALL ctl_opn(     numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. )
140      ! open /dev/null file to be able to supress output write easily
141                  CALL ctl_opn(     numnul,           '/dev/null', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. )
142      !
143      !                             !--------------------!
144      !                             ! Open listing units !  -> need sn_cfctl from namctl to define lwp
145      !                             !--------------------!
146      !
147      REWIND( numnam_ref )              ! Namelist namctl in reference namelist
148      READ  ( numnam_ref, namctl, IOSTAT = ios, ERR = 901 )
149901   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namctl in reference namelist' )
150      REWIND( numnam_cfg )              ! Namelist namctl in confguration namelist
151      READ  ( numnam_cfg, namctl, IOSTAT = ios, ERR = 902 )
152902   IF( ios >  0 )   CALL ctl_nam ( ios , 'namctl in configuration namelist' )
153      !
154      ! finalize the definition of namctl variables
155      IF( sn_cfctl%l_allon ) THEN
156         ! Turn on all options.
157         CALL nemo_set_cfctl( sn_cfctl, .TRUE., .TRUE. )
158         ! Ensure all processors are active
159         sn_cfctl%procmin = 0 ; sn_cfctl%procmax = 1000000 ; sn_cfctl%procincr = 1
160      ELSEIF( sn_cfctl%l_config ) THEN
161         ! Activate finer control of report outputs
162         ! optionally switch off output from selected areas (note this only
163         ! applies to output which does not involve global communications)
164         IF( ( narea < sn_cfctl%procmin .OR. narea > sn_cfctl%procmax  ) .OR. &
165           & ( MOD( narea - sn_cfctl%procmin, sn_cfctl%procincr ) /= 0 ) )    &
166           &   CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. )
167      ELSE
168         ! turn off all options.
169         CALL nemo_set_cfctl( sn_cfctl, .FALSE., .TRUE. )
170      ENDIF
171      !
172      lwp = (narea == 1) .OR. sn_cfctl%l_oceout    ! control of all listing output print
173      !
174      IF(lwp) THEN                      ! open listing units
175         !
176         IF( .NOT. lwm )   &            ! alreay opened for narea == 1
177            &            CALL ctl_opn( numout, 'ocean.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE., narea )
178         !
179         WRITE(numout,*)
180         WRITE(numout,*) '   CNRS - NERC - Met OFFICE - MERCATOR-ocean - CMCC'
181         WRITE(numout,*) '                       NEMO team'
182         WRITE(numout,*) '            Stand Alone Observation operator'
183         WRITE(numout,*) '                NEMO version 4.0  (2019) '
184         WRITE(numout,*)
185         WRITE(numout,*) "           ._      ._      ._      ._      ._    "
186         WRITE(numout,*) "       _.-._)`\_.-._)`\_.-._)`\_.-._)`\_.-._)`\_ "
187         WRITE(numout,*)
188         WRITE(numout,*) "           o         _,           _,             "
189         WRITE(numout,*) "            o      .' (        .-' /             "
190         WRITE(numout,*) "           o     _/..._'.    .'   /              "
191         WRITE(numout,*) "      (    o .-'`      ` '-./  _.'               "
192         WRITE(numout,*) "       )    ( o)           ;= <_         (       "
193         WRITE(numout,*) "      (      '-.,\\__ __.-;`\   '.        )      "
194         WRITE(numout,*) "       )  )       \) |`\ \)  '.   \      (   (   "
195         WRITE(numout,*) "      (  (           \_/       '-._\      )   )  "
196         WRITE(numout,*) "       )  ) jgs                     `    (   (   "
197         WRITE(numout,*) "     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "
198         WRITE(numout,*)
199         !
200         WRITE(numout,cform_aaa)                                        ! Flag AAAAAAA
201         !
202      ENDIF
203      !
204      IF(lwm) WRITE( numond, namctl )
205      !
206      !                             !------------------------------------!
207      !                             !  Set global domain size parameters !
208      !                             !------------------------------------!
209      !
210      REWIND( numnam_ref )              ! Namelist namcfg in reference namelist
211      READ  ( numnam_ref, namcfg, IOSTAT = ios, ERR = 903 )
212903   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namcfg in reference namelist' )
213      REWIND( numnam_cfg )              ! Namelist namcfg in confguration namelist
214      READ  ( numnam_cfg, namcfg, IOSTAT = ios, ERR = 904 )
215904   IF( ios >  0 )   CALL ctl_nam ( ios , 'namcfg in configuration namelist' )   
216      !
217      IF( ln_read_cfg ) THEN            ! Read sizes in domain configuration file
218         CALL domain_cfg ( cn_cfg, nn_cfg, jpiglo, jpjglo, jpkglo, jperio )
219      ELSE                              ! user-defined namelist
220         CALL usr_def_nam( cn_cfg, nn_cfg, jpiglo, jpjglo, jpkglo, jperio )
221      ENDIF
222      !
223      IF(lwm)   WRITE( numond, namcfg )
224      !
225      !                             !-----------------------------------------!
226      !                             ! mpp parameters and domain decomposition !
227      !                             !-----------------------------------------!
228      CALL mpp_init
229
230      ! Now we know the dimensions of the grid and numout has been set: we can allocate arrays
231      CALL nemo_alloc()
232
233      !                             !-------------------------------!
234      !                             !  NEMO general initialization  !
235      !                             !-------------------------------!
236
237      CALL nemo_ctl                          ! Control prints
238      !
239      !                                         ! General initialization
240      IF( ln_timing    )   CALL timing_init     ! timing
241      IF( ln_timing    )   CALL timing_start( 'nemo_init')
242      !
243                           CALL phy_cst            ! Physical constants
244                           CALL eos_init           ! Equation of state
245                           CALL dom_init('SAO')    ! Domain
246
247
248      IF( sn_cfctl%l_prtctl )   &
249         &                 CALL prt_ctl_init       ! Print control
250
251                           CALL istate_init        ! ocean initial state (Dynamics and tracers)
252   END SUBROUTINE nemo_init
253
254
255   SUBROUTINE nemo_ctl
256      !!----------------------------------------------------------------------
257      !!                     ***  ROUTINE nemo_ctl  ***
258      !!
259      !! ** Purpose :   control print setting
260      !!
261      !! ** Method  : - print namctl and namcfg information and check some consistencies
262      !!----------------------------------------------------------------------
263      !
264      IF(lwp) THEN                  ! control print
265         WRITE(numout,*)
266         WRITE(numout,*) 'nemo_ctl: Control prints'
267         WRITE(numout,*) '~~~~~~~~'
268         WRITE(numout,*) '   Namelist namctl'
269         WRITE(numout,*) '                              sn_cfctl%l_glochk  = ', sn_cfctl%l_glochk
270         WRITE(numout,*) '                              sn_cfctl%l_allon   = ', sn_cfctl%l_allon
271         WRITE(numout,*) '       finer control over o/p sn_cfctl%l_config  = ', sn_cfctl%l_config
272         WRITE(numout,*) '                              sn_cfctl%l_runstat = ', sn_cfctl%l_runstat
273         WRITE(numout,*) '                              sn_cfctl%l_trcstat = ', sn_cfctl%l_trcstat
274         WRITE(numout,*) '                              sn_cfctl%l_oceout  = ', sn_cfctl%l_oceout
275         WRITE(numout,*) '                              sn_cfctl%l_layout  = ', sn_cfctl%l_layout
276         WRITE(numout,*) '                              sn_cfctl%l_prtctl  = ', sn_cfctl%l_prtctl
277         WRITE(numout,*) '                              sn_cfctl%l_prttrc  = ', sn_cfctl%l_prttrc
278         WRITE(numout,*) '                              sn_cfctl%l_oasout  = ', sn_cfctl%l_oasout
279         WRITE(numout,*) '                              sn_cfctl%procmin   = ', sn_cfctl%procmin 
280         WRITE(numout,*) '                              sn_cfctl%procmax   = ', sn_cfctl%procmax 
281         WRITE(numout,*) '                              sn_cfctl%procincr  = ', sn_cfctl%procincr 
282         WRITE(numout,*) '                              sn_cfctl%ptimincr  = ', sn_cfctl%ptimincr 
283         WRITE(numout,*) '      level of print                  nn_print   = ', nn_print
284         WRITE(numout,*) '      Start i indice for SUM control  nn_ictls   = ', nn_ictls
285         WRITE(numout,*) '      End i indice for SUM control    nn_ictle   = ', nn_ictle
286         WRITE(numout,*) '      Start j indice for SUM control  nn_jctls   = ', nn_jctls
287         WRITE(numout,*) '      End j indice for SUM control    nn_jctle   = ', nn_jctle
288         WRITE(numout,*) '      number of proc. following i     nn_isplt   = ', nn_isplt
289         WRITE(numout,*) '      number of proc. following j     nn_jsplt   = ', nn_jsplt
290         WRITE(numout,*) '      timing by routine               ln_timing  = ', ln_timing
291         WRITE(numout,*) '      CFL diagnostics                 ln_diacfl  = ', ln_diacfl
292      ENDIF
293      !
294      nprint    = nn_print          ! convert DOCTOR namelist names into OLD names
295      nictls    = nn_ictls
296      nictle    = nn_ictle
297      njctls    = nn_jctls
298      njctle    = nn_jctle
299      isplt     = nn_isplt
300      jsplt     = nn_jsplt
301
302      IF(lwp) THEN                  ! control print
303         WRITE(numout,*)
304         WRITE(numout,*) '   Namelist namcfg'
305         WRITE(numout,*) '      read domain configuration file                ln_read_cfg      = ', ln_read_cfg
306         WRITE(numout,*) '         filename to be read                           cn_domcfg     = ', TRIM(cn_domcfg)
307         WRITE(numout,*) '         keep closed seas in the domain (if exist)     ln_closea     = ', ln_closea
308         WRITE(numout,*) '      create a configuration definition file        ln_write_cfg     = ', ln_write_cfg
309         WRITE(numout,*) '         filename to be written                        cn_domcfg_out = ', TRIM(cn_domcfg_out)
310         WRITE(numout,*) '      use file attribute if exists as i/p j-start   ln_use_jattr     = ', ln_use_jattr
311      ENDIF
312      IF( .NOT.ln_read_cfg )   ln_closea = .false.   ! dealing possible only with a domcfg file
313      !
314      !                             ! Parameter control
315      !
316      IF( sn_cfctl%l_prtctl .OR. sn_cfctl%l_prttrc ) THEN              ! sub-domain area indices for the control prints
317         IF( lk_mpp .AND. jpnij > 1 ) THEN
318            isplt = jpni   ;   jsplt = jpnj   ;   ijsplt = jpni*jpnj   ! the domain is forced to the real split domain
319         ELSE
320            IF( isplt == 1 .AND. jsplt == 1  ) THEN
321               CALL ctl_warn( ' - isplt & jsplt are equal to 1',   &
322                  &           ' - the print control will be done over the whole domain' )
323            ENDIF
324            ijsplt = isplt * jsplt            ! total number of processors ijsplt
325         ENDIF
326         IF(lwp) WRITE(numout,*)'          - The total number of processors over which the'
327         IF(lwp) WRITE(numout,*)'            print control will be done is ijsplt : ', ijsplt
328         !
329         !                              ! indices used for the SUM control
330         IF( nictls+nictle+njctls+njctle == 0 )   THEN    ! print control done over the default area
331            lsp_area = .FALSE.
332         ELSE                                             ! print control done over a specific  area
333            lsp_area = .TRUE.
334            IF( nictls < 1 .OR. nictls > jpiglo )   THEN
335               CALL ctl_warn( '          - nictls must be 1<=nictls>=jpiglo, it is forced to 1' )
336               nictls = 1
337            ENDIF
338            IF( nictle < 1 .OR. nictle > jpiglo )   THEN
339               CALL ctl_warn( '          - nictle must be 1<=nictle>=jpiglo, it is forced to jpiglo' )
340               nictle = jpiglo
341            ENDIF
342            IF( njctls < 1 .OR. njctls > jpjglo )   THEN
343               CALL ctl_warn( '          - njctls must be 1<=njctls>=jpjglo, it is forced to 1' )
344               njctls = 1
345            ENDIF
346            IF( njctle < 1 .OR. njctle > jpjglo )   THEN
347               CALL ctl_warn( '          - njctle must be 1<=njctle>=jpjglo, it is forced to jpjglo' )
348               njctle = jpjglo
349            ENDIF
350         ENDIF
351      ENDIF
352      !
353      IF( 1._wp /= SIGN(1._wp,-0._wp)  )   CALL ctl_stop( 'nemo_ctl: The intrinsec SIGN function follows f2003 standard.',  &
354         &                                                'Compile with key_nosignedzero enabled:',   &
355         &                                                '--> add -Dkey_nosignedzero to the definition of %CPP in your arch file' )
356      !
357   END SUBROUTINE nemo_ctl
358
359
360   SUBROUTINE nemo_closefile
361      !!----------------------------------------------------------------------
362      !!                     ***  ROUTINE nemo_closefile  ***
363      !!
364      !! ** Purpose :   Close the files
365      !!----------------------------------------------------------------------
366      !
367      IF( lk_mpp )   CALL mppsync
368      !
369      CALL iom_close                                 ! close all input/output files managed by iom_*
370      !
371      IF( numstp          /= -1 )   CLOSE( numstp          )   ! time-step file
372      IF( numrun          /= -1 )   CLOSE( numrun          )   ! run statistics file
373      IF( numnam_ref      /= -1 )   CLOSE( numnam_ref      )   ! oce reference namelist
374      IF( numnam_cfg      /= -1 )   CLOSE( numnam_cfg      )   ! oce configuration namelist
375      IF( lwm.AND.numond  /= -1 )   CLOSE( numond          )   ! oce output namelist
376      IF( numnam_ice_ref  /= -1 )   CLOSE( numnam_ice_ref  )   ! ice reference namelist
377      IF( numnam_ice_cfg  /= -1 )   CLOSE( numnam_ice_cfg  )   ! ice configuration namelist
378      IF( lwm.AND.numoni  /= -1 )   CLOSE( numoni          )   ! ice output namelist
379      IF( numevo_ice      /= -1 )   CLOSE( numevo_ice      )   ! ice variables (temp. evolution)
380      IF( numout          /=  6 )   CLOSE( numout          )   ! standard model output file
381      IF( numdct_vol      /= -1 )   CLOSE( numdct_vol      )   ! volume transports
382      IF( numdct_heat     /= -1 )   CLOSE( numdct_heat     )   ! heat transports
383      IF( numdct_salt     /= -1 )   CLOSE( numdct_salt     )   ! salt transports
384      !
385      numout = 6                                     ! redefine numout in case it is used after this point...
386      !
387   END SUBROUTINE nemo_closefile
388
389
390   SUBROUTINE nemo_alloc
391      !!----------------------------------------------------------------------
392      !!                     ***  ROUTINE nemo_alloc  ***
393      !!
394      !! ** Purpose :   Allocate all the dynamic arrays of the OPA modules
395      !!
396      !! ** Method  :
397      !!----------------------------------------------------------------------
398      USE diawri    , ONLY: dia_wri_alloc
399      USE dom_oce   , ONLY: dom_oce_alloc
400      !
401      INTEGER :: ierr
402      !!----------------------------------------------------------------------
403      !
404      ierr =        oce_alloc       ()          ! ocean
405      ierr = ierr + dia_wri_alloc   ()
406      ierr = ierr + dom_oce_alloc   ()          ! ocean domain
407      !
408      CALL mpp_sum( 'nemogcm', ierr )
409      IF( ierr /= 0 )   CALL ctl_stop( 'STOP', 'nemo_alloc : unable to allocate standard ocean arrays' )
410      !
411   END SUBROUTINE nemo_alloc
412
413   SUBROUTINE nemo_set_cfctl(sn_cfctl, setto, for_all )
414      !!----------------------------------------------------------------------
415      !!                     ***  ROUTINE nemo_set_cfctl  ***
416      !!
417      !! ** Purpose :   Set elements of the output control structure to setto.
418      !!                for_all should be .false. unless all areas are to be
419      !!                treated identically.
420      !!
421      !! ** Method  :   Note this routine can be used to switch on/off some
422      !!                types of output for selected areas but any output types
423      !!                that involve global communications (e.g. mpp_max, glob_sum)
424      !!                should be protected from selective switching by the
425      !!                for_all argument
426      !!----------------------------------------------------------------------
427      LOGICAL :: setto, for_all
428      TYPE(sn_ctl) :: sn_cfctl
429      !!----------------------------------------------------------------------
430      IF( for_all ) THEN
431         sn_cfctl%l_runstat = setto
432         sn_cfctl%l_trcstat = setto
433      ENDIF
434      sn_cfctl%l_oceout  = setto
435      sn_cfctl%l_layout  = setto
436      sn_cfctl%l_prtctl  = setto
437      sn_cfctl%l_prttrc  = setto
438      sn_cfctl%l_oasout  = setto
439   END SUBROUTINE nemo_set_cfctl
440
441   !!======================================================================
442END MODULE nemogcm
443
Note: See TracBrowser for help on using the repository browser.