- Timestamp:
- 2018-04-23T10:44:07+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM/dtatsd.F90
r9168 r9490 9 9 !! NEMO 1.0 ! 2002-06 (G. Madec) F90: Free form and module 10 10 !! 3.3 ! 2010-10 (C. Bricaud, S. Masson) use of fldread 11 !! 3.4 ! 2010-11 (G. Madec, C. Ethe) Merge of dtatem and dtasal + suppression ofCPP keys11 !! 3.4 ! 2010-11 (G. Madec, C. Ethe) Merge of dtatem and dtasal + remove CPP keys 12 12 !!---------------------------------------------------------------------- 13 13 … … 29 29 PUBLIC dta_tsd ! called by istate.F90 and tradmp.90 30 30 31 LOGICAL , PUBLIC :: ln_tsd_init !: T & S data flag 32 LOGICAL , PUBLIC :: ln_tsd_tradmp !: internal damping toward input data flag 31 ! !!* namtsd namelist : Temperature & Salinity Data * 32 LOGICAL , PUBLIC :: ln_tsd_init !: T & S data flag 33 LOGICAL , PUBLIC :: ln_tsd_dmp !: internal damping toward input data flag 33 34 34 35 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_tsd ! structure of input SST (file informations, fields read) … … 58 59 TYPE(FLD_N) :: sn_tem, sn_sal 59 60 !! 60 NAMELIST/namtsd/ ln_tsd_init, ln_tsd_ tradmp, cn_dir, sn_tem, sn_sal61 NAMELIST/namtsd/ ln_tsd_init, ln_tsd_dmp, cn_dir, sn_tem, sn_sal 61 62 !!---------------------------------------------------------------------- 62 63 ! … … 72 73 IF(lwm) WRITE ( numond, namtsd ) 73 74 74 IF( PRESENT( ld_tradmp ) ) ln_tsd_ tradmp = .TRUE. ! forces the initialization when tradmp is used75 IF( PRESENT( ld_tradmp ) ) ln_tsd_dmp = .TRUE. ! forces the initialization when tradmp is used 75 76 76 77 IF(lwp) THEN ! control print … … 79 80 WRITE(numout,*) '~~~~~~~~~~~~ ' 80 81 WRITE(numout,*) ' Namelist namtsd' 81 WRITE(numout,*) ' Initialisation of ocean T & S with T &S input data ln_tsd_init 82 WRITE(numout,*) ' damping of ocean T & S toward T &S input data ln_tsd_ tradmp = ', ln_tsd_tradmp82 WRITE(numout,*) ' Initialisation of ocean T & S with T &S input data ln_tsd_init = ', ln_tsd_init 83 WRITE(numout,*) ' damping of ocean T & S toward T &S input data ln_tsd_dmp = ', ln_tsd_dmp 83 84 WRITE(numout,*) 84 IF( .NOT.ln_tsd_init .AND. .NOT.ln_tsd_ tradmp ) THEN85 IF( .NOT.ln_tsd_init .AND. .NOT.ln_tsd_dmp ) THEN 85 86 WRITE(numout,*) 86 WRITE(numout,*) ' T & S data not used'87 WRITE(numout,*) ' ===>> T & S data not used' 87 88 ENDIF 88 89 ENDIF … … 95 96 ! 96 97 ! ! allocate the arrays (if necessary) 97 IF( ln_tsd_init .OR. ln_tsd_tradmp) THEN98 IF( ln_tsd_init .OR. ln_tsd_dmp ) THEN 98 99 ! 99 100 ALLOCATE( sf_tsd(jpts), STAT=ierr0 ) … … 129 130 !! - 'key_orca_lev10' interpolates on 10 times more levels 130 131 !! - s- or mixed z-s coordinate: vertical interpolation on model mesh 131 !! - ln_tsd_ tradmp=F: deallocates the T-S data structure132 !! - ln_tsd_dmp=F: deallocates the T-S data structure 132 133 !! as T-S data are no are used 133 134 !! … … 149 150 ! 150 151 ! !== ORCA_R2 configuration and T & S damping ==! 151 IF( cn_cfg == "orca" .AND. nn_cfg == 2 .AND. ln_tsd_ tradmp ) THEN ! some hand made alterations152 IF( cn_cfg == "orca" .AND. nn_cfg == 2 .AND. ln_tsd_dmp ) THEN ! some hand made alterations 152 153 ! 153 154 ij0 = 101 ; ij1 = 109 ! Reduced T & S in the Alboran Sea … … 238 239 ENDIF 239 240 ! 240 IF( .NOT.ln_tsd_ tradmp ) THEN !== deallocate T & S structure ==!241 IF( .NOT.ln_tsd_dmp ) THEN !== deallocate T & S structure ==! 241 242 ! (data used only for initialisation) 242 243 IF(lwp) WRITE(numout,*) 'dta_tsd: deallocte T & S arrays as they are only use to initialize the run'
Note: See TracChangeset
for help on using the changeset viewer.