aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2020-09-04 17:58:57 -0700
committerGravatar GitHub <noreply@github.com> 2020-09-04 17:58:57 -0700
commit32a185e79e810ff21347cbaa10970d70b910c3b9 (patch)
treeb4ad30d156231f6b299f1eb12b315bbf274f7d56 /Source/Parallelization/GuardCellManager.cpp
parent9cf8bd4c8438ae1c8197284c1da05e029061d16c (diff)
downloadWarpX-32a185e79e810ff21347cbaa10970d70b910c3b9.tar.gz
WarpX-32a185e79e810ff21347cbaa10970d70b910c3b9.tar.zst
WarpX-32a185e79e810ff21347cbaa10970d70b910c3b9.zip
Fix some more warnings (#1288)
This fixes a number of warnings that were raised with `clang`: ``` ./Source/Particles/Gather/ScaleFields.H:44:17: warning: implicit conversion turns floating-point number into integer: 'const amrex::Real' (aka 'const double') to 'bool' [-Wfloat-conversion] if (not m_do_scale) return; ``` I changed the type of the flag `m_do_scale` from an `amrex::Real` to a `bool` ``` ./Source/Particles/WarpXParticleContainer.H:335:87: warning: extra ';' after member function definition [-Wextra-semi] ...resample (const Resampling& /*resampler*/, const int /*timestep*/) {}; ``` I removed the corresponding semi-colon. ``` delete called on non-final 'LabFrameDiag' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor] delete __ptr; ``` I added a declaration for a virtual destructor. ``` ./Source/Utils/NCIGodfreyTables.H:22:5: warning: suggest braces around initialization of subobject [-Wmissing-braces] ``` I added additional curly braces, to separate each line of the declared 2D arrays. (The values inside the array are unchanged.) Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
0 files changed, 0 insertions, 0 deletions