- Timestamp:
- 2017-12-13T18:08:50+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/SBC/tideini.F90
r7646 r9023 8 8 USE oce ! ocean dynamics and tracers variables 9 9 USE dom_oce ! ocean space and time domain 10 USE phycst ! physical constant 11 USE daymod ! cal andar10 USE phycst ! physical constants 11 USE daymod ! calendar 12 12 USE tide_mod ! 13 13 ! … … 27 27 LOGICAL , PUBLIC :: ln_tide !: 28 28 LOGICAL , PUBLIC :: ln_tide_pot !: 29 LOGICAL , PUBLIC :: ln_read_load !: 30 LOGICAL , PUBLIC :: ln_scal_load !: 29 31 LOGICAL , PUBLIC :: ln_tide_ramp !: 30 32 INTEGER , PUBLIC :: nb_harmo !: 31 33 INTEGER , PUBLIC :: kt_tide !: 32 34 REAL(wp), PUBLIC :: rdttideramp !: 33 35 REAL(wp), PUBLIC :: rn_scal_load !: 36 CHARACTER(lc), PUBLIC :: cn_tide_load !: 37 34 38 INTEGER , PUBLIC, ALLOCATABLE, DIMENSION(:) :: ntide !: 35 39 … … 49 53 INTEGER :: ios ! Local integer output status for namelist read 50 54 ! 51 NAMELIST/nam_tide/ln_tide, ln_tide_pot, ln_tide_ramp, rdttideramp, clname 55 NAMELIST/nam_tide/ln_tide, ln_tide_pot, ln_scal_load, ln_read_load, cn_tide_load, & 56 & ln_tide_ramp, rn_scal_load, rdttideramp, clname 52 57 !!---------------------------------------------------------------------- 53 58 ! … … 69 74 WRITE(numout,*) ' Namelist nam_tide' 70 75 WRITE(numout,*) ' Use tidal components : ln_tide = ', ln_tide 71 WRITE(numout,*) ' Apply astronomical potential : ln_tide_pot = ', ln_tide_pot 72 WRITE(numout,*) ' nb_harmo = ', nb_harmo 73 WRITE(numout,*) ' ln_tide_ramp = ', ln_tide_ramp 74 WRITE(numout,*) ' rdttideramp = ', rdttideramp 76 WRITE(numout,*) ' Apply astronomical potential : ln_tide_pot = ', ln_tide_pot 77 WRITE(numout,*) ' Use scalar approx. for load potential : ln_scal_load = ', ln_scal_load 78 WRITE(numout,*) ' Read load potential from file : ln_read_load = ', ln_read_load 79 WRITE(numout,*) ' Apply ramp on tides at startup : ln_tide_ramp = ', ln_tide_ramp 80 WRITE(numout,*) ' Fraction of SSH used in scal. approx. : rn_scal_load = ', rn_scal_load 81 WRITE(numout,*) ' Duration (days) of ramp : rdttideramp = ', rdttideramp 75 82 ENDIF 76 83 ELSE … … 93 100 IF( nb_harmo == 0 ) CALL ctl_stop( 'tide_init : No tidal components set in nam_tide' ) 94 101 ! 102 IF( ln_read_load.AND.(.NOT.ln_tide_pot) ) & 103 & CALL ctl_stop('ln_read_load requires ln_tide_pot') 104 IF( ln_scal_load.AND.(.NOT.ln_tide_pot) ) & 105 & CALL ctl_stop('ln_scal_load requires ln_tide_pot') 106 IF( ln_scal_load.AND.ln_read_load ) & 107 & CALL ctl_stop('Choose between ln_scal_load and ln_read_load') 95 108 IF( ln_tide_ramp.AND.((nitend-nit000+1)*rdt/rday < rdttideramp) ) & 96 109 & CALL ctl_stop('rdttideramp must be lower than run duration') … … 112 125 kt_tide = nit000 113 126 ! 127 IF (.NOT.ln_scal_load ) rn_scal_load = 0._wp 128 ! 114 129 END SUBROUTINE tide_init 115 130
Note: See TracChangeset
for help on using the changeset viewer.