Skip to content

Commit

Permalink
fix ptheta reflux
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Nov 15, 2024
1 parent b11b943 commit fc7cfce
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2875,9 +2875,9 @@ Castro::reflux (int crse_level, int fine_level, bool in_post_timestep)

reg = &getLevel(lev).pres_reg;

reg->ClearInternalBorders(crse_lev.geom);
Reg->ClearInternalBorders(crse_lev.geom);

reg->Reflux(crse_state, crse_lev.volume, 1.0, 0, UMX, 1, crse_lev.geom);
reg->Reflux(crse_state, crse_lev.volume, 0, 1.0, 0, UMX, 1, crse_lev.geom);

if (update_sources_after_reflux || !in_post_timestep) {

Expand All @@ -2899,19 +2899,10 @@ Castro::reflux (int crse_level, int fine_level, bool in_post_timestep)

}

reg->setVal(0.0);

}
#endif

#if (AMREX_SPACEDIM == 2)
if (Geom().IsSPHERICAL()) {

reg = &getLevel(lev).pres_reg;

reg->ClearInternalBorders(crse_lev.geom);

reg->Reflux(crse_state, crse_lev.volume, 1.0, 0, UMY, 1, crse_lev.geom);
reg->Reflux(crse_state, crse_lev.volume, 1, 1.0, 0, UMY, 1, crse_lev.geom);

if (update_sources_after_reflux || !in_post_timestep) {

Expand All @@ -2933,11 +2924,15 @@ Castro::reflux (int crse_level, int fine_level, bool in_post_timestep)

}

}
#endif

reg->setVal(0.0);

}
#endif


#ifdef RADIATION

// This follows the same logic as the pure hydro fluxes; see above for details.
Expand Down

0 comments on commit fc7cfce

Please sign in to comment.