Commit 7d79cb1
committed
Just use DIFFERENT_NONZERO_PATTERN in PetscMatrix::operator=
Using MatGetInfo, particularly in the way it was being used, to
compare the nonzero pattern is brittle. There are several issues
- Likely the NONZERO_PATTERN is a function of zeroes used, not alloc'd
- Global nz comparison is obviously fraught
- Even comparing nz on process and doing a parallel min is fraught since
you could have mismatches for different rows that balance out1 parent 2f21e94 commit 7d79cb1
1 file changed
Lines changed: 6 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1225 | 1225 | | |
1226 | 1226 | | |
1227 | 1227 | | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1233 | 1232 | | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
| 1233 | + | |
1240 | 1234 | | |
1241 | 1235 | | |
1242 | 1236 | | |
1243 | 1237 | | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
| 1238 | + | |
1249 | 1239 | | |
1250 | 1240 | | |
1251 | 1241 | | |
| |||
0 commit comments