From 72d1d6799c54b6b6c0a89a7c498e7df199ca2cd1 Mon Sep 17 00:00:00 2001 From: guj Date: Thu, 25 Jan 2024 13:10:40 -0800 Subject: [PATCH] use SetWriter instead --- Source/Diagnostics/FlushFormats/FlushFormatPlotPlus.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotPlus.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotPlus.cpp index f638b76adb5..d0814f4b329 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotPlus.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotPlus.cpp @@ -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()