480 switch (
m_graph->GetMeshDimension())
484 if (NumHomogeneousDir == 1)
488 "ContField2DHomogeneous1D or "
489 "DisContField2DHomogenenous1D has not been "
493 boost::dynamic_pointer_cast<
494 MultiRegions::ExpList2DHomogeneous1D>(
m_exp[0]);
499 else if (NumHomogeneousDir == 2)
504 boost::dynamic_pointer_cast<
505 MultiRegions::ContField3DHomogeneous2D>(
509 MultiRegions::ContField3DHomogeneous2D>::
510 AllocateSharedPtr(*tmp2);
515 tmp2 = boost::dynamic_pointer_cast<
516 MultiRegions::DisContField3DHomogeneous2D>(
520 MultiRegions::DisContField3DHomogeneous2D>::
521 AllocateSharedPtr(*tmp2);
526 boost::dynamic_pointer_cast<
527 MultiRegions::ExpList3DHomogeneous2D>(
m_exp[0]);
530 MultiRegions::ExpList3DHomogeneous2D>::
531 AllocateSharedPtr(*tmp2);
539 boost::dynamic_pointer_cast<
540 MultiRegions::ContField1D>(
m_exp[0]);
548 boost::dynamic_pointer_cast<
549 MultiRegions::DisContField1D>(
m_exp[0]);
557 boost::dynamic_pointer_cast<
558 MultiRegions::ExpList1D>(
m_exp[0]);
561 MultiRegions::ExpList1D>::AllocateSharedPtr(*tmp2);
568 if (NumHomogeneousDir == 1)
574 bool dealiasing =
false;
577 MultiRegions::ContField3DHomogeneous1D>::
580 ->GetHomogeneousBasis()
588 tmp2 = boost::dynamic_pointer_cast<
589 MultiRegions::ContField3DHomogeneous1D>(
592 ASSERTL0(tmp2,
"Failed to type cast m_exp[0]");
594 MultiRegions::ContField3DHomogeneous1D>::
595 AllocateSharedPtr(*tmp2,
m_graph, var);
602 bool dealiasing =
false;
605 MultiRegions::DisContField3DHomogeneous1D>::
608 ->GetHomogeneousBasis()
616 tmp2 = boost::dynamic_pointer_cast<
617 MultiRegions::DisContField3DHomogeneous1D>(
619 ASSERTL0(tmp2,
"Failed to type cast m_exp[0]");
622 MultiRegions::DisContField3DHomogeneous1D>::
623 AllocateSharedPtr(*tmp2);
630 bool dealiasing =
false;
633 MultiRegions::ExpList3DHomogeneous1D>::
636 ->GetHomogeneousBasis()
644 boost::dynamic_pointer_cast<
645 MultiRegions::ExpList3DHomogeneous1D>(
647 ASSERTL0(tmp2,
"Failed to type cast m_exp[0]");
650 MultiRegions::ExpList3DHomogeneous1D>::
651 AllocateSharedPtr(*tmp2);
668 boost::dynamic_pointer_cast<
669 MultiRegions::ContField2D>(
m_exp[0]);
685 boost::dynamic_pointer_cast<
686 MultiRegions::DisContField2D>(
m_exp[0]);
695 boost::dynamic_pointer_cast<
696 MultiRegions::ExpList2D>(
m_exp[0]);
699 MultiRegions::ExpList2D>::AllocateSharedPtr(*tmp2);
716 boost::dynamic_pointer_cast<
717 MultiRegions::ContField3D>(
m_exp[0]);
735 boost::dynamic_pointer_cast<
736 MultiRegions::DisContField3D>(
m_exp[0]);
745 boost::dynamic_pointer_cast<MultiRegions::ExpList3D>(
749 MultiRegions::ExpList3D>::AllocateSharedPtr(*tmp2);
754 ASSERTL0(
false,
"Expansion dimension not recognised");
vector< MultiRegions::ExpListSharedPtr > m_exp
bool m_requireBoundaryExpansion
#define ASSERTL0(condition, msg)
boost::shared_ptr< ContField1D > ContField1DSharedPtr
boost::shared_ptr< ContField3DHomogeneous1D > ContField3DHomogeneous1DSharedPtr
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
bool m_declareExpansionAsDisContField
boost::shared_ptr< DisContField3DHomogeneous1D > DisContField3DHomogeneous1DSharedPtr
LibUtilities::SessionReaderSharedPtr m_session
boost::shared_ptr< ContField2D > ContField2DSharedPtr
SpatialDomains::MeshGraphSharedPtr m_graph
boost::shared_ptr< ExpList3DHomogeneous2D > ExpList3DHomogeneous2DSharedPtr
Shared pointer to an ExpList3DHomogeneous2D object.
bool m_declareExpansionAsContField
boost::shared_ptr< DisContField3DHomogeneous2D > DisContField3DHomogeneous2DSharedPtr
boost::shared_ptr< ContField3DHomogeneous2D > ContField3DHomogeneous2DSharedPtr
boost::shared_ptr< ExpList1D > ExpList1DSharedPtr
Shared pointer to an ExpList1D object.
boost::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
boost::shared_ptr< DisContField2D > DisContField2DSharedPtr
boost::shared_ptr< DisContField1D > DisContField1DSharedPtr
boost::shared_ptr< ExpList2D > ExpList2DSharedPtr
Shared pointer to an ExpList2D object.
boost::shared_ptr< DisContField3D > DisContField3DSharedPtr
boost::shared_ptr< ExpList2DHomogeneous1D > ExpList2DHomogeneous1DSharedPtr
Shared pointer to an ExpList2DHomogeneous1D object.
boost::shared_ptr< ExpList3D > ExpList3DSharedPtr
Shared pointer to an ExpList3D object.
MultiRegions::AssemblyMapCGSharedPtr m_locToGlobalMap
boost::shared_ptr< ExpList3DHomogeneous1D > ExpList3DHomogeneous1DSharedPtr
Shared pointer to an ExpList3DHomogeneous1D object.
boost::shared_ptr< ContField3D > ContField3DSharedPtr