| 4 | using namespace amrex; |
| 5 | |
| 6 | void |
| 7 | Castro::construct_old_ext_source(MultiFab& source, const MultiFab& state_in, Real time, Real dt) |
| 8 | { |
| 9 | const Real strt_time = ParallelDescriptor::second(); |
| 10 | |
| 11 | if (!add_ext_src) { |
| 12 | return; |
| 13 | } |
| 14 | |
| 15 | MultiFab ext_src(grids, dmap, source.nComp(), 0); |
| 16 | |
| 17 | ext_src.setVal(0.0); |
| 18 | |
| 19 | fill_ext_source(time, dt, state_in, state_in, ext_src); |
| 20 | |
| 21 | Real mult_factor = 1.0; |
| 22 | |
| 23 | MultiFab::Saxpy(source, mult_factor, ext_src, 0, 0, source.nComp(), 0); // NOLINT(readability-suspicious-call-argument) |
| 24 | |
| 25 | if (verbose > 1) |
| 26 | { |
| 27 | const int IOProc = ParallelDescriptor::IOProcessorNumber(); |
| 28 | amrex::Real run_time = ParallelDescriptor::second() - strt_time; |
| 29 | |
| 30 | #ifdef BL_LAZY |
| 31 | Lazy::QueueReduction( [=] () mutable { |
| 32 | #endif |
| 33 | ParallelDescriptor::ReduceRealMax(run_time,IOProc); |
| 34 | |
| 35 | amrex::Print() << "Castro::construct_old_ext_source() time = " << run_time << "\n" << "\n"; |
| 36 | #ifdef BL_LAZY |
| 37 | }); |
| 38 | #endif |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | |
| 43 |
nothing calls this directly
no outgoing calls
no test coverage detected