Commit 1cc315d
Simplify hyper_cleaning init and use size() for IB broadcast
- Remove redundant if(p>0) branch in psi initialization: z_cc(0)=0
in 2D, so the 3D formula produces identical results in both cases.
- Replace hardcoded 3 with size(patch_ib(i)%VAR) in MPI_BCAST for
vel/angular_vel/angles, consistent with other IB broadcasts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8443331 commit 1cc315d
2 files changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
| 793 | + | |
798 | 794 | | |
799 | 795 | | |
800 | 796 | | |
| |||
0 commit comments