Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get tests up to date #20

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
5 changes: 3 additions & 2 deletions tests/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
*/

template<class T, int stencil> void timeit(std::array<int32_t, 3> globalSize, std::array<bool, 3> isPeriodic, int iterations){
double t1,t2;
FsGrid<T ,stencil> testGrid(globalSize, MPI_COMM_WORLD, isPeriodic);
double t1,t2;
FsGridCouplingInformation gridCoupling;
FsGrid<T ,stencil> testGrid(globalSize, MPI_COMM_WORLD, isPeriodic,gridCoupling);
int rank,size;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
Expand Down
5 changes: 2 additions & 3 deletions tests/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ int main(int argc, char** argv) {
// Create a 8×8 Testgrid
std::array<int32_t, 3> globalSize{20,20,1};
std::array<bool, 3> isPeriodic{false,false,true};
FsGridCouplingInformation gridCoupling;
{
FsGrid<int,1> testGrid(globalSize, MPI_COMM_WORLD, isPeriodic);
FsGrid<int,1> testGrid(globalSize, MPI_COMM_WORLD, isPeriodic,gridCoupling);
/*
if(rank == 0) {
std::cerr << " --- Test task mapping functions ---" << std::endl;
Expand Down Expand Up @@ -190,9 +191,7 @@ int main(int argc, char** argv) {
}
}
}



MPI_Finalize();

return 0;
Expand Down