From 99e6d60a35b1d373f88e7ab1dddec2d517bef1f8 Mon Sep 17 00:00:00 2001 From: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> Date: Tue, 28 Mar 2023 00:25:26 -0700 Subject: Fix restart btd (#3734) * Correct calculation of m_t_lab * write BTD related restart, read, and init data before and after accordingly * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * write snapshot domain lo and hi in moving window dir * write lo and hi of snapshot domain for all dimensions * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * clean up * more meta data and redefine snapshot geom, buffer mf and write to new dir for plotfile instead of merging * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * use virtual functions * empty else condition * remove commented line * fix error in returning k-index. Thanks CI * doxygen comments * doxygen comments * more doxygen --------- Co-authored-by: Remi Lehe --- Source/Diagnostics/FullDiagnostics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Diagnostics/FullDiagnostics.cpp') diff --git a/Source/Diagnostics/FullDiagnostics.cpp b/Source/Diagnostics/FullDiagnostics.cpp index 99e28a7f8..332b93986 100644 --- a/Source/Diagnostics/FullDiagnostics.cpp +++ b/Source/Diagnostics/FullDiagnostics.cpp @@ -443,7 +443,8 @@ FullDiagnostics::AddRZModesToOutputNames (const std::string& field, int ncomp){ void -FullDiagnostics::InitializeBufferData (int i_buffer, int lev ) { +FullDiagnostics::InitializeBufferData (int i_buffer, int lev, bool restart ) { + amrex::ignore_unused(restart); auto & warpx = WarpX::GetInstance(); amrex::RealBox diag_dom; bool use_warpxba = true; -- cgit v1.2.3