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

Method FluxRegCrseInit

Source/driver/Castro.cpp:2601–2629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2599}
2600
2601void
2602Castro::FluxRegCrseInit() {
2603 BL_PROFILE("Castro::FluxRegCrseInit");
2604
2605 if (level == parent->finestLevel()) {
2606 return;
2607 }
2608
2609 Castro& fine_level = getLevel(level+1);
2610
2611 for (int i = 0; i < AMREX_SPACEDIM; ++i) {
2612 fine_level.flux_reg.CrseInit(*fluxes[i], i, 0, 0, NUM_STATE, flux_crse_scale);
2613 }
2614
2615#if (AMREX_SPACEDIM <= 2)
2616 if (!Geom().IsCartesian()) {
2617 fine_level.pres_reg.CrseInit(P_radial, 0, 0, 0, 1, pres_crse_scale);
2618 }
2619#endif
2620
2621#ifdef RADIATION
2622 if (Radiation::rad_hydro_combined) {
2623 for (int i = 0; i < AMREX_SPACEDIM; ++i) {
2624 fine_level.rad_flux_reg.CrseInit(*rad_fluxes[i], i, 0, 0, Radiation::nGroups, flux_crse_scale);
2625 }
2626 }
2627#endif
2628
2629}
2630
2631
2632void

Callers 1

Castro_advance.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected