| 39 | } |
| 40 | |
| 41 | void |
| 42 | Castro::construct_new_diff_source(MultiFab& source, MultiFab& state_old, MultiFab& state_new, Real time, Real dt) |
| 43 | { |
| 44 | BL_PROFILE("Castro::construct_new_diff_source()"); |
| 45 | |
| 46 | const Real strt_time = ParallelDescriptor::second(); |
| 47 | |
| 48 | MultiFab TempDiffTerm(grids, dmap, 1, 0); |
| 49 | |
| 50 | Real mult_factor = 0.5; |
| 51 | |
| 52 | add_temp_diffusion_to_source(source, state_new, TempDiffTerm, time, mult_factor); |
| 53 | |
| 54 | // Time center the source term. |
| 55 | |
| 56 | mult_factor = -0.5; |
| 57 | Real old_time = time - dt; |
| 58 | |
| 59 | add_temp_diffusion_to_source(source, state_old, TempDiffTerm, old_time, mult_factor); |
| 60 | |
| 61 | if (verbose > 1) |
| 62 | { |
| 63 | const int IOProc = ParallelDescriptor::IOProcessorNumber(); |
| 64 | amrex::Real run_time = ParallelDescriptor::second() - strt_time; |
| 65 | amrex::Real llevel = level; |
| 66 | |
| 67 | #ifdef BL_LAZY |
| 68 | Lazy::QueueReduction( [=] () mutable { |
| 69 | #endif |
| 70 | ParallelDescriptor::ReduceRealMax(run_time,IOProc); |
| 71 | |
| 72 | amrex::Print() << "Castro::construct_new_diff_source() time = " << run_time |
| 73 | << " on level " << llevel << "\n" << "\n"; |
| 74 | #ifdef BL_LAZY |
| 75 | }); |
| 76 | #endif |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | // ********************************************************************************************** |
| 81 |
nothing calls this directly
no outgoing calls
no test coverage detected