Skip to content

Commit

Permalink
If m_use_cc_proj write p_cc to checkpoint; logic was reversed (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilet authored Dec 2, 2024
1 parent 4093772 commit 6066d04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utilities/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ void incflo::WriteCheckPointFile() const
amrex::MultiFabFileFullPrefix(lev, checkpointname, level_prefix, "gradp"));

if (m_use_cc_proj) {
VisMF::Write(m_leveldata[lev]->p_nd,
VisMF::Write(m_leveldata[lev]->p_cc,
amrex::MultiFabFileFullPrefix(lev, checkpointname, level_prefix, "p_nd"));
} else {
VisMF::Write(m_leveldata[lev]->p_cc,
VisMF::Write(m_leveldata[lev]->p_nd,
amrex::MultiFabFileFullPrefix(lev, checkpointname, level_prefix, "p_cc"));
}
}
Expand Down

0 comments on commit 6066d04

Please sign in to comment.