@@ -167,6 +167,7 @@ end function shf_get_pointer_to_value
167167 ! !
168168 ! ! This routine overrides PbstBaseType%bnd_options
169169 ! <
170+ <<<<<<< HEAD
170171 ! subroutine shf_options(this, option, found)
171172 ! ! -- dummy
172173 ! class(ShfType), intent(inout) :: this
@@ -233,6 +234,56 @@ subroutine shf_cq(this, ifno, tstrm, shflx)
233234 shflx = shf_const * this% wspd(ifno) * (this% tatm(ifno) - tstrm)
234235 end subroutine shf_cq
235236
237+ =======
238+ subroutine shf_options (this , option , found )
239+ ! -- dummy
240+ class(ShfType), intent (inout ) :: this
241+ character (len=* ), intent (inout ) :: option
242+ logical , intent (inout ) :: found
243+ !
244+ found = .true.
245+ select case (option)
246+ case (' DENSITY_AIR' )
247+ this% rhoa = this% parser% GetDouble()
248+ if (this% rhoa <= 0.0 ) then
249+ write (errmsg, ' (a)' ) ' Specified value for the density of &
250+ &the atmosphere must be greater than 0.0.'
251+ call store_error(errmsg)
252+ call this% parser% StoreErrorUnit()
253+ else
254+ write (this% iout, ' (4x,a,1pg15.6)' ) &
255+ " The density of the atmosphere has been set to: " , this% rhoa
256+ end if
257+ case (' HEAT_CAPACITY_AIR' )
258+ this% cpa = this% parser% GetDouble()
259+ if (this% cpa <= 0.0 ) then
260+ write (errmsg, ' (a)' ) ' Specified value for the heat capacity of &
261+ &the atmosphere must be greater than 0.0.'
262+ call store_error(errmsg)
263+ call this% parser% StoreErrorUnit()
264+ else
265+ write (this% iout, ' (4x,a,1pg15.6)' ) &
266+ " The heat capacity of the atmosphere has been set to: " , this% cpa
267+ end if
268+ case (' DRAG_COEFFICIENT' )
269+ this% cd = this% parser% GetDouble()
270+ if (this% cd <= 0.0 ) then
271+ write (errmsg, ' (a)' ) ' Specified value for the drag coefficient &
272+ &must be greater than 0.0.'
273+ call store_error(errmsg)
274+ call this% parser% StoreErrorUnit()
275+ else
276+ write (this% iout, ' (4x,a,1pg15.6)' ) &
277+ " The heat capacity of the atmosphere has been set to: " , this% cpa
278+ end if
279+ case default
280+ write (errmsg, ' (a,a)' ) ' Unknown SHF option: ' , trim (option)
281+ call store_error(errmsg)
282+ call this% parser% StoreErrorUnit()
283+ end select
284+ end subroutine shf_options
285+
286+ >>>>>>> 4baf8469ab (read shf options block; will need to circle back and test TS functionality later)
236287 ! > @brief Deallocate package memory
237288 ! !
238289 ! ! Deallocate TVK package scalars and arrays.
0 commit comments