Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions test/maxwell/TestNonStandardFDTDSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ int main(int argc, char* argv[]) {
std::array<bool, 3> isParallel;
isParallel.fill(true);

// periodic layout
bool isAllPeriodic = true;

// unit box
ippl::Vector<scalar, 3> extents{scalar(1), scalar(1), scalar(1)};
ippl::Vector<scalar, 3> hx;
Expand All @@ -65,7 +68,7 @@ int main(int argc, char* argv[]) {
ippl::UniformCartesian<scalar, 3> mesh(owned, hx, origin);

// all parallel layout, standard domain, normal axis order
ippl::FieldLayout<3> layout(MPI_COMM_WORLD, owned, isParallel);
ippl::FieldLayout<3> layout(MPI_COMM_WORLD, owned, isParallel, isAllPeriodic);

// Define the source and field types
SourceField source(mesh, layout);
Expand Down Expand Up @@ -215,4 +218,4 @@ int main(int argc, char* argv[]) {
<< Kokkos::sqrt(sum_error / sum_norm) << "\n";
}
ippl::finalize();
}
}
7 changes: 5 additions & 2 deletions test/maxwell/TestNonStandardFDTDSolver_convergence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ void compute_convergence(char direction, unsigned int np, std::string fname) {
std::array<bool, 3> isParallel;
isParallel.fill(true);

// periodic layout
bool isAllPeriodic = true;

// unit box
ippl::Vector<scalar, 3> hx;
for (unsigned d = 0; d < 3; d++) {
Expand All @@ -56,7 +59,7 @@ void compute_convergence(char direction, unsigned int np, std::string fname) {
ippl::UniformCartesian<scalar, 3> mesh(owned, hx, origin);

// all parallel layout, standard domain, normal axis order
ippl::FieldLayout<3> layout(MPI_COMM_WORLD, owned, isParallel);
ippl::FieldLayout<3> layout(MPI_COMM_WORLD, owned, isParallel, isAllPeriodic);

// Define the source and field types
SourceField source(mesh, layout);
Expand Down Expand Up @@ -187,4 +190,4 @@ int main(int argc, char* argv[]) {
}
}
ippl::finalize();
}
}
Loading