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 516 for trunk/NEMO/OPA_SRC/opa.F90 – NEMO

Ignore:
Timestamp:
2006-10-05T17:53:31+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_072 : CT : - lights modifications to ensure good control prints for the restartability & reproductibility tests

  • build all ocean.output_XXXX files only if logical namelist ln_ctl is TRUE, in all case keep the initial ocean.output file (require a new namelist namctl)
  • conditionning some prints using nprint parameter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/opa.F90

    r508 r516  
    166166      CHARACTER (len=20) ::   namelistname 
    167167      CHARACTER (len=28) ::   file_out 
     168      NAMELIST/namctl/  ln_ctl, nprint, nictls, nictle,   & 
     169         &              isplt , jsplt , njctls, njctle, nbench 
    168170      !!---------------------------------------------------------------------- 
    169171 
     
    178180            &         'SEQUENTIAL', 1, numout, .FALSE., 1 ) 
    179181      ENDIF 
    180  
    181       namelistname = 'namelist' 
    182       CALL ctlopn( numnam, namelistname, 'OLD', 'FORMATTED', 'SEQUENTIAL',   & 
    183          &           1, numout, .FALSE., 1 ) 
    184182 
    185183      WRITE(numout,*) 
     
    191189      WRITE(numout,*) 
    192190 
     191      namelistname = 'namelist' 
     192      CALL ctlopn( numnam, namelistname, 'OLD', 'FORMATTED', 'SEQUENTIAL',   & 
     193         &           1, numout, .FALSE., 1 ) 
     194 
     195      ! Namelist namctl : Control prints & Benchmark 
     196      REWIND( numnam ) 
     197      READ  ( numnam, namctl ) 
     198 
    193199      ! Nodes selection 
    194200      narea = mynode() 
     
    196202      lwp   = narea == 1 
    197203 
    198       IF( lk_mpp )   THEN 
    199          CLOSE( numout )       ! standard model output file 
    200          WRITE(file_out,FMT="('ocean.output_',I4.4)") narea-1 
    201          IF ( numout /= 0 .AND. numout /= 6 ) THEN  
    202             CALL ctlopn( numout, file_out, 'UNKNOWN', 'FORMATTED',   & 
    203                  &         'SEQUENTIAL', 1, numout, .FALSE., 1 ) 
     204      ! open additionnal listing 
     205      IF( ln_ctl )   THEN 
     206         IF( narea-1 > 0 )   THEN 
     207            WRITE(file_out,FMT="('ocean.output_',I4.4)") narea-1 
     208            IF( numout /= 0 .AND. numout /= 6 ) THEN  
     209               CALL ctlopn( numout, file_out, 'UNKNOWN', 'FORMATTED',   & 
     210                  &         'SEQUENTIAL', 1, numout, .FALSE., 1 ) 
     211            ENDIF 
     212            lwp = .TRUE. 
     213            ! 
     214            WRITE(numout,*) 
     215            WRITE(numout,*) '                 L O D Y C - I P S L' 
     216            WRITE(numout,*) '                     O P A model' 
     217            WRITE(numout,*) '            Ocean General Circulation Model' 
     218            WRITE(numout,*) '               version OPA 9.0  (2005) ' 
     219            WRITE(numout,*) '                   MPI Ocean output ' 
     220            WRITE(numout,*) 
     221            WRITE(numout,*) 
    204222         ENDIF 
    205          ! 
    206          WRITE(numout,*) 
    207          WRITE(numout,*) '                 L O D Y C - I P S L' 
    208          WRITE(numout,*) '                     O P A model' 
    209          WRITE(numout,*) '            Ocean General Circulation Model' 
    210          WRITE(numout,*) '               version OPA 9.0  (2005) ' 
    211          WRITE(numout,*) '                   MPI Ocean output ' 
    212          WRITE(numout,*) 
    213          WRITE(numout,*) 
    214223      ENDIF 
    215224 
     
    220229      IF(lwp) WRITE(numout,cform_aaa)       ! Flag AAAAAAA 
    221230 
     231      IF(lwp) THEN 
     232         WRITE(numout,*) 
     233         WRITE(numout,*) 'opa_init: Control prints & Benchmark' 
     234         WRITE(numout,*) '~~~~~~~~ ' 
     235         WRITE(numout,*) '          Namelist namctl' 
     236         WRITE(numout,*) '             run control (for debugging)     ln_ctl    = ', ln_ctl 
     237         WRITE(numout,*) '             level of print                  nprint    = ', nprint 
     238         WRITE(numout,*) '             Start i indice for SUM control  nictls    = ', nictls 
     239         WRITE(numout,*) '             End i indice for SUM control    nictle    = ', nictle 
     240         WRITE(numout,*) '             Start j indice for SUM control  njctls    = ', njctls 
     241         WRITE(numout,*) '             End j indice for SUM control    njctle    = ', njctle 
     242         WRITE(numout,*) '             number of proc. following i     isplt     = ', isplt 
     243         WRITE(numout,*) '             number of proc. following j     jsplt     = ', jsplt 
     244         WRITE(numout,*) '             benchmark parameter (0/1)       nbench    = ', nbench 
     245      ENDIF 
    222246                                            ! Domain decomposition 
    223247      IF( jpni*jpnj == jpnij ) THEN 
Note: See TracChangeset for help on using the changeset viewer.