diff options
author | 2023-08-01 04:07:07 +0200 | |
---|---|---|
committer | 2023-08-01 02:07:07 +0000 | |
commit | 862df560823cedaf08b67cbee527ed9bedc79683 (patch) | |
tree | 926a8150bd40517abca1a1c5ad9bfaac0349bf1f /Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp | |
parent | 31199f61b1526f61e64d9ff3122298c08d50b81f (diff) | |
download | WarpX-862df560823cedaf08b67cbee527ed9bedc79683.tar.gz WarpX-862df560823cedaf08b67cbee527ed9bedc79683.tar.zst WarpX-862df560823cedaf08b67cbee527ed9bedc79683.zip |
Move GotoNextLine helper function into ablastr (#4139)
* move GotoNextLine helper function into ablastr
* fixed bug
* Update Source/ablastr/utils/text/StreamUtils.H
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp')
-rw-r--r-- | Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp b/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp index d530cb091..9f4976c20 100644 --- a/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp +++ b/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp @@ -7,7 +7,8 @@ #include "BTD_Plotfile_Header_Impl.H" #include "Utils/TextMsg.H" -#include "WarpX.H" + +#include <ablastr/utils/text/StreamUtils.H> #include <AMReX.H> #include <AMReX_FileSystem.H> @@ -71,7 +72,7 @@ BTDPlotfileHeaderImpl::ReadHeaderData () for (int idim = 0; idim < m_spacedim; ++idim) { is >> m_prob_hi[idim]; } - WarpX::GotoNextLine(is); + ablastr::utils::text::goto_next_line(is); is >> m_prob_domain; @@ -232,7 +233,7 @@ BTDMultiFabHeaderImpl::ReadMultiFabHeader () for (int ifab = 0; ifab < m_ba.size(); ++ifab) { is >> m_FabOnDiskPrefix[ifab] >> m_fabname[ifab] >> m_fabhead[ifab]; } - WarpX::GotoNextLine(is); + ablastr::utils::text::goto_next_line(is); char ch; is >> in_hash >> ch >> in_hash; m_minval.resize(m_ba.size()); @@ -243,7 +244,7 @@ BTDMultiFabHeaderImpl::ReadMultiFabHeader () if( ch != ',' ) amrex::Error("Expected a ',' got something else"); } } - WarpX::GotoNextLine(is); + ablastr::utils::text::goto_next_line(is); is >> in_hash >> ch >> in_hash; m_maxval.resize(m_ba.size()); for (int ifab = 0; ifab < m_ba.size(); ++ifab) { |