453 switch (
m_graph->GetMeshDimension())
457 if (NumHomogeneousDir == 1)
461 "ContField2DHomogeneous1D or "
462 "DisContField2DHomogenenous1D has not been "
466 boost::dynamic_pointer_cast<
467 MultiRegions::ExpList2DHomogeneous1D>(
m_exp[0]);
472 else if (NumHomogeneousDir == 2)
477 boost::dynamic_pointer_cast<
478 MultiRegions::ContField3DHomogeneous2D>(
482 MultiRegions::ContField3DHomogeneous2D>::
483 AllocateSharedPtr(*tmp2);
488 tmp2 = boost::dynamic_pointer_cast<
489 MultiRegions::DisContField3DHomogeneous2D>(
493 MultiRegions::DisContField3DHomogeneous2D>::
494 AllocateSharedPtr(*tmp2);
499 boost::dynamic_pointer_cast<
500 MultiRegions::ExpList3DHomogeneous2D>(
m_exp[0]);
503 MultiRegions::ExpList3DHomogeneous2D>::
504 AllocateSharedPtr(*tmp2);
512 boost::dynamic_pointer_cast<
513 MultiRegions::ContField1D>(
m_exp[0]);
521 boost::dynamic_pointer_cast<
522 MultiRegions::DisContField1D>(
m_exp[0]);
530 boost::dynamic_pointer_cast<
531 MultiRegions::ExpList1D>(
m_exp[0]);
534 MultiRegions::ExpList1D>::AllocateSharedPtr(*tmp2);
541 if (NumHomogeneousDir == 1)
547 bool dealiasing =
false;
550 MultiRegions::ContField3DHomogeneous1D>::
553 ->GetHomogeneousBasis()
561 tmp2 = boost::dynamic_pointer_cast<
562 MultiRegions::ContField3DHomogeneous1D>(
565 ASSERTL0(tmp2,
"Failed to type cast m_exp[0]");
567 MultiRegions::ContField3DHomogeneous1D>::
568 AllocateSharedPtr(*tmp2,
m_graph, var);
575 bool dealiasing =
false;
578 MultiRegions::DisContField3DHomogeneous1D>::
581 ->GetHomogeneousBasis()
589 tmp2 = boost::dynamic_pointer_cast<
590 MultiRegions::DisContField3DHomogeneous1D>(
592 ASSERTL0(tmp2,
"Failed to type cast m_exp[0]");
595 MultiRegions::DisContField3DHomogeneous1D>::
596 AllocateSharedPtr(*tmp2);
603 bool dealiasing =
false;
606 MultiRegions::ExpList3DHomogeneous1D>::
609 ->GetHomogeneousBasis()
617 boost::dynamic_pointer_cast<
618 MultiRegions::ExpList3DHomogeneous1D>(
620 ASSERTL0(tmp2,
"Failed to type cast m_exp[0]");
623 MultiRegions::ExpList3DHomogeneous1D>::
624 AllocateSharedPtr(*tmp2);
641 boost::dynamic_pointer_cast<
642 MultiRegions::ContField2D>(
m_exp[0]);
658 boost::dynamic_pointer_cast<
659 MultiRegions::DisContField2D>(
m_exp[0]);
668 boost::dynamic_pointer_cast<
669 MultiRegions::ExpList2D>(
m_exp[0]);
672 MultiRegions::ExpList2D>::AllocateSharedPtr(*tmp2);
689 boost::dynamic_pointer_cast<
690 MultiRegions::ContField3D>(
m_exp[0]);
708 boost::dynamic_pointer_cast<
709 MultiRegions::DisContField3D>(
m_exp[0]);
718 boost::dynamic_pointer_cast<MultiRegions::ExpList3D>(
722 MultiRegions::ExpList3D>::AllocateSharedPtr(*tmp2);
727 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