Commit 55ded73
committed
Fix three bugs flagged in code review
1. check_non_newtonian() was never called from validate_simulation(),
so all non-Newtonian parameter constraints were silently skipped.
Also add required-field checks for K, nn, hb_m and an IGR prohibition.
2. Re_visc_nn was missing from private(...) in all four GPU_PARALLEL_LOOP
calls in m_viscous.fpp, causing thread race conditions on GPU builds.
3. igr + non_newtonian is now prohibited at validation time: q_prim_vf
sub-arrays are only allocated in the non-IGR path, so s_compute_dt
would dereference unallocated storage with any_non_newtonian=.true.1 parent 4813f74 commit 55ded73
2 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
| 886 | + | |
886 | 887 | | |
887 | 888 | | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
888 | 892 | | |
889 | 893 | | |
890 | 894 | | |
| |||
899 | 903 | | |
900 | 904 | | |
901 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
902 | 910 | | |
903 | 911 | | |
904 | 912 | | |
| |||
2111 | 2119 | | |
2112 | 2120 | | |
2113 | 2121 | | |
| 2122 | + | |
2114 | 2123 | | |
2115 | 2124 | | |
2116 | 2125 | | |
| |||
0 commit comments