Skip to content

Commit

Permalink
check number of elements in oogs callback function
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kerkemeier committed Aug 9, 2020
1 parent cde0f8c commit 9a1a70b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,7 @@ elliptic_t* ellipticBuildMultigridLevel(elliptic_t* baseElliptic, int Nc, int Nf
if(options.compareArgs("THREAD MODEL", "OPENMP")) oogsMode = OOGS_DEFAULT;
auto callback = [&]() // hardwaire to FP64 const coeff
{
if(mesh->NlocalGatherElements == 0) return;
occa::kernel &partialAxKernel = elliptic->partialAxKernel;
partialAxKernel(mesh->NlocalGatherElements,
mesh->o_localGatherElementList,
Expand Down
1 change: 1 addition & 0 deletions src/libP/solvers/elliptic/src/ellipticSolveSetup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ void ellipticSolveSetup(elliptic_t* elliptic, occa::properties &kernelInfo)
if(options.compareArgs("THREAD MODEL", "OPENMP")) oogsMode = OOGS_DEFAULT;
auto callback = [&]() // hardwired to FP64 variable coeff
{
if(mesh->NlocalGatherElements == 0) return;
occa::kernel &partialAxKernel = elliptic->partialAxKernel;
if(elliptic->blockSolver)
partialAxKernel(mesh->NlocalGatherElements,
Expand Down

0 comments on commit 9a1a70b

Please sign in to comment.