Skip to content

[LIE] Fix a bug in LIE#HM when matrix is disabled for the flow process

wenqing requested to merge wenqing/ogs:bug_fixing_LIE into master

In the local assembler builder of LIE#HM, a local vector dofIndex_to_localIndex is defined with a size equal to the number of DOFs per node. When the matrix is disabled for the flow process (deactivate_matrix_in_flow = True), the size of the vector dofIndex_to_localIndex corresponds to the number of components of the displacement variable. However, the computation accesses that local vector using indices for all variables, including pressure. This leads to memory leakage.

This fixes #3495 (closed)

  1. Feature description was added to the changelog
  2. Tests covering your feature were added? A CTest is added.
  3. Any new feature or behaviour change was documented?
Edited by wenqing

Merge request reports