Skip to content

Commit

Permalink
Fix the executable templates to actually print PRM (#1273)
Browse files Browse the repository at this point in the history
Description
Since the last deal.II version change, the template executable production did not adequately product a template file because they were not using the right form of output argument. This PR fixes that.

Former-commit-id: bd0e139
  • Loading branch information
blaisb authored Aug 31, 2024
1 parent df15e93 commit 94ae97c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions applications/dem_parameter_template/dem_parameter_template.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ main()
dem_parameters.declare(prm);
std::ofstream output_prm("dem-2d.prm");
#if DEAL_II_VERSION_GTE(9, 7, 0)
prm.print_parameters(output_prm, prm.DefaultStyle);
prm.print_parameters(output_prm, prm.PRM);
#else
prm.print_parameters(output_prm, prm.Text);
#endif
Expand All @@ -26,7 +26,7 @@ main()
dem_parameters.declare(prm);
std::ofstream output_prm("dem-3d.prm");
#if DEAL_II_VERSION_GTE(9, 7, 0)
prm.print_parameters(output_prm, prm.DefaultStyle);
prm.print_parameters(output_prm, prm.PRM);
#else
prm.print_parameters(output_prm, prm.Text);
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ main()
nsparam.declare(prm, size_of_subsections);
std::ofstream output_prm("template-2d.prm");
#if DEAL_II_VERSION_GTE(9, 7, 0)
prm.print_parameters(output_prm, prm.DefaultStyle);
prm.print_parameters(output_prm, prm.PRM);
#else
prm.print_parameters(output_prm, prm.Text);
#endif
Expand All @@ -32,7 +32,7 @@ main()
nsparam.declare(prm, size_of_subsections);
std::ofstream output_prm("template-3d.prm");
#if DEAL_II_VERSION_GTE(9, 7, 0)
prm.print_parameters(output_prm, prm.DefaultStyle);
prm.print_parameters(output_prm, prm.PRM);
#else
prm.print_parameters(output_prm, prm.Text);
#endif
Expand Down

0 comments on commit 94ae97c

Please sign in to comment.