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

Method construct_new_source

Source/sources/Castro_sources.cpp:348–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void
349Castro::construct_new_source(int src, MultiFab& source, MultiFab& state_old, MultiFab& state_new, Real time, Real dt)
350{
351 BL_PROFILE("Castro::construct_new_source()");
352
353 BL_ASSERT(src >= 0 && src < num_src);
354
355 switch(src) {
356
357#ifdef SPONGE
358 case sponge_src:
359 construct_new_sponge_source(source, state_old, state_new, time, dt);
360 break;
361#endif
362
363 case ext_src:
364 construct_new_ext_source(source, state_old, state_new, time, dt);
365 break;
366
367#ifdef MHD
368 case thermo_src:
369 construct_new_thermo_source(source, state_old, state_new, time, dt);
370 break;
371#endif
372
373 case geom_src:
374 construct_new_geom_source(source, state_old, state_new, time, dt);
375 break;
376
377#ifdef DIFFUSION
378 case diff_src:
379 construct_new_diff_source(source, state_old, state_new, time, dt);
380 break;
381#endif
382
383#ifdef HYBRID_MOMENTUM
384 case hybrid_src:
385 construct_new_hybrid_source(source, state_old, state_new, time, dt);
386 break;
387#endif
388
389#ifdef GRAVITY
390 case grav_src:
391 construct_new_gravity_source(source, state_old, state_new, time, dt);
392 break;
393#endif
394
395#ifdef ROTATION
396 case rot_src:
397 construct_new_rotation_source(source, state_old, state_new, time, dt);
398 break;
399#endif
400
401 default:
402 break;
403
404 } // end switch
405}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected