From 70d54d58561a2dd7444fde8cc1cff485afd41e12 Mon Sep 17 00:00:00 2001 From: cgilet Date: Tue, 3 Dec 2024 12:06:23 +0100 Subject: [PATCH] Fix MultiFabFileFullPrefix name; should have happened in PR#139. Also fix checkpoint read. --- src/utilities/io.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utilities/io.cpp b/src/utilities/io.cpp index bae87236..9aae68eb 100644 --- a/src/utilities/io.cpp +++ b/src/utilities/io.cpp @@ -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")); } } @@ -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")); } }