39 PetscValidHeaderSpecific(dm,DM_CLASSID,1);
40 LibmeshPetscCallQ(PetscObjectQueryFunction((PetscObject)dm,
"DMlibMeshSetSystem_C",&f));
41 if (!f) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_SUP,
"DM has no implementation for DMlibMeshSetSystem");
42 LibmeshPetscCallQ((*f)(dm,sys));
43 PetscFunctionReturn(LIBMESH_PETSC_SUCCESS);
53 PetscValidHeaderSpecific(dm,DM_CLASSID,1);
54 LibmeshPetscCallQ(PetscObjectQueryFunction((PetscObject)dm,
"DMlibMeshGetSystem_C",&f));
55 if (!f) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_SUP,
"DM has no implementation for DMlibMeshGetSystem");
56 LibmeshPetscCallQ((*f)(dm,sys));
57 PetscFunctionReturn(LIBMESH_PETSC_SUCCESS);