Skip to content
Snippets Groups Projects
Commit d1220883 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

allow current directory for output and make it default

parent c2cb20a7
Branches
Tags
1 merge request!63allow current directory for output and make it default
...@@ -96,7 +96,7 @@ namespace AMDiS ...@@ -96,7 +96,7 @@ namespace AMDiS
/// Implements \ref FileWriterInterface::writeFiles /// Implements \ref FileWriterInterface::writeFiles
void writeFiles(AdaptInfo& adaptInfo, bool force) override void writeFiles(AdaptInfo& adaptInfo, bool force) override
{ {
test_exit(filesystem::exists(dir_), "Output directory '{}' does not exist!",dir_); test_exit(dir_ == "." || filesystem::exists(dir_), "Output directory '{}' does not exist!",dir_);
if (vtkSeqWriter_) if (vtkSeqWriter_)
vtkSeqWriter_->write(adaptInfo.time(), mode_); vtkSeqWriter_->write(adaptInfo.time(), mode_);
......
...@@ -61,7 +61,7 @@ namespace AMDiS ...@@ -61,7 +61,7 @@ namespace AMDiS
protected: protected:
std::string filename_ = "solution"; std::string filename_ = "solution";
std::string dir_ = "output"; std::string dir_ = ".";
std::string name_ = "solution"; std::string name_ = "solution";
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment