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

Method swapTimeLevels

Source/gravity/Gravity.cpp:382–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382void
383Gravity::swapTimeLevels (int level)
384{
385 BL_PROFILE("Gravity::swapTimeLevels()");
386
387 if (gravity::gravity_type == "PoissonGrav") {
388 for (int n=0; n < AMREX_SPACEDIM; n++) {
389 std::swap(grad_phi_prev[level][n], grad_phi_curr[level][n]);
390 grad_phi_curr[level][n]->setVal(1.e50);
391 }
392 }
393}
394
395void
396Gravity::solve_for_phi (int level,

Callers 3

Castro_advance.cppFile · 0.80
subcycle_advance_ctuMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected