Searched refs:hasBound (Results 1 – 2 of 2) sorted by relevance
1065 PetscBool hasBound, hasLower = PETSC_FALSE, hasUpper = PETSC_FALSE; in DMPlexSetSNESVariableBounds() local1069 PetscCall(DMHasBound(dm, &hasBound)); in DMPlexSetSNESVariableBounds()1070 if (!hasBound) PetscFunctionReturn(PETSC_SUCCESS); in DMPlexSetSNESVariableBounds()
8191 PetscErrorCode DMHasBound(DM dm, PetscBool *hasBound) in DMHasBound() argument8197 *hasBound = PETSC_FALSE; in DMHasBound()8205 if (lfunc || ufunc) *hasBound = PETSC_TRUE; in DMHasBound()8223 if (type == DM_BC_LOWER_BOUND || type == DM_BC_UPPER_BOUND) *hasBound = PETSC_TRUE; in DMHasBound()