Skip to main content

GetMaterialPointer

Get the pointer to the UserFunction for the given material name.

@GetMethods

Interface

INTERFACE
MODULE FUNCTION GetMaterialPointer(obj, name) RESULT(matPtr)
CLASS(AbstractMaterial_), INTENT(INOUT) :: obj
CHARACTER(*), INTENT(IN) :: name
TYPE(UserFunction_), POINTER :: matPtr
END FUNCTION GetMaterialPointer
END INTERFACE
caution

Make sure that the material name is present. You can check it by using the method IsMaterialPresent.