diff options
author | 2022-10-10 20:36:14 +0200 | |
---|---|---|
committer | 2022-10-10 11:36:14 -0700 | |
commit | e9cc65ffeb0684a97618b67c2164d95ea497226c (patch) | |
tree | ed65f7ac86cc4e8945021dc36a79c8bc246c150d /Source/Diagnostics/FullDiagnostics.cpp | |
parent | 56e04c1b911f9399662c4ff9ecf6630d686cc220 (diff) | |
download | WarpX-e9cc65ffeb0684a97618b67c2164d95ea497226c.tar.gz WarpX-e9cc65ffeb0684a97618b67c2164d95ea497226c.tar.zst WarpX-e9cc65ffeb0684a97618b67c2164d95ea497226c.zip |
Partial refactoring of the utils directory (#3404)
* initial work to clean WarpX Utils
* remove AMRCore from Ionization tables
* progress
* refactoring of a part of the utils directory
* fix bug
* fixed bug
* fixed bug
* remove debug line accidentally slipped into the code
* remove debug line accidentally slipped into the code
* remove debug line accidentally slipped into the code
* cleaning
* fixed bug
Diffstat (limited to 'Source/Diagnostics/FullDiagnostics.cpp')
-rw-r--r-- | Source/Diagnostics/FullDiagnostics.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Diagnostics/FullDiagnostics.cpp b/Source/Diagnostics/FullDiagnostics.cpp index 7bdc2f171..cf71ce9f6 100644 --- a/Source/Diagnostics/FullDiagnostics.cpp +++ b/Source/Diagnostics/FullDiagnostics.cpp @@ -11,6 +11,7 @@ #include "Diagnostics/ParticleDiag/ParticleDiag.H" #include "FlushFormats/FlushFormat.H" #include "Particles/MultiParticleContainer.H" +#include "Utils/Algorithms/IsIn.H" #include "Utils/TextMsg.H" #include "Utils/WarpXAlgorithmSelection.H" #include "WarpX.H" @@ -85,7 +86,7 @@ FullDiagnostics::ReadParameters () "<diag>.format must be plotfile or openpmd or checkpoint or ascent or sensei"); std::vector<std::string> intervals_string_vec = {"0"}; pp_diag_name.getarr("intervals", intervals_string_vec); - m_intervals = IntervalsParser(intervals_string_vec); + m_intervals = utils::parser::IntervalsParser(intervals_string_vec); bool plot_raw_fields_specified = pp_diag_name.query("plot_raw_fields", m_plot_raw_fields); bool plot_raw_fields_guards_specified = pp_diag_name.query("plot_raw_fields_guards", m_plot_raw_fields_guards); bool raw_specified = plot_raw_fields_specified || plot_raw_fields_guards_specified; @@ -353,7 +354,7 @@ FullDiagnostics::AddRZModesToDiags (int lev) } // If rho is requested, all components will be written out - bool rho_requested = WarpXUtilStr::is_in( m_varnames, "rho" ); + bool rho_requested = utils::algorithms::is_in( m_varnames, "rho" ); // First index of m_all_field_functors[lev] where RZ modes are stored int icomp = m_all_field_functors[0].size(); |