MCPcopy Create free account
hub / github.com/AMReX-Astro/Castro / FluxRegFineAdd

Method FluxRegFineAdd

Source/driver/Castro.cpp:2632–2659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2630
2631
2632void
2633Castro::FluxRegFineAdd() {
2634
2635 BL_PROFILE("Castro::FluxRegFineAdd()");
2636
2637 if (level == 0) {
2638 return;
2639 }
2640
2641 for (int i = 0; i < AMREX_SPACEDIM; ++i) {
2642 flux_reg.FineAdd(*fluxes[i], i, 0, 0, NUM_STATE, flux_fine_scale);
2643 }
2644
2645#if (AMREX_SPACEDIM <= 2)
2646 if (!Geom().IsCartesian()) {
2647 getLevel(level).pres_reg.FineAdd(P_radial, 0, 0, 0, 1, pres_fine_scale);
2648 }
2649#endif
2650
2651#ifdef RADIATION
2652 if (Radiation::rad_hydro_combined) {
2653 for (int i = 0; i < AMREX_SPACEDIM; ++i) {
2654 getLevel(level).rad_flux_reg.FineAdd(*rad_fluxes[i], i, 0, 0, Radiation::nGroups, flux_fine_scale);
2655 }
2656 }
2657#endif
2658
2659}
2660
2661// reflux() synchronizes fluxes between levels and has two modes of operation.
2662//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected