Skip to content

Commit

Permalink
Merge pull request #178 from lanl/brryan/rad_compile_fix
Browse files Browse the repository at this point in the history
Fix GPU compilation for Monte Carlo
  • Loading branch information
brryan authored Jul 27, 2023
2 parents b236219 + 7eafcb2 commit 1e24d97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion scripts/python/plot_torus_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ def plot_frame(
parser.add_argument(
"--coords", type=str, default="cartesian", help="Coordinates to plot in"
)
parser.add_argument(
"--rlim", type=float, default=40., help="Outer radius at which to plot"
)
parser.add_argument(
"files", type=str, nargs="+", help="Files to take a snapshot of"
)
Expand All @@ -466,4 +469,4 @@ def plot_frame(
matplotlib.use("Agg")

for i, fname in enumerate(args.files):
plot_frame(i, fname, args.savefig, coords=args.coords)
plot_frame(i, fname, args.savefig, coords=args.coords, rlim=args.rlim)
2 changes: 0 additions & 2 deletions src/radiation/monte_carlo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Real GetWeight(const Real wgtC, const Real nu) { return wgtC / nu; }
/**
* Integrate Jtot
**/
KOKKOS_INLINE_FUNCTION
void ComputeTotalEmissivity(Mesh *pmesh) {
auto rad = pmesh->packages.Get("radiation");
auto opac = pmesh->packages.Get("opacity");
Expand Down Expand Up @@ -83,7 +82,6 @@ void ComputeTotalEmissivity(Mesh *pmesh) {
rad->UpdateParam<Real>("Jtot", reduction::Sum(Jtot));
}

KOKKOS_INLINE_FUNCTION
void SetWeight(Mesh *pmesh) {
auto &phoebus_pkg = pmesh->packages.Get("phoebus");
auto &unit_conv = phoebus_pkg->Param<phoebus::UnitConversions>("unit_conv");
Expand Down

0 comments on commit 1e24d97

Please sign in to comment.