commit 41b112aa75b450587053b19ce3b001004556eb97
parent 57464e7cb92e2c793aabc81e5b5021d6a0121bd4
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 18 Aug 2025 15:30:45 +0200
Fix of syntactic weaknesses in the ground test
These were actually warnings issued by shellcheck.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test_stardis_smeteo_ground_temperature.sh b/src/test_stardis_smeteo_ground_temperature.sh
@@ -82,7 +82,7 @@ ground()
{
if [ $# -eq 0 ]; then
- facets='1,$p'
+ facets="1,\$p"
else
facets="$(printf '%s ' "$@" | sed \
-e 's/^[[:space:]]\{1,\}//g' \
@@ -133,7 +133,7 @@ stardis_input > stardis_model.txt
# at 01:30:
# 783000 = (9 [day] * 24 [h] + 1 [h]) * 3600 [s] + 30 [m] * 60 [s]
time="783000" # [s]
-stardis -V3 -M stardis_model.txt -s ground_Z.stl,${time}
+stardis -V3 -M stardis_model.txt -s ground_Z.stl,"${time}"
# TODO: check the Stardis result against a reference, most likely the
# surface temperature provided by the Meteorological file at the time of