aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/FiniteDifferenceSolver
diff options
context:
space:
mode:
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver')
-rw-r--r--Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H12
-rw-r--r--Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H12
-rw-r--r--Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H12
-rw-r--r--Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp2
4 files changed, 19 insertions, 19 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
- };
+ }
};
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H
index 99510cc52..b0fe4d562 100644
--- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H
+++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H
@@ -67,7 +67,7 @@ struct CartesianNodalAlgorithm {
using namespace amrex;
Real const inv_dx = coefs_x[0];
return 0.5_rt*inv_dx*( F(i+1,j,k,ncomp) - F(i-1,j,k,ncomp) );
- };
+ }
/**
* Perform derivative along x
@@ -81,7 +81,7 @@ struct CartesianNodalAlgorithm {
return UpwardDx( F, coefs_x, n_coefs_x, i, j, k ,ncomp);
// For CartesianNodalAlgorithm, UpwardDx and DownwardDx are equivalent
- };
+ }
/**
* Perform derivative along y
@@ -100,7 +100,7 @@ struct CartesianNodalAlgorithm {
#elif (defined WARPX_DIM_XZ)
return 0._rt; // 2D Cartesian: derivative along y is 0
#endif
- };
+ }
/**
* Perform derivative along y
@@ -114,7 +114,7 @@ struct CartesianNodalAlgorithm {
return UpwardDy( F, coefs_y, n_coefs_y, i, j, k ,ncomp);
// For CartesianNodalAlgorithm, UpwardDy and DownwardDy are equivalent
- };
+ }
/**
* Perform derivative along z
@@ -133,7 +133,7 @@ struct CartesianNodalAlgorithm {
#elif (defined WARPX_DIM_XZ)
return 0.5_rt*inv_dz*( F(i,j+1,k,ncomp) - F(i,j-1,k,ncomp) );
#endif
- };
+ }
/**
* Perform derivative along z
@@ -147,7 +147,7 @@ struct CartesianNodalAlgorithm {
return UpwardDz( F, coefs_z, n_coefs_z, i, j, k ,ncomp);
// For CartesianNodalAlgorithm, UpwardDz and DownwardDz are equivalent
- };
+ }
};
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
- };
+ }
};
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp
index 9676710b5..08ff5e18f 100644
--- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp
+++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp
@@ -55,4 +55,4 @@ FiniteDifferenceSolver::FiniteDifferenceSolver (
} else {
amrex::Abort("Unknown algorithm");
}
-};
+}