MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / ParallelMatrix

Method ParallelMatrix

parallel/parallel_matrices.cpp:422–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420
421
422 ParallelMatrix :: ParallelMatrix (shared_ptr<BaseMatrix> amat,
423 shared_ptr<ParallelDofs> arpardofs,
424 shared_ptr<ParallelDofs> acpardofs,
425 PARALLEL_OP aop)
426 : BaseMatrix((arpardofs==acpardofs) ? arpardofs : nullptr), mat(amat),
427 row_paralleldofs(arpardofs), col_paralleldofs(acpardofs)
428 {
429 op = aop;
430 if(row_paralleldofs==col_paralleldofs)
431 mat->SetParallelDofs (arpardofs);
432 if (auto spmat = dynamic_pointer_cast<BaseSparseMatrix>(mat)) {
433#ifdef USE_MUMPS
434 spmat->SetInverseType("mumps");
435#else
436 spmat->SetInverseType("masterinverse");
437#endif
438 }
439 }
440
441 ParallelMatrix :: ParallelMatrix (shared_ptr<BaseMatrix> amat,
442 shared_ptr<ParallelDofs> apardofs,

Callers

nothing calls this directly

Calls 2

SetParallelDofsMethod · 0.80
SetInverseTypeMethod · 0.80

Tested by

no test coverage detected