Skip to content

Commit

Permalink
Write final Paraview dataset with error indicators at time 99*
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed May 1, 2024
1 parent 19b86da commit 1e08137
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion palace/models/postoperator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,8 @@ void PostOperator::WriteFieldsFinal(const ErrorIndicator *indicator) const
HasE() ? *E->ParFESpace()->GetParMesh() : *B->ParFESpace()->GetParMesh();
mesh::DimensionalizeMesh(mesh, mesh_Lc0);
paraview.SetCycle(paraview.GetCycle() + 1);
paraview.SetTime(-99.0);
paraview.SetTime(std::pow(10.0, 2.0 + static_cast<int>(std::log10(paraview.GetTime()))) -
1.0);
mfem::DataCollection::FieldMapType field_map(paraview.GetFieldMap()); // Copy
for (const auto &[name, gf] : field_map)
{
Expand Down

0 comments on commit 1e08137

Please sign in to comment.