aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2020-01-31 05:06:40 -0800
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2020-01-31 05:06:40 -0800
commit9b82385969d325a9b8101868f5323335c8015106 (patch)
treeb2266c52df3dfc503d1c3a8e7234c135c2083a41 /Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H
parentcd10ae533fd1fc8d4621ff0e44f95eb4c40636bb (diff)
downloadWarpX-9b82385969d325a9b8101868f5323335c8015106.tar.gz
WarpX-9b82385969d325a9b8101868f5323335c8015106.tar.zst
WarpX-9b82385969d325a9b8101868f5323335c8015106.zip
Add `const` anotations
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H')
-rw-r--r--Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H
index d3900b4f1..0ad9c6345 100644
--- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H
+++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H
@@ -37,7 +37,7 @@ struct YeeAlgorithm {
amrex::Real const* coefs_x, int const n_coefs_x,
int const i, int const j, int const k ) {
- amrex::Real inv_dx = coefs_x[0];
+ amrex::Real const inv_dx = coefs_x[0];
return inv_dx*( F(i+1,j,k) - F(i,j,k) );
};
@@ -49,7 +49,7 @@ struct YeeAlgorithm {
amrex::Real const* coefs_x, int const n_coefs_x,
int const i, int const j, int const k ) {
- amrex::Real inv_dx = coefs_x[0];
+ amrex::Real const inv_dx = coefs_x[0];
return inv_dx*( F(i,j,k) - F(i-1,j,k) );
};
@@ -62,7 +62,7 @@ struct YeeAlgorithm {
int const i, int const j, int const k ) {
#if defined WARPX_DIM_3D
- amrex::Real inv_dy = coefs_y[0];
+ amrex::Real const inv_dy = coefs_y[0];
return inv_dy*( F(i,j+1,k) - F(i,j,k) );
#elif (defined WARPX_DIM_XZ)
return 0; // 2D Cartesian: derivative along y is 0
@@ -78,7 +78,7 @@ struct YeeAlgorithm {
int const i, int const j, int const k ) {
#if defined WARPX_DIM_3D
- amrex::Real inv_dy = coefs_y[0];
+ amrex::Real const inv_dy = coefs_y[0];
return inv_dy*( F(i,j,k) - F(i,j-1,k) );
#elif (defined WARPX_DIM_XZ)
return 0; // 2D Cartesian: derivative along y is 0
@@ -93,7 +93,7 @@ struct YeeAlgorithm {
amrex::Real const* coefs_z, int const n_coefs_z,
int const i, int const j, int const k ) {
- amrex::Real inv_dz = coefs_z[0];
+ amrex::Real const inv_dz = coefs_z[0];
#if defined WARPX_DIM_3D
return inv_dz*( F(i,j,k+1) - F(i,j,k) );
#elif (defined WARPX_DIM_XZ)
@@ -109,7 +109,7 @@ struct YeeAlgorithm {
amrex::Real const* coefs_z, int const n_coefs_z,
int const i, int const j, int const k ) {
- amrex::Real inv_dz = coefs_z[0];
+ amrex::Real const inv_dz = coefs_z[0];
#if defined WARPX_DIM_3D
return inv_dz*( F(i,j,k) - F(i,j,k-1) );
#elif (defined WARPX_DIM_XZ)