diff options
Diffstat (limited to 'src/fluid_buffer.cc')
| -rw-r--r-- | src/fluid_buffer.cc | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/fluid_buffer.cc b/src/fluid_buffer.cc index 1f40d2f..9291fdd 100644 --- a/src/fluid_buffer.cc +++ b/src/fluid_buffer.cc @@ -32,7 +32,9 @@ Velocity& FluidBuffer::velocity(Vector<std::size_t> pos) {  	return velocity(pos[0], pos[1]);  } -void FluidBuffer::writeAsVTK(const std::string& path) { +void FluidBuffer::writeAsVTK(const std::filesystem::path& path) { +	std::filesystem::create_directories(path.parent_path()); +  	std::ofstream fout;  	fout.open(path.c_str()); | 
