pecos / tps

Torch Plasma Simulator
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Allow _GPU_ code path on cpu #130

Closed trevilo closed 2 years ago

trevilo commented 2 years ago

Purpose

In #128, we refactored much of the _GPU_ code path to be valid when run on a cpu, but functions associated with faces shared across mpi ranks were not touched. Because of this, the _GPU_ code path was not correct on the cpu with mpi parallelism. This PR is intended to fix this issue.

Approach

The approach is the same as in #128, just applied to the shared face functions, e.g., DGNonLinearForm::sharedFaceIntegration_gpu.