Commit 7cb0512
Prohibit hyper_cleaning in 2D simulations (p == 0)
The psi field used by hyperbolic cleaning is initialized with a
3D loop that accesses z_cc, which is out-of-bounds when p == 0.
The 1D prohibition already existed; extend it to 2D.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3b87205 commit 7cb0512
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
| 1033 | + | |
1033 | 1034 | | |
1034 | 1035 | | |
1035 | 1036 | | |
| |||
1041 | 1042 | | |
1042 | 1043 | | |
1043 | 1044 | | |
| 1045 | + | |
| 1046 | + | |
1044 | 1047 | | |
1045 | 1048 | | |
1046 | 1049 | | |
| |||
0 commit comments