Changes between Initial Version and Version 1 of Ticket #667
- Timestamp:
- 06/23/15 22:42:41 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #667
- Property Resolution → Fixed
- Property Status new → closed
- Property Summary modify def_his for wetdry_mask_psi → modify def_his.F/wrt_his.F for writing wetdry_mask_psi
-
Ticket #667 – Description
initial v1 1 need to modify def_his to allow wetdry_psi_mask to be read during a restart 2 and written out. this is discussed on 3 https://www.myroms.org/forum/viewtopic.php?f=19&t=3812 4 but here are some detail for modifications to def_his.F 1 Need to modify '''def_his.F''' to allow '''wetdry_psi_mask''' to be read during a restart and written out to the history NetCDF file. This is discussed on the 2 [https://www.myroms.org/forum/viewtopic.php?f=19&t=3812 forum] but here are some details for modifications to '''def_his.F''': 5 3 6 1) In my solution, firstly add the declaration statement to line 55 in def_his.F: 7 Code: 4 * In my solution, firstly add the declaration statement to line 55 in '''def_his.F''': 5 6 {{{ 8 7 integer :: p2dgrd(3) 8 }}} 9 9 10 Then insert the following codes to line 301:11 10 12 Code:11 * Then insert the following codes to line 301: 13 12 13 {{{ 14 14 ! 15 15 ! Define dimension vectors for staggered type variables at PSI-points. … … 19 19 p2dgrd(3)=DimIDs(12) 20 20 21 Then, insert the following codes to line 458 ( inside #ifdef WET_DRY ~ #endif statement): 21 }}} 22 22 23 Code:23 * Then, insert the following codes to line 458 ( inside #ifdef '''WET_DRY''' ... #endif statement): 24 24 25 {{{ 25 26 ! 26 27 ! Define wet/dry mask on PSI-points. … … 36 37 Aval(5)=REAL(Iinfo(1,idPwet,ng),r8) 37 38 status=def_var(ng, iNLM, HIS(ng)%ncid, HIS(ng)%Vid(idPwet), & 38 & NF_FOUT, nvd3, p2dgrd, Aval, Vinfo, ncname, &39 & NF_FOUT, nvd3, p2dgrd, Aval, Vinfo, ncname, & 39 40 & SetFillVal = .FALSE.) 40 41 IF (exit_flag.ne.NoError) RETURN 41 42 43 }}} 42 44 45 * Similarly, insert the following codes to line 154 ( inside #ifdef '''WET_DRY''' ... #endif statement) in '''wrt_his.F''': 43 46 44 Similarly, insert the following codes to line 154 ( inside #ifdef WET_DRY ~ #endif statement) in wrt_his.F: 45 46 Code: 47 47 {{{ 48 48 ! 49 49 ! Write out wet/dry mask at PSI-points. … … 67 67 RETURN 68 68 END IF 69 }}} 69 70 71 * Also need to add in '''def_his.F''' around line 2383: 70 72 71 also need to add in def_his.F 73 {{{ 74 ELSE IF (TRIM(var_name(i)).eq.TRIM(Vname(1,idPwet))) THEN 75 got_var(idPwet)=.TRUE. 76 HIS(ng)%Vid(idPwet)=var_id(i) 77 }}} 72 78 73 2) near lines 3572 74 [#if defined WET_DRY] (this ifdef is already there) 79 * and near line 2786 75 80 76 ELSE IF (TRIM(var_name(i)).eq.TRIM(Vname(1,idPwet))) THEN 77 got_var(idPwet)=.TRUE. 78 HIS(ng)%Vid(idPwet)=var_id(i) 79 80 81 3) near line 4184 82 [#if defined WET_DRY] (this ifdef is already there) 83 84 IF (.not.got_var(idPwet)) THEN 85 IF (Master) WRITE (stdout,60) TRIM(Vname(1,idPwet)), & 86 & TRIM(ncname) 87 exit_flag=3 88 RETURN 89 END IF 90 81 {{{ 82 IF (.not.got_var(idPwet)) THEN 83 IF (Master) WRITE (stdout,60) TRIM(Vname(1,idPwet)), & 84 & TRIM(ncname) 85 exit_flag=3 86 RETURN 87 END IF 88 }}}