diff options
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H')
-rw-r--r-- | Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H index bb480364a..d5b567bc1 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H @@ -138,7 +138,7 @@ struct CartesianCKCAlgorithm { + betaxz * (F(i+1,j+1,k ,ncomp) - F(i ,j+1,k ,ncomp) + F(i+1,j-1,k ,ncomp) - F(i ,j-1,k ,ncomp)); #endif - }; + } /** * Perform derivative along x on a nodal grid, from a cell-centered field `F` */ @@ -150,7 +150,7 @@ struct CartesianCKCAlgorithm { 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` */ @@ -178,7 +178,7 @@ struct CartesianCKCAlgorithm { #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` */ @@ -195,7 +195,7 @@ struct CartesianCKCAlgorithm { #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` */ @@ -227,7 +227,7 @@ struct CartesianCKCAlgorithm { + betazx * (F(i+1,j+1,k ,ncomp) - F(i+1,j ,k ,ncomp) + F(i-1,j+1,k ,ncomp) - F(i-1,j ,k ,ncomp)); #endif - }; + } /** * Perform derivative along z on a nodal grid, from a cell-centered field `F` */ @@ -243,7 +243,7 @@ struct CartesianCKCAlgorithm { #elif (defined WARPX_DIM_XZ) return inv_dz*( F(i,j,k,ncomp) - F(i,j-1,k,ncomp) ); #endif - }; + } }; |