MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / create_nullspace

Method create_nullspace

cpp/dolfinx/la/petsc.cpp:362–371  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

360}
361//-----------------------------------------------------------------------------
362MatNullSpace la::petsc::create_nullspace(MPI_Comm comm,
363 std::span<const Vec> basis)
364{
365 MatNullSpace ns = nullptr;
366 PetscErrorCode ierr
367 = MatNullSpaceCreate(comm, PETSC_FALSE, basis.size(), basis.data(), &ns);
368 if (ierr != 0)
369 petsc::error(ierr, __FILE__, "MatNullSpaceCreate");
370 return ns;
371}
372//-----------------------------------------------------------------------------
373//-----------------------------------------------------------------------------
374void petsc::options::set(std::string option)

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected