Skip to content

Commit 6e40a5d

Browse files
compile observation convters with quad_utils only for threed_sphere
The converters in the repo all build succesfully without this change, because they all use threed_sphere location_mod. However maybe there are some converters in the wild that do not use threed_sphere.
1 parent f6df535 commit 6e40a5d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build_templates/buildconvfunctions.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ local modelsrc="$DART/models/template/model_mod.f90"
106106
local loc="$DART/assimilation_code/location/$LOCATION \
107107
$DART/assimilation_code/location/utilities/ \
108108
$DART/models/model_mod_tools/test_interpolate_$LOCATION.f90"
109-
local misc="$DART/models/utilities/ \
109+
local misc="$DART/models/utilities/default_model_mod.f90 \
110110
$DART/models/model_mod_tools/model_check_utilities_mod.f90 \
111111
$DART/observations/forward_operators/obs_def_mod.f90 \
112112
$DART//observations/forward_operators/obs_def_utilities_mod.f90 \
@@ -139,7 +139,12 @@ else #nompi
139139
core=${core//$winf08/}
140140
fi
141141

142-
convsrc="${core} ${conv} ${obserrsrc} ${modelsrc} ${misc} ${loc}"
142+
quad=""
143+
if [ "$LOCATION" == "threed_sphere" ]; then
144+
quad="$DART/models/utilities/quad_utils_mod.f90"
145+
fi
146+
147+
convsrc="${core} ${conv} ${obserrsrc} ${modelsrc} ${misc} ${loc} ${quad}"
143148

144149
# remove nuisance files
145150
nuisance=(\

0 commit comments

Comments
 (0)