| 69c11d05 | 25-Mar-2022 |
Vaclav Hapla <vaclav.hapla@erdw.ethz.ch> |
PetscSection: Lazy maxDof calculation.
maxDof is no more calculated in PetscSectionSetUp() but only once it is needed, i.e. in PetscSectionGetMaxDof().
This way numbers PetscSectionGetMaxDof() retu
PetscSection: Lazy maxDof calculation.
maxDof is no more calculated in PetscSectionSetUp() but only once it is needed, i.e. in PetscSectionGetMaxDof().
This way numbers PetscSectionGetMaxDof() returns are always up to date.
The number is stashed. The stashed value gets invalidated by calling PetscSectionInvalidateMaxDof_Internal().
show more ...
|