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

Method Operator

cpp/dolfinx/la/petsc.cpp:498–503  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

496//-----------------------------------------------------------------------------
497//-----------------------------------------------------------------------------
498petsc::Operator::Operator(Mat A, bool inc_ref_count) : _matA(A)
499{
500 assert(A);
501 if (inc_ref_count)
502 PetscObjectReference((PetscObject)_matA);
503}
504//-----------------------------------------------------------------------------
505petsc::Operator::Operator(Operator&& A) noexcept
506 : _matA(std::exchange(A._matA, nullptr))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected