22 #if !PETSC_VERSION_LESS_THAN(3,3,0) 24 #if !PETSC_RELEASE_LESS_THAN(3,6,0) 25 # include <petsc/private/petscimpl.h> 27 # include <petsc-private/petscimpl.h> 33 #define __FUNCT__ "DMlibMeshSetSystem" 40 PetscValidHeaderSpecific(dm,DM_CLASSID,1);
41 #if PETSC_RELEASE_LESS_THAN(3,4,0) 42 ierr = PetscObjectQueryFunction((PetscObject)dm,
"DMlibMeshSetSystem_C",(PetscVoidFunction*)&f);
CHKERRQ(
ierr);
44 ierr = PetscObjectQueryFunction((PetscObject)dm,
"DMlibMeshSetSystem_C",&f);
CHKERRQ(
ierr);
46 if (!f) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_SUP,
"DM has no implementation for DMlibMeshSetSystem");
52 #define __FUNCT__ "DMlibMeshGetSystem" 59 PetscValidHeaderSpecific(dm,DM_CLASSID,1);
60 #if PETSC_RELEASE_LESS_THAN(3,4,0) 61 ierr = PetscObjectQueryFunction((PetscObject)dm,
"DMlibMeshGetSystem_C",(PetscVoidFunction*)&f);
CHKERRQ(
ierr);
63 ierr = PetscObjectQueryFunction((PetscObject)dm,
"DMlibMeshGetSystem_C",&f);
CHKERRQ(
ierr);
65 if (!f) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_SUP,
"DM has no implementation for DMlibMeshGetSystem");
71 #endif // #if !PETSC_VERSION_LESS_THAN(3,3,0)
Manages consistently variables, degrees of freedom, coefficient vectors, matrices and non-linear solv...
PetscErrorCode DMlibMeshSetSystem(DM dm, libMesh::NonlinearImplicitSystem &sys)
PetscErrorCode DMlibMeshGetSystem(DM dm, libMesh::NonlinearImplicitSystem *&sys)