Skip to content

Commit 378058b

Browse files
authored
standard input for longwave (#67)
1 parent f421b41 commit 378058b

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

src/airsea/airsea.F90

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ subroutine init_airsea_yaml()
281281
call branch%get(I_0, 'swr', 'shortwave radiation', 'W/m^2', &
282282
minimum=0._rk,default=0._rk, method_constant=1, method_file=2, extra_options=(/option(3, 'from time, location and cloud cover', 'calculate')/))
283283
call branch%get(ql_input, 'longwave_radiation', 'net longwave radiation', 'W/m^2', &
284-
default=0._rk, method_file=0, method_constant=method_unsupported, &
284+
default=0._rk, &
285285
extra_options=(/option(CLARK, 'Clark et al. (1974)', 'Clark'), option(HASTENRATH_LAMB, 'Hastenrath and Lamb (1978)', 'Hastenrath_Lamb'), option(BIGNAMI, 'Bignami et al. (1995)', 'Bignami'), option(BERLIAND_BERLIAND, 'Berliand and Berliand (1952)', 'Berliand_Berliand'), option(JOSEY1, 'Josey et al. (2003) - 1', 'Josey1'), option(JOSEY2, 'Josey et al. (2003) - 2', 'Josey2')/), default_method=CLARK)
286286

287287
twig => branch%get_typed_child('albedo')
@@ -475,9 +475,8 @@ subroutine post_init_airsea(lat,lon)
475475
case default
476476
end select
477477
LEVEL3 'net longwave radiation:'
478+
call register_input(ql_input)
478479
select case (ql_input%method)
479-
case(0) ! Read from file instead of calculating
480-
call register_input(ql_input)
481480
case(CLARK)
482481
LEVEL4 'using Clark formulation'
483482
case(HASTENRATH_LAMB)
@@ -773,7 +772,7 @@ subroutine flux_from_meteo(jul,secs)
773772
cloud1 = cloud2
774773

775774
call humidity(hum_method,hum_input,airp_input,tw,ta)
776-
if (ql_input%method .gt. 0) then
775+
if (ql_input%method .gt. 2) then
777776
call longwave_radiation(ql_input%method, &
778777
dlat,tw_k,ta_k,cloud,ql_input)
779778
end if
@@ -825,7 +824,7 @@ subroutine flux_from_meteo(jul,secs)
825824
end if
826825

827826
call humidity(hum_method,hum_input%value,airp_input%value,tw,ta)
828-
if (ql_input%method .gt. 0) then
827+
if (ql_input%method .gt. 2) then
829828
call longwave_radiation(ql_input%method, &
830829
dlat,tw_k,ta_k,cloud_input%value,ql_input%value)
831830
endif

src/airsea/airsea_variables.F90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ module airsea_variables
4646
integer, public, parameter :: COGLEY=2
4747

4848
! Longwave radiation
49-
integer, public, parameter :: CLARK = 1 ! Clark et al, 1974
50-
integer, public, parameter :: HASTENRATH_LAMB = 2 ! Hastenrath and Lamb, 1978
51-
integer, public, parameter :: BIGNAMI = 3 ! Bignami et al., 1995 - Medsea
52-
integer, public, parameter :: BERLIAND_BERLIAND = 4 ! Berliand and Berliand, 1952 - ROMS
53-
integer, public, parameter :: JOSEY1 = 5 ! Josey 2003, (J1,9)
54-
integer, public, parameter :: JOSEY2 = 6 ! Josey 2003, (J2,14)
49+
integer, public, parameter :: CLARK = 3 ! Clark et al, 1974
50+
integer, public, parameter :: HASTENRATH_LAMB = 4 ! Hastenrath and Lamb, 1978
51+
integer, public, parameter :: BIGNAMI = 5 ! Bignami et al., 1995 - Medsea
52+
integer, public, parameter :: BERLIAND_BERLIAND = 6 ! Berliand and Berliand, 1952 - ROMS
53+
integer, public, parameter :: JOSEY1 = 7 ! Josey 2003, (J1,9)
54+
integer, public, parameter :: JOSEY2 = 8 ! Josey 2003, (J2,14)
5555
!
5656
! !REVISION HISTORY:
5757
! Original author(s): Karsten Bolding, Hans Burchard

0 commit comments

Comments
 (0)