diff options
author | 2023-08-08 01:55:13 +0200 | |
---|---|---|
committer | 2023-08-07 16:55:13 -0700 | |
commit | fa5dc424956cae58ec910bee49e1b9118fc1feb0 (patch) | |
tree | 7c7cb88fb407806235878004d12f1c6d3d9b3274 /Source/Initialization/PlasmaInjector.cpp | |
parent | fb33708501b986922066f332afa76ea8610ba31a (diff) | |
download | WarpX-fa5dc424956cae58ec910bee49e1b9118fc1feb0.tar.gz WarpX-fa5dc424956cae58ec910bee49e1b9118fc1feb0.tar.zst WarpX-fa5dc424956cae58ec910bee49e1b9118fc1feb0.zip |
Clang-tidy CI test: add 4 new readability checks (#4163)
Diffstat (limited to 'Source/Initialization/PlasmaInjector.cpp')
-rw-r--r-- | Source/Initialization/PlasmaInjector.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Initialization/PlasmaInjector.cpp b/Source/Initialization/PlasmaInjector.cpp index 115fbfca1..03cee4c5e 100644 --- a/Source/Initialization/PlasmaInjector.cpp +++ b/Source/Initialization/PlasmaInjector.cpp @@ -50,7 +50,7 @@ namespace { std::string string; stringstream << var << " string '" << name << "' not recognized."; string = stringstream.str(); - WARPX_ABORT_WITH_MESSAGE(string.c_str()); + WARPX_ABORT_WITH_MESSAGE(string); } } @@ -688,16 +688,16 @@ void PlasmaInjector::parseMomentum (const amrex::ParmParse& pp) ux_min, uy_min, uz_min, ux_max, uy_max, uz_max)); } else if (mom_dist_s == "maxwell_boltzmann"){ h_mom_temp = std::make_unique<TemperatureProperties>(pp); - const GetTemperature getTemp(*h_mom_temp.get()); + const GetTemperature getTemp(*h_mom_temp); h_mom_vel = std::make_unique<VelocityProperties>(pp); - const GetVelocity getVel(*h_mom_vel.get()); + const GetVelocity getVel(*h_mom_vel); // Construct InjectorMomentum with InjectorMomentumBoltzmann. h_inj_mom.reset(new InjectorMomentum((InjectorMomentumBoltzmann*)nullptr, getTemp, getVel)); } else if (mom_dist_s == "maxwell_juttner"){ h_mom_temp = std::make_unique<TemperatureProperties>(pp); - const GetTemperature getTemp(*h_mom_temp.get()); + const GetTemperature getTemp(*h_mom_temp); h_mom_vel = std::make_unique<VelocityProperties>(pp); - const GetVelocity getVel(*h_mom_vel.get()); + const GetVelocity getVel(*h_mom_vel); // Construct InjectorMomentum with InjectorMomentumJuttner. h_inj_mom.reset(new InjectorMomentum((InjectorMomentumJuttner*)nullptr, getTemp, getVel)); } else if (mom_dist_s == "radial_expansion") { |