diff options
Diffstat (limited to 'Source/Particles/LaserParticleContainer.cpp')
-rw-r--r-- | Source/Particles/LaserParticleContainer.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp index fbe2b9710..dae759cee 100644 --- a/Source/Particles/LaserParticleContainer.cpp +++ b/Source/Particles/LaserParticleContainer.cpp @@ -18,7 +18,8 @@ #include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" #include "Utils/WarpXUtil.H" -#include "WarpX.H" + +#include <ablastr/warn_manager/WarnManager.H> #include <AMReX.H> #include <AMReX_BLassert.H> @@ -117,9 +118,9 @@ LaserParticleContainer::LaserParticleContainer (AmrCore* amr_core, int ispecies, pp_laser_name.query("min_particles_per_mode", m_min_particles_per_mode); if (m_e_max == amrex::Real(0.)){ - WarpX::GetInstance().RecordWarning("Laser", + ablastr::warn_manager::WMRecordWarning("Laser", m_laser_name + " with zero amplitude disabled.", - WarnPriority::low); + ablastr::warn_manager::WarnPriority::low); m_enabled = false; return; // Disable laser if amplitude is 0 } @@ -328,9 +329,9 @@ LaserParticleContainer::InitData () InitData(maxLevel()); if(!do_continuous_injection && (TotalNumberOfParticles() == 0)){ - WarpX::GetInstance().RecordWarning("Laser", + ablastr::warn_manager::WMRecordWarning("Laser", "The antenna is completely out of the simulation box for laser " + m_laser_name, - WarnPriority::high); + ablastr::warn_manager::WarnPriority::high); m_enabled = false; // Disable laser if antenna is completely out of the simulation box } } |