Skip to content

Commit

Permalink
Fix MultiFabFileFullPrefix name; should have happened in PR#139.
Browse files Browse the repository at this point in the history
Also fix checkpoint read.
  • Loading branch information
cgilet committed Dec 3, 2024
1 parent 3580bc4 commit 70d54d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utilities/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ void incflo::WriteCheckPointFile() const

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

Expand Down Expand Up @@ -232,11 +232,11 @@ void incflo::ReadCheckpointFile()
amrex::MultiFabFileFullPrefix(lev, m_restart_file, level_prefix, "gradp"));

if (m_use_cc_proj) {
VisMF::Read(m_leveldata[lev]->p_nd,
amrex::MultiFabFileFullPrefix(lev, m_restart_file, level_prefix, "p_nd"));
} else {
VisMF::Read(m_leveldata[lev]->p_cc,
amrex::MultiFabFileFullPrefix(lev, m_restart_file, level_prefix, "p_cc"));
} else {
VisMF::Read(m_leveldata[lev]->p_nd,
amrex::MultiFabFileFullPrefix(lev, m_restart_file, level_prefix, "p_nd"));
}
}

Expand Down

0 comments on commit 70d54d5

Please sign in to comment.