| 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>; |
no test coverage detected