diff options
author | 2020-07-24 15:43:35 -0700 | |
---|---|---|
committer | 2020-07-24 15:43:35 -0700 | |
commit | 4181416d795875aee85e437ba28a5e8b17d87aec (patch) | |
tree | 9e445b8c3b9dbc2a480091343c6e14fd5c74efa1 /Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H | |
parent | 77bb6a519246df9d9afaf67a61ebdb9ca0b0e67c (diff) | |
download | WarpX-4181416d795875aee85e437ba28a5e8b17d87aec.tar.gz WarpX-4181416d795875aee85e437ba28a5e8b17d87aec.tar.zst WarpX-4181416d795875aee85e437ba28a5e8b17d87aec.zip |
Fix -Wextra-semi (#1207)
Remove unnecessary semicolons (fix compiler warnings).
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H')
-rw-r--r-- | Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H index 1c8609dfa..29e3d710e 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H @@ -63,7 +63,7 @@ struct CartesianYeeAlgorithm { amrex::Real const inv_dx = coefs_x[0]; return inv_dx*( F(i+1,j,k,ncomp) - F(i,j,k,ncomp) ); - }; + } /** * Perform derivative along x on a nodal grid, from a cell-centered field `F`*/ @@ -75,7 +75,7 @@ struct CartesianYeeAlgorithm { amrex::Real const inv_dx = coefs_x[0]; return inv_dx*( F(i,j,k,ncomp) - F(i-1,j,k,ncomp) ); - }; + } /** * Perform derivative along y on a cell-centered grid, from a nodal field `F`*/ @@ -92,7 +92,7 @@ struct CartesianYeeAlgorithm { #elif (defined WARPX_DIM_XZ) return 0._rt; // 2D Cartesian: derivative along y is 0 #endif - }; + } /** * Perform derivative along y on a nodal grid, from a cell-centered field `F`*/ @@ -109,7 +109,7 @@ struct CartesianYeeAlgorithm { #elif (defined WARPX_DIM_XZ) return 0._rt; // 2D Cartesian: derivative along y is 0 #endif - }; + } /** * Perform derivative along z on a cell-centered grid, from a nodal field `F`*/ @@ -126,7 +126,7 @@ struct CartesianYeeAlgorithm { #elif (defined WARPX_DIM_XZ) return inv_dz*( F(i,j+1,k,ncomp) - F(i,j,k,ncomp) ); #endif - }; + } /** * Perform derivative along z on a nodal grid, from a cell-centered field `F`*/ @@ -143,7 +143,7 @@ struct CartesianYeeAlgorithm { #elif (defined WARPX_DIM_XZ) return inv_dz*( F(i,j,k,ncomp) - F(i,j-1,k,ncomp) ); #endif - }; + } }; |