Lines Matching refs:honee
23 @param[out] honee The initialized `Honee` object
25 PetscErrorCode HoneeInit(MPI_Comm comm, Honee *honee) {
36 *honee = honee_;
43 @param[in] honee Object to be destroyed
45 PetscErrorCode HoneeDestroy(Honee *honee) {
46 Honee honee_ = *honee;
118 *honee = NULL;
127 @param[in] honee `Honee` object to save pointer to
132 PetscErrorCode HoneeSetContainer(Honee honee, const char key[], void *container, PetscCtxDestroyFn *container_destroy) {
136 PetscCall(PetscObjectContainerQuery((PetscObject)honee, key, &test_data));
137 PetscCheck(test_data == NULL, PetscObjectComm((PetscObject)honee), PETSC_ERR_SUP, "Cannot set container with key '%s'; key is already in use.",
140 PetscCall(PetscObjectContainerCompose((PetscObject)honee, key, container, container_destroy));
147 This will error out if `honee` does not have a container identified by `key`.
149 @param[in] honee `Honee` object to retrieve pointer from
153 PetscErrorCode HoneeGetContainer(Honee honee, const char key[], void *container) {
155 PetscCall(PetscObjectContainerQuery((PetscObject)honee, key, container));
156 PetscCheck(*(void **)container != NULL, PetscObjectComm((PetscObject)honee), PETSC_ERR_SUP, "Container with key '%s' not found.", key);
163 @param[in] honee `Honee` object to query for key
167 PetscErrorCode HoneeHasContainer(Honee honee, const char key[], PetscBool *has_key) {
171 PetscCall(PetscObjectContainerQuery((PetscObject)honee, key, &test_data));