diff options
author | 2020-09-18 21:56:20 +0200 | |
---|---|---|
committer | 2020-09-18 12:56:20 -0700 | |
commit | 789f0da95e409b035cfffcacbb75dc847243e30a (patch) | |
tree | a673df1504710574cd694c2939952e8320bae610 /Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms | |
parent | edd428ffcdc02190cfc1b6d1e848af6cc6285939 (diff) | |
download | WarpX-789f0da95e409b035cfffcacbb75dc847243e30a.tar.gz WarpX-789f0da95e409b035cfffcacbb75dc847243e30a.tar.zst WarpX-789f0da95e409b035cfffcacbb75dc847243e30a.zip |
fix warnings in RZ (#1349)
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms')
-rw-r--r-- | Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H index 13807b131..6196598b3 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H @@ -13,6 +13,7 @@ #include <AMReX_REAL.H> #include <AMReX_Array4.H> #include <AMReX_Gpu.H> +#include <AMReX.H> #include <array> #include <cmath> @@ -76,6 +77,8 @@ struct CylindricalYeeAlgorithm { int const i, int const j, int const k, int const comp ) { using namespace amrex; + ignore_unused(n_coefs_r); + Real const inv_dr = coefs_r[0]; return 1._rt/r * inv_dr*( (r+0.5_rt*dr)*F(i+1,j,k,comp) - (r-0.5_rt*dr)*F(i,j,k,comp) ); }; @@ -92,6 +95,8 @@ struct CylindricalYeeAlgorithm { int const i, int const j, int const k, int const comp ) { using namespace amrex; + ignore_unused(n_coefs_r); + Real const inv_dr = coefs_r[0]; return 1._rt/r * inv_dr*( (r+0.5_rt*dr)*F(i,j,k,comp) - (r-0.5_rt*dr)*F(i-1,j,k,comp) ); }; @@ -105,6 +110,8 @@ struct CylindricalYeeAlgorithm { int const i, int const j, int const k, int const comp ) { using namespace amrex; + ignore_unused(n_coefs_r); + Real const inv_dr = coefs_r[0]; return inv_dr*( F(i+1,j,k,comp) - F(i,j,k,comp) ); }; @@ -118,6 +125,8 @@ struct CylindricalYeeAlgorithm { int const i, int const j, int const k, int const comp ) { using namespace amrex; + ignore_unused(n_coefs_r); + Real const inv_dr = coefs_r[0]; return inv_dr*( F(i,j,k,comp) - F(i-1,j,k,comp) ); }; @@ -130,6 +139,8 @@ struct CylindricalYeeAlgorithm { amrex::Real const * const coefs_z, int const n_coefs_z, int const i, int const j, int const k, int const comp ) { + amrex::ignore_unused(n_coefs_z); + amrex::Real const inv_dz = coefs_z[0]; return inv_dz*( F(i,j+1,k,comp) - F(i,j,k,comp) ); }; @@ -142,6 +153,8 @@ struct CylindricalYeeAlgorithm { amrex::Real const * const coefs_z, int const n_coefs_z, int const i, int const j, int const k, int const comp ) { + amrex::ignore_unused(n_coefs_z); + amrex::Real const inv_dz = coefs_z[0]; return inv_dz*( F(i,j,k,comp) - F(i,j-1,k,comp) ); }; |