Skip to main content

GetSym

Make sparse matrix symmetric.

Calling example:

CALL GetSym(CSRSparsity_::obj, CSRSparsity_::symObj, char(1)::from)
INTERFACE
MODULE SUBROUTINE GetSym(obj, symObj, from)
TYPE(CSRSparsity_), INTENT(IN) :: obj
TYPE(CSRSparsity_), INTENT(INOUT) :: symObj
CHARACTER(1), INTENT(IN) :: from
END SUBROUTINE GetSym
END INTERFACE
  • If from="L", then lower part of csrmatrix is used
  • If from="U", then upper part of csrmatrix is used
INTERFACE
MODULE SUBROUTINE GetSym(obj, from)
TYPE(CSRSparsity_), INTENT(INOUT) :: obj
CHARACTER(1), INTENT(IN) :: from
END SUBROUTINE GetSym
END INTERFACE
  • If from="L", then lower part of csrmatrix is used
  • If from="U", then upper part of csrmatrix is used