- Timestamp:
- 2018-01-06T15:18:23+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90
r9168 r9190 361 361 !!---------------------------------------------------------------------- 362 362 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 ==! 364 381 REWIND( numnam_ref ) ! Namelist namberg in reference namelist : Iceberg parameters 365 382 READ ( numnam_ref, namberg, IOSTAT = ios, ERR = 901) … … 369 386 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namberg in configuration namelist', lwp ) 370 387 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' 386 394 RETURN 387 395 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 ! 394 403 IF(lwp) THEN ! control print 395 404 WRITE(numout,*) … … 399 408 WRITE(numout,*) ' Period between sampling of position for trajectory storage nn_sample_rate = ', nn_sample_rate 400 409 WRITE(numout,*) ' Mass thresholds between iceberg classes (kg) rn_initial_mass =' 401 DO jn =1,nclasses402 WRITE(numout,'(a,f15.2)') ' ', rn_initial_mass(jn)410 DO jn = 1, nclasses 411 WRITE(numout,'(a,f15.2)') ' ', rn_initial_mass(jn) 403 412 ENDDO 404 413 WRITE(numout,*) ' Fraction of calving to apply to this class (non-dim) rn_distribution =' 405 414 DO jn = 1, nclasses 406 WRITE(numout,'(a,f10.4)') ' ', rn_distribution(jn)415 WRITE(numout,'(a,f10.4)') ' ', rn_distribution(jn) 407 416 END DO 408 417 WRITE(numout,*) ' Ratio between effective and real iceberg mass (non-dim) rn_mass_scaling = ' 409 418 DO jn = 1, nclasses 410 WRITE(numout,'(a,f10.2)') ' ', rn_mass_scaling(jn)419 WRITE(numout,'(a,f10.2)') ' ', rn_mass_scaling(jn) 411 420 END DO 412 421 WRITE(numout,*) ' Total thickness of newly calved bergs (m) rn_initial_thickness = ' 413 422 DO jn = 1, nclasses 414 WRITE(numout,'(a,f10.2)') ' ', rn_initial_thickness(jn)423 WRITE(numout,'(a,f10.2)') ' ', rn_initial_thickness(jn) 415 424 END DO 416 425 WRITE(numout,*) ' Timesteps between verbose messages nn_verbose_write = ', nn_verbose_write … … 435 444 ENDIF 436 445 ! 437 IF( nn_test_icebergs > nclasses ) THEN438 IF(lwp) WRITE(numout,*) ' ==>>> Resetting of nn_test_icebergs to ', nclasses439 nn_test_icebergs = nclasses440 ENDIF441 442 446 ! ensure that the sum of berg input distribution is equal to one 443 447 zfact = SUM( rn_distribution )
Note: See TracChangeset
for help on using the changeset viewer.