Home
last modified time | relevance | path

Searched refs:activeCellDM (Results 1 – 2 of 2) sorted by relevance

/petsc/include/petsc/private/
H A Ddmswarmimpl.h49 …PetscCheck(_swarm->activeCellDM, PetscObjectComm((PetscObject)(obj)), PETSC_ERR_SUP, "Valid only f…
63 const char *activeCellDM; member
/petsc/src/dm/impls/swarm/
H A Dswarm.c187 if (!swarm->activeCellDM) { in DMSwarmVectorDefineFields()
1464 PetscCall(PetscObjectListFind(swarm->cellDMs, swarm->activeCellDM, (PetscObject *)&celldm)); in DMSwarmGetCellDM()
1465 …bject)sw), PETSC_ERR_ARG_WRONG, "There is no cell DM named %s in this Swarm", swarm->activeCellDM); in DMSwarmGetCellDM()
1537 PetscCall(PetscFree(swarm->activeCellDM)); in DMSwarmSetCellDMActive()
1538 PetscCall(PetscStrallocpy(name, (char **)&swarm->activeCellDM)); in DMSwarmSetCellDMActive()
1565 …PetscCheck(swarm->activeCellDM, PetscObjectComm((PetscObject)sw), PETSC_ERR_ARG_WRONGSTATE, "Swarm… in DMSwarmGetCellDMActive()
1566 PetscCall(PetscObjectListFind(swarm->cellDMs, swarm->activeCellDM, (PetscObject *)celldm)); in DMSwarmGetCellDMActive()
1567 …tscObject)sw), PETSC_ERR_ARG_WRONGSTATE, "Swarm has no valid cell DM for %s", swarm->activeCellDM); in DMSwarmGetCellDMActive()
2392 PetscCall(PetscFree(swarm->activeCellDM)); in DMDestroy_Swarm()