@@ -21,7 +21,8 @@ module drydepml
21
21
private
22
22
23
23
public :: drydep, gravitational_settling, preprocess_landfraction, unload, &
24
- requires_extra_fields_to_be_read, drydep_precompute
24
+ requires_extra_fields_to_be_read, drydep_precompute, &
25
+ requires_landfraction_file
25
26
26
27
integer , parameter , public :: DRYDEP_SCHEME_UNDEFINED = 0
27
28
integer , parameter , public :: DRYDEP_SCHEME_OLD = 1
@@ -67,6 +68,14 @@ subroutine drydep(tstep, part)
67
68
drydep_scheme == DRYDEP_SCHEME_EMERSON) call drydep_nonconstant_vd(tstep, vd_dep, part)
68
69
end subroutine
69
70
71
+ pure logical function requires_landfraction_file()
72
+ requires_landfraction_file = ( &
73
+ (drydep_scheme == DRYDEP_SCHEME_ZHANG).or. &
74
+ (drydep_scheme == DRYDEP_SCHEME_EMERSON).or. &
75
+ (drydep_scheme == DRYDEP_SCHEME_EMEP) &
76
+ )
77
+ end function
78
+
70
79
pure logical function requires_extra_fields_to_be_read()
71
80
requires_extra_fields_to_be_read = ( &
72
81
(drydep_scheme == DRYDEP_SCHEME_ZHANG).or. &
@@ -117,21 +126,6 @@ subroutine preprocess_landfraction(values)
117
126
use iso_fortran_env, only: real32, error_unit
118
127
real (real32), intent (in ) :: values(:,:)
119
128
120
- write (error_unit,* ) " We do not currently check the landclasses programatically"
121
- write (error_unit,* ) " The classes must be:"
122
- write (error_unit,* ) " 11: Sea"
123
- write (error_unit,* ) " 12: Inland water"
124
- write (error_unit,* ) " 13: Tundra/desert"
125
- write (error_unit,* ) " 14: Ice and ice sheets"
126
- write (error_unit,* ) " 15: Urban"
127
- write (error_unit,* ) " 16: Crops"
128
- write (error_unit,* ) " 17: Grass"
129
- write (error_unit,* ) " 18: Wetlands"
130
- write (error_unit,* ) " 19: Evergreen needleleaf"
131
- write (error_unit,* ) " 20: Deciduous broadleaf"
132
- write (error_unit,* ) " 21: Mixed forest"
133
- write (error_unit,* ) " 22: Shrubs and interrupted woodlands"
134
-
135
129
if (allocated (classnr)) then
136
130
error stop " preprocess_landfraction is to be called once only"
137
131
endif
0 commit comments