Skip to content

Commit ec2b06b

Browse files
committed
Rename Z-serial assert function
1 parent ac67b32 commit ec2b06b

15 files changed

Lines changed: 20 additions & 20 deletions

File tree

include/bout/fft.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ Array<BoutReal> irfft(const Array<dcomplex>& in, int length);
121121
/// Generally, FFTs must be done over the full Z domain. Currently, most
122122
/// methods using FFTs don't handle parallelising in Z
123123
#if BOUT_CHECK_LEVEL > 0
124-
void checkZSerial(const Mesh& mesh, std::string_view name);
124+
void assertZSerial(const Mesh& mesh, std::string_view name);
125125
#else
126-
inline void checkZSerial([[maybe_unused]] const Mesh& mesh,
126+
inline void assertZSerial([[maybe_unused]] const Mesh& mesh,
127127
[[maybe_unused]] std::string_view name) {}
128128
#endif
129129
} // namespace fft

src/field/field3d.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ FieldPerp pow(const Field3D& lhs, const FieldPerp& rhs, const std::string& rgn)
637637
Field3D filter(const Field3D& var, int N0, const std::string& rgn) {
638638
TRACE("filter(Field3D, int)");
639639

640-
bout::fft::checkZSerial(*var.getMesh(), "`filter`");
640+
bout::fft::assertZSerial(*var.getMesh(), "`filter`");
641641
checkData(var);
642642

643643
int ncz = var.getNz();
@@ -684,7 +684,7 @@ Field3D filter(const Field3D& var, int N0, const std::string& rgn) {
684684
Field3D lowPass(const Field3D& var, int zmax, bool keep_zonal, const std::string& rgn) {
685685
TRACE("lowPass(Field3D, {}, {})", zmax, keep_zonal);
686686

687-
bout::fft::checkZSerial(*var.getMesh(), "`lowPass`");
687+
bout::fft::assertZSerial(*var.getMesh(), "`lowPass`");
688688
checkData(var);
689689
int ncz = var.getNz();
690690

@@ -735,7 +735,7 @@ Field3D lowPass(const Field3D& var, int zmax, bool keep_zonal, const std::string
735735
void shiftZ(Field3D& var, int jx, int jy, double zangle) {
736736
TRACE("shiftZ");
737737

738-
bout::fft::checkZSerial(*var.getMesh(), "`shiftZ`");
738+
bout::fft::assertZSerial(*var.getMesh(), "`shiftZ`");
739739
checkData(var);
740740
var.allocate(); // Ensure that var is unique
741741
Mesh* localmesh = var.getMesh();

src/invert/fft_fftw.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ Array<BoutReal> irfft(const Array<dcomplex>& in, int length) {
535535
}
536536

537537
#if BOUT_CHECK_LEVEL > 0
538-
void checkZSerial(const Mesh& mesh, std::string_view name) {
538+
void assertZSerial(const Mesh& mesh, std::string_view name) {
539539
if (mesh.getNZPE() != 1) {
540540
throw BoutException("{} uses FFTs which are currently incompatible with multiple "
541541
"processors in Z (using {})",

src/invert/laplace/impls/cyclic/cyclic_laplace.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ LaplaceCyclic::LaplaceCyclic(Options* opt, const CELL_LOC loc, Mesh* mesh_in,
5757
Solver* UNUSED(solver))
5858
: Laplacian(opt, loc, mesh_in), Acoef(0.0), C1coef(1.0), C2coef(1.0), Dcoef(1.0) {
5959

60-
bout::fft::checkZSerial(*localmesh, "`cyclic` inversion");
60+
bout::fft::assertZSerial(*localmesh, "`cyclic` inversion");
6161

6262
Acoef.setLocation(location);
6363
C1coef.setLocation(location);

src/invert/laplace/impls/iterative_parallel_tri/iterative_parallel_tri.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ LaplaceIPT::LaplaceIPT(Options* opt, CELL_LOC loc, Mesh* mesh_in, Solver* UNUSED
6767
au(ny, nmode), bu(ny, nmode), rl(nmode), ru(nmode), r1(ny, nmode), r2(ny, nmode),
6868
first_call(ny), x0saved(ny, 4, nmode), converged(nmode), fine_error(4, nmode) {
6969

70-
bout::fft::checkZSerial(*localmesh, "`ipt` inversion");
70+
bout::fft::assertZSerial(*localmesh, "`ipt` inversion");
7171

7272
A.setLocation(location);
7373
C.setLocation(location);

src/invert/laplace/impls/pcr/pcr.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ LaplacePCR::LaplacePCR(Options* opt, CELL_LOC loc, Mesh* mesh_in, Solver* UNUSED
6767
ncx(localmesh->LocalNx), ny(localmesh->LocalNy), avec(ny, nmode, ncx),
6868
bvec(ny, nmode, ncx), cvec(ny, nmode, ncx) {
6969

70-
bout::fft::checkZSerial(*localmesh, "`pcr` inversion");
70+
bout::fft::assertZSerial(*localmesh, "`pcr` inversion");
7171

7272
Acoef.setLocation(location);
7373
C1coef.setLocation(location);

src/invert/laplace/impls/pcr_thomas/pcr_thomas.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ LaplacePCR_THOMAS::LaplacePCR_THOMAS(Options* opt, CELL_LOC loc, Mesh* mesh_in,
6565
ncx(localmesh->LocalNx), ny(localmesh->LocalNy), avec(ny, nmode, ncx),
6666
bvec(ny, nmode, ncx), cvec(ny, nmode, ncx) {
6767

68-
bout::fft::checkZSerial(*localmesh, "`pcr_thomas` inversion");
68+
bout::fft::assertZSerial(*localmesh, "`pcr_thomas` inversion");
6969

7070
Acoef.setLocation(location);
7171
C1coef.setLocation(location);

src/invert/laplace/impls/serial_band/serial_band.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ LaplaceSerialBand::LaplaceSerialBand(Options* opt, const CELL_LOC loc, Mesh* mes
4646
Solver* UNUSED(solver))
4747
: Laplacian(opt, loc, mesh_in), Acoef(0.0), Ccoef(1.0), Dcoef(1.0) {
4848

49-
bout::fft::checkZSerial(*localmesh, "`band` inversion");
49+
bout::fft::assertZSerial(*localmesh, "`band` inversion");
5050

5151
Acoef.setLocation(location);
5252
Ccoef.setLocation(location);

src/invert/laplace/impls/serial_tri/serial_tri.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ LaplaceSerialTri::LaplaceSerialTri(Options* opt, CELL_LOC loc, Mesh* mesh_in,
4040
Solver* UNUSED(solver))
4141
: Laplacian(opt, loc, mesh_in), A(0.0), C(1.0), D(1.0) {
4242

43-
bout::fft::checkZSerial(*localmesh, "`tri` inversion");
43+
bout::fft::assertZSerial(*localmesh, "`tri` inversion");
4444

4545
A.setLocation(location);
4646
C.setLocation(location);

src/invert/laplace/impls/spt/spt.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ LaplaceSPT::LaplaceSPT(Options* opt, const CELL_LOC loc, Mesh* mesh_in,
4646
Solver* UNUSED(solver))
4747
: Laplacian(opt, loc, mesh_in), Acoef(0.0), Ccoef(1.0), Dcoef(1.0) {
4848

49-
bout::fft::checkZSerial(*localmesh, "`spt` inversion");
49+
bout::fft::assertZSerial(*localmesh, "`spt` inversion");
5050

5151
Acoef.setLocation(location);
5252
Ccoef.setLocation(location);

0 commit comments

Comments
 (0)