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

Method construct_old_diff_source

Source/diffusion/Castro_diffusion.cpp:10–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <Diffusion.H>
9
10void
11Castro::construct_old_diff_source(MultiFab& source, MultiFab& state_in, Real time, Real dt)
12{
13 BL_PROFILE("Castro::construct_old_diff_source()");
14
15 amrex::ignore_unused(dt);
16
17 const Real strt_time = ParallelDescriptor::second();
18
19 MultiFab TempDiffTerm(grids, dmap, 1, 0);
20
21 add_temp_diffusion_to_source(source, state_in, TempDiffTerm, time);
22
23 if (verbose > 1)
24 {
25 const int IOProc = ParallelDescriptor::IOProcessorNumber();
26 amrex::Real run_time = ParallelDescriptor::second() - strt_time;
27 amrex::Real llevel = level;
28#ifdef BL_LAZY
29 Lazy::QueueReduction( [=] () mutable {
30#endif
31 ParallelDescriptor::ReduceRealMax(run_time,IOProc);
32
33 amrex::Print() << "Castro::construct_old_diff_source() time = " << run_time
34 << " on level " << llevel << "\n" << "\n";
35#ifdef BL_LAZY
36 });
37#endif
38 }
39}
40
41void
42Castro::construct_new_diff_source(MultiFab& source, MultiFab& state_old, MultiFab& state_new, Real time, Real dt)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected