413 switch (
m_graph->GetMeshDimension())
417 if (NumHomogeneousDir == 1)
421 "ContField2DHomogeneous1D or "
422 "DisContField2DHomogenenous1D has not been "
426 boost::dynamic_pointer_cast<MultiRegions::
427 ExpList2DHomogeneous1D>(
m_exp[0]);
429 tmp = MemoryManager<MultiRegions::
430 ExpList2DHomogeneous1D>::
431 AllocateSharedPtr(*tmp2);
434 else if (NumHomogeneousDir == 2)
439 boost::dynamic_pointer_cast<MultiRegions::
440 ContField3DHomogeneous2D>(
m_exp[0]);
442 tmp = MemoryManager<MultiRegions::
443 ContField3DHomogeneous2D>::
444 AllocateSharedPtr(*tmp2);
449 boost::dynamic_pointer_cast<MultiRegions::
450 DisContField3DHomogeneous2D>(
m_exp[0]);
452 tmp = MemoryManager<MultiRegions::
453 DisContField3DHomogeneous2D>::
454 AllocateSharedPtr(*tmp2);
459 boost::dynamic_pointer_cast<MultiRegions::
460 ExpList3DHomogeneous2D>(
m_exp[0]);
462 tmp = MemoryManager<MultiRegions::
463 ExpList3DHomogeneous2D>::
464 AllocateSharedPtr(*tmp2);
474 boost::dynamic_pointer_cast<MultiRegions::
475 ContField1D>(
m_exp[0]);
483 boost::dynamic_pointer_cast<MultiRegions::
484 DisContField1D>(
m_exp[0]);
492 boost::dynamic_pointer_cast<MultiRegions::
493 ExpList1D>(
m_exp[0]);
504 if (NumHomogeneousDir == 1)
510 bool dealiasing =
false;
512 tmp = MemoryManager<MultiRegions::
513 ContField3DHomogeneous1D>::AllocateSharedPtr(
515 m_exp[0]->GetHomogeneousBasis()
517 m_exp[0]->GetHomoLen(),
523 boost::dynamic_pointer_cast<MultiRegions::
524 ContField3DHomogeneous1D>(
m_exp[0]);
526 ASSERTL0(tmp2,
"Failed to type cast m_exp[0]");
527 tmp = MemoryManager<MultiRegions::
528 ContField3DHomogeneous1D>::
529 AllocateSharedPtr(*tmp2,
m_graph, var);
536 bool dealiasing =
false;
538 tmp = MemoryManager<MultiRegions::
539 DisContField3DHomogeneous1D>::AllocateSharedPtr(
541 m_exp[0]->GetHomogeneousBasis()
543 m_exp[0]->GetHomoLen(),
549 boost::dynamic_pointer_cast<MultiRegions::
550 DisContField3DHomogeneous1D>(
m_exp[0]);
551 ASSERTL0(tmp2,
"Failed to type cast m_exp[0]");
553 tmp = MemoryManager<MultiRegions::
554 DisContField3DHomogeneous1D>::
555 AllocateSharedPtr(*tmp2);
562 bool dealiasing =
false;
564 tmp = MemoryManager<MultiRegions::
565 ExpList3DHomogeneous1D>::AllocateSharedPtr(
567 m_exp[0]->GetHomogeneousBasis()
569 m_exp[0]->GetHomoLen(),
575 boost::dynamic_pointer_cast<MultiRegions::
576 ExpList3DHomogeneous1D>(
m_exp[0]);
577 ASSERTL0(tmp2,
"Failed to type cast m_exp[0]");
579 tmp = MemoryManager<MultiRegions::
580 ExpList3DHomogeneous1D>::
581 AllocateSharedPtr(*tmp2);
599 boost::dynamic_pointer_cast<MultiRegions::
600 ContField2D>(
m_exp[0]);
616 boost::dynamic_pointer_cast<MultiRegions::
617 DisContField2D>(
m_exp[0]);
626 boost::dynamic_pointer_cast<MultiRegions::
627 ExpList2D>(
m_exp[0]);
648 boost::dynamic_pointer_cast<MultiRegions::
649 ContField3D>(
m_exp[0]);
667 boost::dynamic_pointer_cast<MultiRegions::
668 DisContField3D>(
m_exp[0]);
677 boost::dynamic_pointer_cast<MultiRegions::
678 ExpList3D>(
m_exp[0]);
686 ASSERTL0(
false,
"Expansion dimension not recognised");
vector< MultiRegions::ExpListSharedPtr > m_exp
#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.
MultiRegions::AssemblyMapCGSharedPtr m_locToGlobalMap
boost::shared_ptr< DisContField3DHomogeneous1D > DisContField3DHomogeneous1DSharedPtr
boost::shared_ptr< ContField2D > ContField2DSharedPtr
boost::shared_ptr< ExpList3DHomogeneous2D > ExpList3DHomogeneous2DSharedPtr
Shared pointer to an ExpList3DHomogeneous2D object.
boost::shared_ptr< DisContField3DHomogeneous2D > DisContField3DHomogeneous2DSharedPtr
boost::shared_ptr< ContField3DHomogeneous2D > ContField3DHomogeneous2DSharedPtr
boost::shared_ptr< ExpList1D > ExpList1DSharedPtr
Shared pointer to an ExpList1D object.
bool m_declareExpansionAsDisContField
boost::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
boost::shared_ptr< DisContField2D > DisContField2DSharedPtr
SpatialDomains::MeshGraphSharedPtr m_graph
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.
boost::shared_ptr< ExpList3DHomogeneous1D > ExpList3DHomogeneous1DSharedPtr
Shared pointer to an ExpList3DHomogeneous1D object.
bool m_declareExpansionAsContField
LibUtilities::SessionReaderSharedPtr m_session
boost::shared_ptr< ContField3D > ContField3DSharedPtr