| 346 | } |
| 347 | |
| 348 | void |
| 349 | Castro::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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected