Skip to content

Commit

Permalink
use SetWriter instead
Browse files Browse the repository at this point in the history
  • Loading branch information
guj committed Jan 25, 2024
1 parent 1c9e34d commit 72d1d67
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Source/Diagnostics/FlushFormats/FlushFormatPlotPlus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,7 @@ void AMReXWithOpenPMD::SetWriter(amrex::openpmd_api::AMReX_openPMDWriter* w)
BL_ASSERT ( m_UserHandler != nullptr );
BL_ASSERT ( w != nullptr );

// so the openpmd filepath assigned from input file is still in use
w->m_openPMDPrefix = m_UserHandler->m_Writer->m_openPMDPrefix;
w->m_openPMDEncoding = m_UserHandler->m_Writer->m_openPMDEncoding;
w->m_openPMDFileType = m_UserHandler->m_Writer->m_openPMDFileType;
w->m_openPMDSeriesOptions = m_UserHandler->m_Writer->m_openPMDSeriesOptions;

m_UserHandler->m_Writer.reset(w);
m_UserHandler->SetWriter(w);
}

AMReXWithOpenPMD::~AMReXWithOpenPMD()
Expand Down

0 comments on commit 72d1d67

Please sign in to comment.