@@ -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
0 commit comments