Commit 13875fcb authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos 🇨🇴

fixed adapt policy to be default as none.

Signed-off-by: Santiago Ospina De Los Ríos's avatarSantiago Ospina <santiago.ospina@iup.uni-heidelberg.de>
parent 5249d474
......@@ -114,16 +114,13 @@ int main(int argc, char** argv)
const int FEorder = richards_config.get<int>("numerics.FEorder");
const std::string outputPath = richards_config.get<std::string>("output.outputPath");
Dune::Dorie::AdaptivityPolicy adapt_policy;
if (adapt_policy_str == "none")
Dune::Dorie::AdaptivityPolicy adapt_policy =
Dune::Dorie::AdaptivityPolicy::None;
else if (adapt_policy_str == "waterFlux") {
Dune::Dorie::AdaptivityPolicy adapt_policy = Dune::Dorie::AdaptivityPolicy::None;
if (adapt_policy_str == "waterFlux")
adapt_policy = Dune::Dorie::AdaptivityPolicy::WaterFlux;
} else {
else (adapt_policy_str != "none")
DUNE_THROW(Dune::NotImplemented,"The adaptivity policy " <<
adapt_policy_str << " is not implemented!");
}
// Attempt to create output directory
mkdir(outputPath.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
......
......@@ -9,7 +9,7 @@ except NameError:
pass
# paths set by cmake
DORIEDIR = "/home/saospina/Codes/DUNE_INSTALL/Release/dorie"
DORIEDIR = "/home/saospina/Codes/DUNE_INSTALL/Debug/dorie"
MPIEXEC = "/usr/bin/mpiexec"
MPIEXEC_NUMPROC_FLAG = "-n"
MPIEXEC_PREFLAG = ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment