Lines Matching full:name

318 …m)->comm, PETSC_ERR_ARG_WRONGSTATE, "DM still has global Vec named '%s' checked out", nlink->name);  in DMClearNamedGlobalVectors()
319 PetscCall(PetscFree(nlink->name)); in DMClearNamedGlobalVectors()
348 …COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "DM still has local Vec named '%s' checked out", nlink->name); in DMClearNamedLocalVectors()
349 PetscCall(PetscFree(nlink->name)); in DMClearNamedLocalVectors()
363 - name - unique name for `Vec`
372 PetscErrorCode DMHasNamedGlobalVector(DM dm, const char *name, PetscBool *exists) in DMHasNamedGlobalVector() argument
378 PetscAssertPointer(name, 2); in DMHasNamedGlobalVector()
383 PetscCall(PetscStrcmp(name, link->name, &match)); in DMHasNamedGlobalVector()
399 - name - unique name for `X`
407 If a `Vec` with the given name does not exist, it is created.
411 PetscErrorCode DMGetNamedGlobalVector(DM dm, const char *name, Vec *X) in DMGetNamedGlobalVector() argument
417 PetscAssertPointer(name, 2); in DMGetNamedGlobalVector()
422 PetscCall(PetscStrcmp(name, link->name, &match)); in DMGetNamedGlobalVector()
426 …cObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONGSTATE, "Vec name '%s' already checked out", name); in DMGetNamedGlobalVector()
436 PetscCall(PetscStrallocpy(name, &link->name)); in DMGetNamedGlobalVector()
454 . name - name under which `X` was gotten
461 PetscErrorCode DMRestoreNamedGlobalVector(DM dm, const char *name, Vec *X) in DMRestoreNamedGlobalVector() argument
467 PetscAssertPointer(name, 2); in DMRestoreNamedGlobalVector()
473 PetscCall(PetscStrcmp(name, link->name, &match)); in DMRestoreNamedGlobalVector()
478 …cObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONGSTATE, "Vec name '%s' was not checked out", name); in DMRestoreNamedGlobalVector()
479 …dm), PETSC_ERR_ARG_INCOMP, "Attempt to restore Vec name '%s', but Vec does not match the cache", n… in DMRestoreNamedGlobalVector()
488 …bjectComm((PetscObject)dm), PETSC_ERR_ARG_INCOMP, "Could not find Vec name '%s' to restore", name); in DMRestoreNamedGlobalVector()
498 - name - unique name for `Vec`
506 If a `Vec` with the given name does not exist, it is created.
510 PetscErrorCode DMHasNamedLocalVector(DM dm, const char *name, PetscBool *exists) in DMHasNamedLocalVector() argument
516 PetscAssertPointer(name, 2); in DMHasNamedLocalVector()
521 PetscCall(PetscStrcmp(name, link->name, &match)); in DMHasNamedLocalVector()
537 - name - unique name for `X`
545 If a `Vec` with the given name does not exist, it is created.
549 PetscErrorCode DMGetNamedLocalVector(DM dm, const char *name, Vec *X) in DMGetNamedLocalVector() argument
555 PetscAssertPointer(name, 2); in DMGetNamedLocalVector()
560 PetscCall(PetscStrcmp(name, link->name, &match)); in DMGetNamedLocalVector()
564 …cObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONGSTATE, "Vec name '%s' already checked out", name); in DMGetNamedLocalVector()
574 PetscCall(PetscStrallocpy(name, &link->name)); in DMGetNamedLocalVector()
592 . name - name under which `X` was gotten
599 PetscErrorCode DMRestoreNamedLocalVector(DM dm, const char *name, Vec *X) in DMRestoreNamedLocalVector() argument
605 PetscAssertPointer(name, 2); in DMRestoreNamedLocalVector()
611 PetscCall(PetscStrcmp(name, link->name, &match)); in DMRestoreNamedLocalVector()
616 …cObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONGSTATE, "Vec name '%s' was not checked out", name); in DMRestoreNamedLocalVector()
617 …dm), PETSC_ERR_ARG_INCOMP, "Attempt to restore Vec name '%s', but Vec does not match the cache", n… in DMRestoreNamedLocalVector()
626 …bjectComm((PetscObject)dm), PETSC_ERR_ARG_INCOMP, "Could not find Vec name '%s' to restore", name); in DMRestoreNamedLocalVector()