Skip to content

Commit

Permalink
Check for non-null input->debugFolder in dumpMeshWithFlag
Browse files Browse the repository at this point in the history
Signed-off-by: Aiden Woodruff <[email protected]>
  • Loading branch information
bobpaw committed Nov 12, 2023
1 parent fb19d90 commit 8dc1b1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ma/maDBG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ void dumpMeshWithFlag(ma::Adapt* a,

// setup file name and write the mesh
std::stringstream ss;
ss << a->input->debugFolder << "/";
if (a->input->debugFolder) {
ss << a->input->debugFolder << "/";
}
ss << prefix << "_" << std::setfill('0') << std::setw(3) << iter;

writeMesh(a->mesh, ss.str().c_str(), "");
Expand Down

0 comments on commit 8dc1b1b

Please sign in to comment.