Skip to content

Commit

Permalink
update apply_source flag and add geometric source terms for 1d spherical
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Nov 13, 2024
1 parent b38a018 commit 6766e37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Source/sources/Castro_geom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Castro::construct_old_geom_source(MultiFab& source, MultiFab& state_in, Real tim
return;
}

#if AMREX_SPACEDIM == 2
#if AMREX_SPACEDIM <= 2
const Real strt_time = ParallelDescriptor::second();

MultiFab geom_src(grids, dmap, source.nComp(), 0);
Expand Down Expand Up @@ -83,7 +83,7 @@ Castro::construct_new_geom_source(MultiFab& source, MultiFab& state_old,
return;
}

#if AMREX_SPACEDIM == 2
#if AMREX_SPACEDIM <= 2
const Real strt_time = ParallelDescriptor::second();

MultiFab geom_src(grids, dmap, source.nComp(), 0);
Expand Down
6 changes: 3 additions & 3 deletions Source/sources/Castro_sources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ Castro::source_flag(int src)
#endif

case geom_src:
if (geom.Coord() == 1) {
return true;
} else {
if (geom.Coord() == 0) {
return false;
} else {
return true;
}

#ifdef DIFFUSION
Expand Down

0 comments on commit 6766e37

Please sign in to comment.