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

Method MakeSameStatus

parallel/parallelvvector.cpp:544–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542 }
543
544 void MakeSameStatus () const
545 {
546 if (Size() == 0) return;
547 if ((*this)[0] -> GetParallelStatus() == DISTRIBUTED)
548 for (int i = 1; i < Size(); i++)
549 (*this)[i]->Distribute();
550
551 if ((*this)[0] -> GetParallelStatus() == CUMULATED)
552 for (int i = 1; i < Size(); i++)
553 (*this)[i]->Cumulate();
554 }
555
556 Matrix<> InnerProductD (const MultiVector & v2) const override
557 {

Callers 1

InnerProductDMethod · 0.80

Calls 4

GetParallelStatusMethod · 0.80
DistributeMethod · 0.80
CumulateMethod · 0.80
SizeFunction · 0.50

Tested by

no test coverage detected