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 9366 for branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/ASM/asminc.F90 – NEMO

Ignore:
Timestamp:
2018-02-28T16:29:13+01:00 (6 years ago)
Author:
andmirek
Message:

#2050 first version. Compiled OK in moci test suite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/ASM/asminc.F90

    r6498 r9366  
    5050   PUBLIC   ssh_asm_inc    !: Apply the SSH increment 
    5151   PUBLIC   seaice_asm_inc !: Apply the seaice increment 
     52   PRIVATE  asm_namelist 
    5253 
    5354#if defined key_asminc 
     
    142143      ln_temnofreeze = .FALSE. 
    143144 
    144       REWIND( numnam_ref )              ! Namelist nam_asminc in reference namelist : Assimilation increment 
    145       READ  ( numnam_ref, nam_asminc, IOSTAT = ios, ERR = 901) 
    146 901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_asminc in reference namelist', lwp ) 
    147  
    148       REWIND( numnam_cfg )              ! Namelist nam_asminc in configuration namelist : Assimilation increment 
    149       READ  ( numnam_cfg, nam_asminc, IOSTAT = ios, ERR = 902 ) 
    150 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_asminc in configuration namelist', lwp ) 
     145      IF(lwm) THEN 
     146         REWIND( numnam_ref )              ! Namelist nam_asminc in reference namelist : Assimilation increment 
     147         READ  ( numnam_ref, nam_asminc, IOSTAT = ios, ERR = 901) 
     148901      IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_asminc in reference namelist', lwm ) 
     149         REWIND( numnam_cfg )              ! Namelist nam_asminc in configuration namelist : Assimilation increment 
     150         READ  ( numnam_cfg, nam_asminc, IOSTAT = ios, ERR = 902 ) 
     151902      IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_asminc in configuration namelist', lwm ) 
     152      ENDIF 
     153 
    151154      IF(lwm) WRITE ( numond, nam_asminc ) 
     155 
     156      CALL asm_namelist() 
    152157 
    153158      ! Control print 
     
    11461151 
    11471152   END SUBROUTINE seaice_asm_inc 
    1148     
     1153 
     1154   SUBROUTINE asm_namelist() 
     1155     !!--------------------------------------------------------------------- 
     1156     !!                   ***  ROUTINE asm_namelist  *** 
     1157     !!                      
     1158     !! ** Purpose :   Broadcast namelist variables read by procesor lwm 
     1159     !! 
     1160     !! ** Method  :   use lib_mpp 
     1161     !!---------------------------------------------------------------------- 
     1162#if defined key_mpp_mpi 
     1163      CALL mpp_bcast(ln_bkgwri) 
     1164      CALL mpp_bcast(ln_trainc) 
     1165      CALL mpp_bcast(ln_dyninc) 
     1166      CALL mpp_bcast(ln_sshinc) 
     1167      CALL mpp_bcast(ln_asmdin) 
     1168      CALL mpp_bcast(ln_asmiau) 
     1169      CALL mpp_bcast(nitbkg) 
     1170      CALL mpp_bcast(nitdin) 
     1171      CALL mpp_bcast(nitiaustr) 
     1172      CALL mpp_bcast(nitiaufin) 
     1173      CALL mpp_bcast(niaufn) 
     1174      CALL mpp_bcast(ln_salfix) 
     1175      CALL mpp_bcast(salfixmin) 
     1176      CALL mpp_bcast(nn_divdmp) 
     1177#endif 
     1178   END SUBROUTINE asm_namelist    
    11491179   !!====================================================================== 
    11501180END MODULE asminc 
Note: See TracChangeset for help on using the changeset viewer.