Skip to content

Commit

Permalink
[1D] Change highest-level yaml tag from debug to solution for debuggi…
Browse files Browse the repository at this point in the history
…ng output files

This is just to help contrast with the other entries in the file that are labelled as
residual. A solution/residual naming scheme makes sense versus the current debug/residual
naming scheme because both outputs are technically debugging information.
  • Loading branch information
wandadars authored and speth committed Jan 18, 2024
1 parent a25d7b6 commit 01a0284
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/oneD/Sim1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ void Sim1D::solve(int loglevel, bool refine_grid)
}

if (loglevel > 6) {
save("debug_sim1d.yaml", "debug",
save("debug_sim1d.yaml", "solution",
"After successful Newton solve", true);
}
if (loglevel > 7) {
Expand All @@ -458,7 +458,7 @@ void Sim1D::solve(int loglevel, bool refine_grid)
} else {
debuglog(" failure. \n", loglevel);
if (loglevel > 6) {
save("debug_sim1d.yaml", "debug",
save("debug_sim1d.yaml", "solution",
"After unsuccessful Newton solve", true);
}
if (loglevel > 7) {
Expand All @@ -471,7 +471,7 @@ void Sim1D::solve(int loglevel, bool refine_grid)
dt = timeStep(nsteps, dt, m_state->data(), m_xnew.data(), loglevel-1);
m_xlast_ts = *m_state;
if (loglevel > 6) {
save("debug_sim1d.yaml", "debug", "After timestepping", true);
save("debug_sim1d.yaml", "solution", "After timestepping", true);
}
if (loglevel > 7) {
saveResidual("debug_sim1d.yaml", "residual",
Expand Down Expand Up @@ -506,7 +506,7 @@ void Sim1D::solve(int loglevel, bool refine_grid)
dt = m_tstep;
}
if (new_points && loglevel > 6) {
save("debug_sim1d.yaml", "debug", "After regridding", true);
save("debug_sim1d.yaml", "solution", "After regridding", true);
}
if (new_points && loglevel > 7) {
saveResidual("debug_sim1d.yaml", "residual",
Expand Down

0 comments on commit 01a0284

Please sign in to comment.