50 static std::shared_ptr<FwdTransBCOp<TData>>
Create(
52 const std::vector<std::string> &components,
53 const std::string &execStr =
"")
55 auto session = expansionList->GetSession();
57 std::string execStr0 = (execStr ==
"")
62 expansionList, components, execStr0);
65 MultiRegions::GetBlockAttributes<TData, FieldState::Coeff>(
67 MultiRegions::UnitInterleaveWidths(expansionList));
70 for (
unsigned int block_idx = 0; block_idx < blockAttr.size();
77 const auto exp = expansionList->GetExp(exp_idx);
79 block_idx, exp, expansionList->GetDataWarehouseSharedPtr(),
82 std::vector<TData> dmat;
83 const auto nmInt = exp->GetNcoeffs() - exp->NumBndryCoeffs();
86 const auto nelmt = blockAttr[block_idx].GetNumElements();
88 blockAttr[block_idx].GetNumElementsWithPadding();
89 const auto shapeType = exp->DetShapeType();
93 dmat.resize(nelmtPad * nmInt * nmInt);
94 auto dmatptr = dmat.data();
95 for (
size_t e = 0; e < nelmt; ++e)
97 const auto expe = expansionList->GetExp(exp_idx + e);
103 const auto &InvIntMass =
104 expe->GetLocStaticCondMatrix(masskey)->GetBlock(1, 1);
105 std::copy_n(InvIntMass->GetRawPtr(), nmInt * nmInt,
107 dmatptr += nmInt * nmInt;
111 op->m_blockOp[block_idx]->SetInvMassMatrix(dmat);