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

Function CreateParallelVector

parallel/parallelvvector.cpp:630–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628
629
630 AutoVector CreateParallelVector (shared_ptr<ParallelDofs> pardofs, PARALLEL_STATUS status)
631 {
632 if (!pardofs)
633 throw Exception ("CreateParallelVector called, but pardofs is nulltpr");
634
635 // taken this version from the py-interface, maybe we should always create a parallel-vector
636 // #ifdef PARALLEL
637 if(pardofs->IsComplex())
638 return make_unique<S_ParallelBaseVectorPtr<Complex>> (pardofs->GetNDofLocal(), pardofs->GetEntrySize(), pardofs, status);
639 else
640 return make_unique<S_ParallelBaseVectorPtr<double>> (pardofs->GetNDofLocal(), pardofs->GetEntrySize(), pardofs, status);
641 // #else
642 // return CreateBaseVector (pardofs->GetNDofLocal(), pardofs->IsComplex(), pardofs->GetEntrySize());
643 // #endif
644 }
645
646
647 template class S_ParallelBaseVectorPtr<double>;

Callers 15

CreateRowVectorMethod · 0.85
CreateColVectorMethod · 0.85
FindFEVFunction · 0.85
CreateRowVectorMethod · 0.85
CreateColVectorMethod · 0.85
FindFEVFunction · 0.85
CreateRowVectorMethod · 0.85
CreateColVectorMethod · 0.85
FindFEVFunction · 0.85
CreateRowVectorMethod · 0.85
CreateColVectorMethod · 0.85

Calls 3

GetNDofLocalMethod · 0.80
GetEntrySizeMethod · 0.80
IsComplexMethod · 0.45

Tested by

no test coverage detected