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

Ignore:
Timestamp:
2006-09-12T12:59:38+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_063:CE:integration of the control print option for debugging

File:
1 edited

Legend:

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

    r482 r496  
    7979      !! * Local declarations 
    8080      INTEGER ::   istp       ! time step index 
     81      CHARACTER (len=20) ::   namelistname 
     82      CHARACTER (len=28) ::   file_out 
    8183      CHARACTER (len=64) ::        & 
    8284         cform_aaa="( /, 'AAAAAAAA', / ) "     ! flag for output listing 
     85 
    8386      !!---------------------------------------------------------------------- 
    84        
    85        
     87 
    8688      ! Initializations 
    8789      ! =============== 
    88        
     90 
     91      file_out = 'ocean.output' 
     92 
    8993      ! open listing and namelist units 
    90       IF ( numout /= 0 .AND. numout /= 6 ) THEN  
    91          OPEN( UNIT=numout, FILE='ocean.output', FORM='FORMATTED' ) 
    92       ENDIF 
    93  
    94       OPEN( UNIT=numnam, FILE='namelist', FORM='FORMATTED', STATUS='OLD' ) 
    95  
    96       IF(lwp) THEN 
     94      IF ( numout /= 0 .AND. numout /= 6 ) THEN 
     95         CALL ctlopn( numout, file_out, 'UNKNOWN', 'FORMATTED',   & 
     96            &         'SEQUENTIAL', 1, numout, .FALSE., 1 ) 
     97      ENDIF 
     98 
     99      namelistname = 'namelist' 
     100      CALL ctlopn( numnam, namelistname, 'OLD', 'FORMATTED', 'SEQUENTIAL',   & 
     101         &           1, numout, .FALSE., 1 ) 
     102 
     103      WRITE(numout,*) 
     104      WRITE(numout,*) '                 L O D Y C - I P S L' 
     105      WRITE(numout,*) '                     O P A model' 
     106      WRITE(numout,*) '            Ocean General Circulation Model' 
     107      WRITE(numout,*) '               version OPA 9.0  (2005) ' 
     108      WRITE(numout,*) 
     109      WRITE(numout,*) 
     110 
     111      ! Nodes selection 
     112      narea = mynode() 
     113      narea = narea + 1    ! mynode return the rank of proc (0 --> jpnij -1 ) 
     114      lwp   = narea == 1 
     115 
     116      IF( lk_mpp )   THEN 
     117         CLOSE( numout )       ! standard model output file 
     118         WRITE(file_out,FMT="('ocean.output_',I4.4)") narea-1 
     119         IF ( numout /= 0 .AND. numout /= 6 ) THEN 
     120            CALL ctlopn( numout, file_out, 'UNKNOWN', 'FORMATTED',   & 
     121                 &         'SEQUENTIAL', 1, numout, .FALSE., 1 ) 
     122         ENDIF 
     123         ! 
    97124         WRITE(numout,*) 
    98125         WRITE(numout,*) '                 L O D Y C - I P S L' 
    99126         WRITE(numout,*) '                     O P A model' 
    100127         WRITE(numout,*) '            Ocean General Circulation Model' 
    101          WRITE(numout,*) '               version OPA 9.0  (2003)' 
     128         WRITE(numout,*) '               version OPA 9.0  (2005) ' 
     129         WRITE(numout,*) '                   MPI Ocean output ' 
    102130         WRITE(numout,*) 
    103       ENDIF 
    104  
    105       ! Nodes selection 
    106       narea = mynode() 
    107       narea = narea + 1    ! mynode return the rank of proc (0 --> jpnij -1 ) 
    108       lwp   = narea == 1 
     131         WRITE(numout,*) 
     132      ENDIF 
     133 
    109134 
    110135      !                                     ! ============================== ! 
     
    135160                       CALL bn2( tn, sn, rn2 )              ! before Brunt-Vaisala frequency 
    136161 
    137       IF( lk_zps    )   CALL zps_hde( nit000, tn, sn, rhd,  &  ! Partial steps: before Horizontal DErivative 
     162      IF( ln_zps    )   CALL zps_hde( nit000, tn, sn, rhd,  &  ! Partial steps: before Horizontal DErivative 
    138163                                          gtu, gsu, gru, &  ! of t, s, rd at the bottom ocean level 
    139164                                          gtv, gsv, grv ) 
     
    152177      CALL tra_qsr_init                         ! Solar radiation penetration 
    153178 
     179#if ! defined key_off_degrad 
    154180      CALL ldf_tra_init                         ! Lateral ocean tracer physics 
     181#endif  
    155182 
    156183      CALL zdf_init                             ! Vertical ocean physics 
Note: See TracChangeset for help on using the changeset viewer.