From 0e6a5ab76ea725797c4a44754621a48b80643f8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Wed, 28 Jun 2023 13:41:58 +0200
Subject: [PATCH] Fix wrong variable name.

---
 templates/event-generator/adapt_member.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/templates/event-generator/adapt_member.sh b/templates/event-generator/adapt_member.sh
index 585fabc..9ed0d33 100644
--- a/templates/event-generator/adapt_member.sh
+++ b/templates/event-generator/adapt_member.sh
@@ -58,7 +58,9 @@ integrate_sst_to_extpar "${INTERPOLATED_SST}" "${EXTERNAL_PARAMETERS_FILE}"
 
 # Interpolate analysis
 interpolate_initial_conditions "icon_grid_0024_R02B06_G.nc" "${ANALYSIS_FILE}" "${DESTINATION_GRID}" "interpolated_analysis.nc"
-interpolate_initial_conditions "icon_grid_0024_R02B06_G.nc" "${FG}" "${DESTINATION_GRID}" "first_guess.nc"
+
+# Interpolate first guess
+interpolate_initial_conditions "icon_grid_0024_R02B06_G.nc" "${FG_FILE}" "${DESTINATION_GRID}" "first_guess.nc"
 
 
 integrate_sst_to_analysis "${INTERPOLATED_SST}"
-- 
GitLab