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/ComputeDiagFunctors/ParticleReductionFunctor.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/ComputeDiagFunctors/ParticleReductionFunctor.cpp')
-rw-r--r-- | Source/Diagnostics/ComputeDiagFunctors/ParticleReductionFunctor.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/Diagnostics/ComputeDiagFunctors/ParticleReductionFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/ParticleReductionFunctor.cpp index 0b50e2d79..52952a373 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/ParticleReductionFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/ParticleReductionFunctor.cpp @@ -27,13 +27,15 @@ ParticleReductionFunctor::ParticleReductionFunctor (const amrex::MultiFab* mf_sr AMREX_ALWAYS_ASSERT(ncomp == 1); // Allocate and compile a parser based on the input string fn_str - m_map_fn_parser = std::make_unique<amrex::Parser>(makeParser( - fn_str, {"x", "y", "z", "ux", "uy", "uz"})); + m_map_fn_parser = std::make_unique<amrex::Parser>( + utils::parser::makeParser( + fn_str, {"x", "y", "z", "ux", "uy", "uz"})); m_map_fn = m_map_fn_parser->compile<6>(); // Do the same for filter function, if it exists if (m_do_filter) { - m_filter_fn_parser = std::make_unique<amrex::Parser>(makeParser( - filter_str, {"x", "y", "z", "ux", "uy", "uz"})); + m_filter_fn_parser = std::make_unique<amrex::Parser>( + utils::parser::makeParser( + filter_str, {"x", "y", "z", "ux", "uy", "uz"})); m_filter_fn = m_filter_fn_parser->compile<6>(); } } |