Skip to content

Commit

Permalink
Merge branch 'development' into amrex_sync
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jan 22, 2024
2 parents 9da7b8f + 29c5f4d commit eb98554
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ updates:
directory: "/"
schedule:
interval: "weekly"
target-branch: "development"
10 changes: 10 additions & 0 deletions Docs/source/mpi_plus_x.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ To enable this, compile with::
USE_OMP = FALSE
USE_CUDA = TRUE

.. note::

For recent GPUs, like the NVIDIA RTX 4090, you may need to change
the default CUDA architecture. This can be done by adding:

.. code::
CUDA_ARCH=89
to the ``make`` line or ``GNUmakefile``.

AMD GPUs
--------
Expand Down
12 changes: 6 additions & 6 deletions Exec/science/Detonation/problem_bc_fill.H
Original file line number Diff line number Diff line change
Expand Up @@ -70,32 +70,32 @@ void problem_bc_fill(int i, int j, int k,
}
else if (i > domhi[0] && (bcs(0).hi(0) != amrex::BCType::reflect_odd &&
bcs(0).hi(0) != amrex::BCType::int_dir &&
bcs(0).hi(0) != amrex::BCType::reflect_odd)) {
bcs(0).hi(0) != amrex::BCType::reflect_even)) {
do_ambient_fill = true;
}

if (AMREX_SPACEDIM >= 2) {
if (j < domlo[1] && (bcs(0).lo(1) != amrex::BCType::reflect_odd &&
bcs(0).lo(1) != amrex::BCType::int_dir &&
bcs(0).lo(1) != amrex::BCType::reflect_odd)) {
bcs(0).lo(1) != amrex::BCType::reflect_even)) {
do_ambient_fill = true;
}
else if (j > domhi[1] && (bcs(0).hi(1) != amrex::BCType::reflect_odd &&
bcs(0).hi(1) != amrex::BCType::int_dir &&
bcs(0).hi(1) != amrex::BCType::reflect_odd)) {
bcs(0).hi(1) != amrex::BCType::reflect_even)) {
do_ambient_fill = true;
}
}

if (AMREX_SPACEDIM == 3) {
if (k < domlo[2] && (bcs(0).lo(2) != amrex::BCType::reflect_odd &&
bcs(0).lo(2) != amrex::BCType::int_dir &&
bcs(0).lo(2) != amrex::BCType::reflect_odd)) {
bcs(0).lo(2) != amrex::BCType::reflect_even)) {
do_ambient_fill = true;
}
else if (k > domhi[2] && (bcs(0).hi(2) != amrex::BCType::reflect_odd &&
bcs(0).hi(2) != amrex::BCType::int_dir &&
bcs(0).hi(2) != amrex::BCType::reflect_odd)) {
bcs(0).hi(2) != amrex::BCType::reflect_even)) {
do_ambient_fill = true;
}
}
Expand Down

0 comments on commit eb98554

Please sign in to comment.