From 789f0da95e409b035cfffcacbb75dc847243e30a Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Fri, 18 Sep 2020 21:56:20 +0200 Subject: fix warnings in RZ (#1349) --- .../FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms') 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 #include #include +#include #include #include @@ -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) ); }; -- cgit v1.2.3