diff options
Diffstat (limited to 'src/fluid_buffer.cc')
-rw-r--r-- | src/fluid_buffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fluid_buffer.cc b/src/fluid_buffer.cc index e73c818..1f40d2f 100644 --- a/src/fluid_buffer.cc +++ b/src/fluid_buffer.cc @@ -32,9 +32,9 @@ Velocity& FluidBuffer::velocity(Vector<std::size_t> pos) { return velocity(pos[0], pos[1]); } -void FluidBuffer::writeAsVTK(int time) { +void FluidBuffer::writeAsVTK(const std::string& path) { std::ofstream fout; - fout.open(("result/data_t" + std::to_string(time) + ".vtk").c_str()); + fout.open(path.c_str()); fout << "# vtk DataFile Version 3.0\n"; fout << "lbm_output\n"; |