Skip to content

Commit a92ffc1

Browse files
author
Ben Prather
committed
Unwind patches and satisfy parameter cops. Thin disk runs but not multi-block
1 parent 4ddd32c commit a92ffc1

9 files changed

Lines changed: 63 additions & 405 deletions

external/parthenon

Submodule parthenon updated 175 files

external/patches/parthenon-modern-oneblock.patch

Lines changed: 0 additions & 101 deletions
This file was deleted.

external/patches/parthenon-no-amrtag.patch

Lines changed: 0 additions & 207 deletions
This file was deleted.

external/patches/parthenon-remove-hangdetect.patch

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/src/interface/swarm_device_context.hpp b/src/interface/swarm_device_context.hpp
2+
index e438dcf53..1196aeee5 100644
3+
--- a/src/interface/swarm_device_context.hpp
4+
+++ b/src/interface/swarm_device_context.hpp
5+
@@ -62,6 +62,11 @@ class SwarmDeviceContext {
6+
int j = static_cast<int>(std::floor((y - y_min_) / ((y_max_ - y_min_) / 2.))) + 1;
7+
int k = static_cast<int>(std::floor((z - z_min_) / ((z_max_ - z_min_) / 2.))) + 1;
8+
9+
+ // Allow particles/rays past the outer boundary.
10+
+ // If this is the last block, the "domain" stretches forever
11+
+ if (x_max_ == x_max_global_)
12+
+ i = 1;
13+
+
14+
// Particle is on neither this block nor a neighboring block
15+
if (i < 0 || i > 3 || ((j < 0 || j > 3) && ndim_ > 1) ||
16+
((k < 0 || k > 3) && ndim_ > 2)) {

external/patches/parthenon-sycl.patch

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)