diff options
author | 2020-01-31 05:06:40 -0800 | |
---|---|---|
committer | 2020-01-31 05:06:40 -0800 | |
commit | 9b82385969d325a9b8101868f5323335c8015106 (patch) | |
tree | b2266c52df3dfc503d1c3a8e7234c135c2083a41 /Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H | |
parent | cd10ae533fd1fc8d4621ff0e44f95eb4c40636bb (diff) | |
download | WarpX-9b82385969d325a9b8101868f5323335c8015106.tar.gz WarpX-9b82385969d325a9b8101868f5323335c8015106.tar.zst WarpX-9b82385969d325a9b8101868f5323335c8015106.zip |
Add `const` anotations
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H')
-rw-r--r-- | Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H index a305ae21c..fcd1a7778 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H @@ -37,7 +37,7 @@ struct CylindricalYeeAlgorithm { amrex::Real const* coefs_r, int const n_coefs_r, int const i, int const j, int const k, int const comp ) { - amrex::Real inv_dr = coefs_r[0]; + amrex::Real const inv_dr = coefs_r[0]; return 1./r * inv_dr*( (r+0.5*dr)*F(i+1,j,k,comp) - (r-0.5*dr)*F(i,j,k,comp) ); }; @@ -49,7 +49,7 @@ struct CylindricalYeeAlgorithm { amrex::Real const* coefs_r, int const n_coefs_r, int const i, int const j, int const k, int const comp ) { - amrex::Real inv_dr = coefs_r[0]; + amrex::Real const inv_dr = coefs_r[0]; return inv_dr*( F(i+1,j,k,comp) - F(i,j,k,comp) ); }; @@ -61,7 +61,7 @@ struct CylindricalYeeAlgorithm { amrex::Real const* coefs_r, int const n_coefs_r, int const i, int const j, int const k, int const comp ) { - amrex::Real inv_dr = coefs_r[0]; + amrex::Real const inv_dr = coefs_r[0]; return inv_dr*( F(i,j,k,comp) - F(i-1,j,k,comp) ); }; @@ -73,7 +73,7 @@ struct CylindricalYeeAlgorithm { amrex::Real const* coefs_z, int const n_coefs_z, int const i, int const j, int const k, int const comp ) { - amrex::Real inv_dz = coefs_z[0]; + amrex::Real const inv_dz = coefs_z[0]; return inv_dz*( F(i,j+1,k,comp) - F(i,j,k,comp) ); }; @@ -85,7 +85,7 @@ struct CylindricalYeeAlgorithm { amrex::Real const* coefs_z, int const n_coefs_z, int const i, int const j, int const k, int const comp ) { - amrex::Real inv_dz = coefs_z[0]; + amrex::Real const inv_dz = coefs_z[0]; return inv_dz*( F(i,j,k,comp) - F(i,j-1,k,comp) ); }; |