Skip to content

Commit

Permalink
fixes to make gpu tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
lroberts36 committed Aug 17, 2023
1 parent 0fb79fe commit c1f85ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/bvals/comms/bnd_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ int GetBufferSize(std::shared_ptr<MeshBlock> pmb, const NeighborBlock &nb,
const int isize = cb.ie(in) - cb.is(in) + 2;
const int jsize = cb.je(in) - cb.js(in) + 2;
const int ksize = cb.ke(in) - cb.ks(in) + 2;
return 8 * 8 * 16;
return (nb.ni.ox1 == 0 ? isize : Globals::nghost + 1) *
(nb.ni.ox2 == 0 ? jsize : Globals::nghost + 1) *
(nb.ni.ox3 == 0 ? ksize : Globals::nghost + 1) * v->GetDim(6) * v->GetDim(5) *
Expand Down
1 change: 0 additions & 1 deletion src/mesh/mesh-gmg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ void Mesh::BuildGMGHierarchy(int nbs, ParameterInput *pin, ApplicationInput *app
gmg_level_offset = std::min(dir_allowed_levels, gmg_level_offset);
}
}
gmg_level_offset = 0;

printf("Root grid nrb=(%i, %i) block_size=(%i, %i) level=%i\n", nrbx[0], nrbx[0],
block_size_default.nx(X1DIR), block_size_default.nx(X2DIR), root_level);
Expand Down

0 comments on commit c1f85ee

Please sign in to comment.