Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Aug 31, 2019
1 parent 719d5e9 commit e80400f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Source/driver/Castro_advance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,16 @@ Castro::advance (Real time,
const Box& obx = mfi.growntilebox(1);

if (sdc_order == 4) {

const int* domain_lo = geom.Domain().loVect();
const int* domain_hi = geom.Domain().hiVect();

// convert S_new to cell-centers
U_center.resize(obx, NUM_STATE);
ca_make_cell_center(BL_TO_FORTRAN_BOX(obx),
BL_TO_FORTRAN_FAB(Sborder[mfi]),
BL_TO_FORTRAN_FAB(U_center));
BL_TO_FORTRAN_FAB(U_center),
AMREX_INT_ANYD(domain_lo), AMREX_INT_ANYD(domain_hi));

// pass in the reaction source and state at centers, including one ghost cell
// and derive everything that is needed including 1 ghost cell
Expand All @@ -117,7 +122,8 @@ Castro::advance (Real time,

// convert R_new from centers to averages in place
ca_make_fourth_in_place(BL_TO_FORTRAN_BOX(bx),
BL_TO_FORTRAN_FAB(R_center));
BL_TO_FORTRAN_FAB(R_center),
AMREX_INT_ANYD(domain_lo), AMREX_INT_ANYD(domain_hi));


// store
Expand Down

0 comments on commit e80400f

Please sign in to comment.