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

Method construct_old_source

Source/sources/Castro_sources.cpp:288–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void
289Castro::construct_old_source(int src, MultiFab& source, MultiFab& state_in, Real time, Real dt)
290{
291 BL_PROFILE("Castro::construct_old_source()");
292
293 BL_ASSERT(src >= 0 && src < num_src);
294
295 switch(src) {
296
297#ifdef SPONGE
298 case sponge_src:
299 construct_old_sponge_source(source, state_in, time, dt);
300 break;
301#endif
302
303 case ext_src:
304 construct_old_ext_source(source, state_in, time, dt);
305 break;
306
307 case thermo_src:
308 construct_old_thermo_source(source, state_in, time, dt);
309 break;
310
311 case geom_src:
312 construct_old_geom_source(source, state_in, time, dt);
313 break;
314
315#ifdef DIFFUSION
316 case diff_src:
317 if (!(time_integration_method == SpectralDeferredCorrections)) {
318 // for MOL or SDC, we'll compute a diffusive flux in the MOL routine
319 construct_old_diff_source(source, state_in, time, dt);
320 }
321 break;
322#endif
323
324#ifdef HYBRID_MOMENTUM
325 case hybrid_src:
326 construct_old_hybrid_source(source, state_in, time, dt);
327 break;
328#endif
329
330#ifdef GRAVITY
331 case grav_src:
332 construct_old_gravity_source(source, state_in, time, dt);
333 break;
334#endif
335
336#ifdef ROTATION
337 case rot_src:
338 construct_old_rotation_source(source, state_in, time, dt);
339 break;
340#endif
341
342 default:
343 break;
344
345 } // end switch

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected