Skip to content

Commit

Permalink
Fix bug for isothermal EB on GPU (#240)
Browse files Browse the repository at this point in the history
* use proper dx in flux divergence
  • Loading branch information
baperry2 authored Sep 8, 2023
1 parent df37020 commit a7364cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/PeleLMUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ void PeleLM::intFluxDivergenceLevelEB(int lev,
geom[lev].GetVolume(volume);

// Get area
const Real* dx = Geom(lev).CellSize();
const GpuArray<Real, AMREX_SPACEDIM> dx = Geom(lev).CellSizeArray();
#if ( AMREX_SPACEDIM == 2 )
Real areax = dx[1];
Real areay = dx[0];
Expand Down

0 comments on commit a7364cb

Please sign in to comment.