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 9190 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90 – NEMO

Ignore:
Timestamp:
2018-01-06T15:18:23+01:00 (6 years ago)
Author:
gm
Message:

dev_merge_2017: OPA_SRC: style only, results unchanged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90

    r9168 r9190  
    361361      !!---------------------------------------------------------------------- 
    362362 
    363 #if !defined key_agrif 
     363#if defined key_agrif 
     364      IF(lwp) THEN 
     365         WRITE(numout,*) 
     366         WRITE(numout,*) 'icb_nam : AGRIF is not compatible with namelist namberg :  ' 
     367         WRITE(numout,*) '~~~~~~~   definition of rn_initial_mass(nclasses) with nclasses as PARAMETER ' 
     368         WRITE(numout,*) 
     369         WRITE(numout,*) '   ==>>>   force  NO icebergs used. The namelist namberg is not read' 
     370      ENDIF 
     371      ln_icebergs = .false.       
     372      RETURN 
     373#else 
     374      IF(lwp) THEN 
     375         WRITE(numout,*) 
     376         WRITE(numout,*) 'icb_nam : iceberg initialization through namberg namelist read' 
     377         WRITE(numout,*) '~~~~~~~~ ' 
     378      ENDIF 
     379#endif    
     380      !                             !==  read namelist  ==! 
    364381      REWIND( numnam_ref )              ! Namelist namberg in reference namelist : Iceberg parameters 
    365382      READ  ( numnam_ref, namberg, IOSTAT = ios, ERR = 901) 
     
    369386902   IF( ios >  0 ) CALL ctl_nam ( ios , 'namberg in configuration namelist', lwp ) 
    370387      IF(lwm) WRITE ( numond, namberg ) 
    371 #else 
    372       IF(lwp) THEN 
    373          WRITE(numout,*) 
    374          WRITE(numout,*) 'icbini : AGRIF is not compatible with namelist namberg :  ' 
    375          WRITE(numout,*) '~~~~~~   definition of rn_initial_mass(nclasses) with nclasses as PARAMETER ' 
    376          WRITE(numout,*) '         ==>>>   force  NO icebergs used. The namelist namberg is not read' 
    377       ENDIF 
    378       ln_icebergs = .false.       
    379 #endif    
    380       IF( .NOT. ln_icebergs ) THEN   ! no icebergs 
    381          IF(lwp) THEN 
    382             WRITE(numout,*) 
    383             WRITE(numout,*) 'icbini : Namelist namberg ln_icebergs = F , NO icebergs used' 
    384             WRITE(numout,*) '~~~~~~ ' 
    385          ENDIF 
     388      ! 
     389      IF(lwp) WRITE(numout,*) 
     390      IF( ln_icebergs ) THEN 
     391         IF(lwp) WRITE(numout,*) '   ==>>>   icebergs are used' 
     392      ELSE 
     393         IF(lwp) WRITE(numout,*) '   ==>>>   No icebergs used' 
    386394         RETURN 
    387395      ENDIF 
    388  
    389  
    390 !     IF( lk_lim3 .AND. ln_icebergs ) THEN 
    391 !        CALL ctl_stop( 'icb_nam: the use of ICB with LIM3 not allowed. ice thickness missing in ICB' ) 
    392 !     ENDIF 
    393  
     396      ! 
     397      IF( nn_test_icebergs > nclasses ) THEN 
     398         IF(lwp) WRITE(numout,*) 
     399         IF(lwp) WRITE(numout,*) '   ==>>>   Resetting of nn_test_icebergs to ', nclasses 
     400         nn_test_icebergs = nclasses 
     401      ENDIF 
     402      ! 
    394403      IF(lwp) THEN                  ! control print 
    395404         WRITE(numout,*) 
     
    399408         WRITE(numout,*) '   Period between sampling of position for trajectory storage   nn_sample_rate = ', nn_sample_rate 
    400409         WRITE(numout,*) '   Mass thresholds between iceberg classes (kg)                 rn_initial_mass     =' 
    401          DO jn=1,nclasses 
    402             WRITE(numout,'(a,f15.2)') '                                                                ',rn_initial_mass(jn) 
     410         DO jn = 1, nclasses 
     411            WRITE(numout,'(a,f15.2)') '                                                                ', rn_initial_mass(jn) 
    403412         ENDDO 
    404413         WRITE(numout,*) '   Fraction of calving to apply to this class (non-dim)         rn_distribution     =' 
    405414         DO jn = 1, nclasses 
    406             WRITE(numout,'(a,f10.4)') '                                                                ',rn_distribution(jn) 
     415            WRITE(numout,'(a,f10.4)') '                                                                ', rn_distribution(jn) 
    407416         END DO 
    408417         WRITE(numout,*) '   Ratio between effective and real iceberg mass (non-dim)      rn_mass_scaling     = ' 
    409418         DO jn = 1, nclasses 
    410             WRITE(numout,'(a,f10.2)') '                                                                ',rn_mass_scaling(jn) 
     419            WRITE(numout,'(a,f10.2)') '                                                                ', rn_mass_scaling(jn) 
    411420         END DO 
    412421         WRITE(numout,*) '   Total thickness of newly calved bergs (m)                    rn_initial_thickness = ' 
    413422         DO jn = 1, nclasses 
    414             WRITE(numout,'(a,f10.2)') '                                                                ',rn_initial_thickness(jn) 
     423            WRITE(numout,'(a,f10.2)') '                                                                ', rn_initial_thickness(jn) 
    415424         END DO 
    416425         WRITE(numout,*) '   Timesteps between verbose messages                           nn_verbose_write    = ', nn_verbose_write 
     
    435444      ENDIF 
    436445      ! 
    437       IF( nn_test_icebergs > nclasses ) THEN 
    438          IF(lwp) WRITE(numout,*) '      ==>>>   Resetting of nn_test_icebergs to ', nclasses 
    439          nn_test_icebergs = nclasses 
    440       ENDIF 
    441  
    442446      ! ensure that the sum of berg input distribution is equal to one 
    443447      zfact = SUM( rn_distribution ) 
Note: See TracChangeset for help on using the changeset viewer.