Skip to content

Commit

Permalink
read the name given in parameters.prm instead of the internal variabl…
Browse files Browse the repository at this point in the history
…e name
  • Loading branch information
fractalsbyx authored and landinjm committed Dec 5, 2024
1 parent 6cb8f99 commit 428102c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matrixfree/initialConditions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ MatrixFreePDE<dim, degree>::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);
Expand Down

0 comments on commit 428102c

Please sign in to comment.