Skip to content
Permalink
Browse files

Fix problem #2412 of parallel output

  • Loading branch information...
zhangning737 committed Jun 28, 2019
1 parent 58017f0 commit 3e1bac368cbd4b54362c1fc4dba6011464d69199
Showing with 9 additions and 1 deletion.
  1. +9 −1 MeshLib/IO/VtkIO/PVDFile.cpp
@@ -14,6 +14,7 @@
#include <limits>
#include <logog/include/logog.hpp>
#include "BaseLib/Error.h"
#include "MeshLib/IO/VtkIO/VtuInterface.h"

namespace MeshLib
{
@@ -22,7 +23,14 @@ namespace IO

void PVDFile::addVTUFile(const std::string &vtu_fname, double timestep)
{
_datasets.emplace_back(timestep, vtu_fname);
#ifdef USE_PETSC
auto const vtu_file_name =
getVtuFileNameForPetscOutputWithoutExtension(vtu_fname);

_datasets.emplace_back(timestep, vtu_file_name + ".pvtu");
#else
_datasets.emplace_back(timestep, vtu_fname);
#endif

std::ofstream fh(_pvd_filename.c_str());
if (!fh) {

0 comments on commit 3e1bac3

Please sign in to comment.
You can’t perform that action at this time.