Skip to content

Commit

Permalink
Add a slight implementation variant of Godunov scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkestene committed Mar 13, 2024
1 parent deed7bc commit d4405a9
Show file tree
Hide file tree
Showing 3 changed files with 637 additions and 390 deletions.
4 changes: 2 additions & 2 deletions src/HydroParams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ HydroParams::setup(ConfigMap & configMap)
blast_pressure_out = configMap.getFloat("blast", "pressure_out", 0.1);

implementationVersion = configMap.getFloat("OTHER", "implementationVersion", 0);
if (implementationVersion != 0 and implementationVersion != 1)
if (implementationVersion != 0 and implementationVersion != 1 and implementationVersion != 2)
{
std::cout << "Implementation version is invalid (must be 0 or 1)\n";
std::cout << "Implementation version is invalid (must be 0, 1 or 2)\n";
std::cout << "Use the default : 0\n";
implementationVersion = 0;
}
Expand Down
Loading

0 comments on commit d4405a9

Please sign in to comment.