From 428102c102d80e325637878ca0dbd586105cc9dd Mon Sep 17 00:00:00 2001 From: Xander <102053371+fractalsbyx@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:10:21 -0500 Subject: [PATCH] read the name given in parameters.prm instead of the internal variable name --- src/matrixfree/initialConditions.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrixfree/initialConditions.cc b/src/matrixfree/initialConditions.cc index d2ba9b11..ba7f7215 100644 --- a/src/matrixfree/initialConditions.cc +++ b/src/matrixfree/initialConditions.cc @@ -378,7 +378,7 @@ MatrixFreePDE::applyInitialConditions() for (const auto &index : index_list) { - std::string var_name = var_attributes.attributes.at(index).name; + std::string var_name = userInputs.load_field_name[index]; // Find the scalar field in the file ScalarField &field = body.find_scalar_field(var_name);