| c32b0260 | 17-Jun-2022 |
Jed Brown <jed@jedbrown.org> |
examples/fluids: skip legacy preallocation (we use COO)
When using -snes_fd_color or running a model that doesn't provide a Jacobian (in which case coloring will be used automatically), we still nee
examples/fluids: skip legacy preallocation (we use COO)
When using -snes_fd_color or running a model that doesn't provide a Jacobian (in which case coloring will be used automatically), we still need to preallocate.
show more ...
|
| 544be873 | 10-Jul-2022 |
Jed Brown <jed@jedbrown.org> |
examples/fluids: use shell for Amat, block diagonal aij* for Pmat
This adds two independent options for tuning solves.
-amat_type shell: causes Amat and Pmat to be different matrices, with shell us
examples/fluids: use shell for Amat, block diagonal aij* for Pmat
This adds two independent options for tuning solves.
-amat_type shell: causes Amat and Pmat to be different matrices, with shell used for Amat. It's technically possible to use other matrix formats here.
-pmat_pbdiagonal: causes Pmat to be assembled as point-block diagonal. Note that this usually only makes sense in addition to -amat_type shell because otherwise your KSP is only working with the point-block diagonal.
show more ...
|
| 3796c488 | 05-Jul-2022 |
Jed Brown <jed@jedbrown.org> |
examples/fluids: use DMGetCellCoordinateDM to handle periodicity
Note that without -dm_sparse_localize 0 (default=1), the cell DM will only have cells with localized coordinates (and there is no vec
examples/fluids: use DMGetCellCoordinateDM to handle periodicity
Note that without -dm_sparse_localize 0 (default=1), the cell DM will only have cells with localized coordinates (and there is no vector representation that contains both).
show more ...
|