Commit a8f0d84
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 22304a1 commit a8f0d84
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1029 | 1029 | | |
1030 | 1030 | | |
1031 | 1031 | | |
| 1032 | + | |
1032 | 1033 | | |
1033 | 1034 | | |
1034 | 1035 | | |
| |||
1040 | 1041 | | |
1041 | 1042 | | |
1042 | 1043 | | |
| 1044 | + | |
| 1045 | + | |
1043 | 1046 | | |
1044 | 1047 | | |
1045 | 1048 | | |
| |||
0 commit comments