aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2020-01-31 05:09:06 -0800
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2020-01-31 05:09:06 -0800
commitcb045a191a633ab2e6896161d58c3e6d0e0e074f (patch)
tree29c66c0c2ec278fe58b0595a32ff0b74d255cd4a /Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H
parent9b82385969d325a9b8101868f5323335c8015106 (diff)
downloadWarpX-cb045a191a633ab2e6896161d58c3e6d0e0e074f.tar.gz
WarpX-cb045a191a633ab2e6896161d58c3e6d0e0e074f.tar.zst
WarpX-cb045a191a633ab2e6896161d58c3e6d0e0e074f.zip
Left-align pre-compiler directives
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H')
-rw-r--r--Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H24
1 files changed, 12 insertions, 12 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H
index c040a7846..82527bc5f 100644
--- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H
+++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H
@@ -67,12 +67,12 @@ struct NodalAlgorithm {
amrex::Real const* coefs_y, int const n_coefs_y,
int const i, int const j, int const k ) {
-# if defined WARPX_DIM_3D
+#if defined WARPX_DIM_3D
amrex::Real const inv_dy = coefs_y[0];
return 0.5*inv_dy*( F(i,j+1,k) - F(i,j-1,k) );
-# elif (defined WARPX_DIM_XZ)
+#elif (defined WARPX_DIM_XZ)
return 0; // 2D Cartesian: derivative along y is 0
-# endif
+#endif
};
/**
@@ -85,12 +85,12 @@ struct NodalAlgorithm {
amrex::Real const* coefs_y, int const n_coefs_y,
int const i, int const j, int const k ) {
-# if defined WARPX_DIM_3D
+#if defined WARPX_DIM_3D
amrex::Real const inv_dy = coefs_y[0];
return 0.5*inv_dy*( F(i,j+1,k) - F(i,j-1,k) );
-# elif (defined WARPX_DIM_XZ)
+#elif (defined WARPX_DIM_XZ)
return 0; // 2D Cartesian: derivative along y is 0
-# endif
+#endif
};
/**
@@ -104,11 +104,11 @@ struct NodalAlgorithm {
int const i, int const j, int const k ) {
amrex::Real const inv_dz = coefs_z[0];
-# if defined WARPX_DIM_3D
+#if defined WARPX_DIM_3D
return 0.5*inv_dz*( F(i,j,k+1) - F(i,j,k-1) );
-# elif (defined WARPX_DIM_XZ)
+#elif (defined WARPX_DIM_XZ)
return 0.5*inv_dz*( F(i,j+1,k) - F(i,j-1,k) );
-# endif
+#endif
};
/**
@@ -122,11 +122,11 @@ struct NodalAlgorithm {
int const i, int const j, int const k ) {
amrex::Real const inv_dz = coefs_z[0];
-# if defined WARPX_DIM_3D
+#if defined WARPX_DIM_3D
return 0.5*inv_dz*( F(i,j,k+1) - F(i,j,k-1) );
-# elif (defined WARPX_DIM_XZ)
+#elif (defined WARPX_DIM_XZ)
return 0.5*inv_dz*( F(i,j+1,k) - F(i,j-1,k) );
-# endif
+#endif
};
};