44 namespace MultiRegions
58 m_bndCondExpansions(),
79 const std::string &variable,
80 const bool SetUpJustDG)
82 m_bndCondExpansions(),
133 int ElmtPointGeom = 0;
134 int TracePointGeom = 0;
137 for (
int i = 0; i <
m_exp->size(); ++i)
140 for (
int j = 0; j < exp1d->GetNverts(); ++j)
142 ElmtPointGeom = (exp1d->GetGeom1D())->GetVid(j);
144 for (
int k = 0; k <
m_trace->GetExpSize(); ++k)
146 TracePointGeom =
m_trace->GetExp(k)->GetGeom()->GetVid(0);
148 if (TracePointGeom == ElmtPointGeom)
171 m_traceMap->GetBndCondTraceToGlobalTraceMap(cnt+e));
176 ASSERTL0(
false,
"Periodic verts need setting up");
185 for (cnt = n = 0; n <
m_exp->size(); ++n)
187 for (
int v = 0; v < (*m_exp)[n]->GetNverts(); ++v, ++cnt)
194 boost::unordered_map<int,pair<int,int> > perVertToExpMap;
195 boost::unordered_map<int,pair<int,int> >
::iterator it2;
196 for (n = 0; n <
m_exp->size(); ++n)
198 for (
int v = 0; v < (*m_exp)[n]->GetNverts(); ++v)
201 (*
m_exp)[n]->GetGeom()->GetVid(v));
205 perVertToExpMap[it->first] = make_pair(n,v);
212 for (n = 0; n <
m_exp->size(); ++n)
214 for (
int v = 0; v < (*m_exp)[n]->GetNverts(); ++v)
216 int vertGeomId = (*m_exp)[n]->GetGeom()->GetVid(v);
224 it2 = perVertToExpMap.find(ent.
id);
226 if (it2 == perVertToExpMap.end())
228 if (
m_session->GetComm()->GetRowComm()->GetSize() > 1 &&
235 ASSERTL1(
false,
"Periodic vert not found!");
239 int offset =
m_trace->GetPhys_Offset((m_traceMap->GetElmtToTrace())
240 [n][v]->GetElmtId());
243 int offset2 =
m_trace->GetPhys_Offset((m_traceMap->GetElmtToTrace())
245 [it2->second.second]->GetElmtId());
261 if (traceEl->GetLeftAdjacentElementVertex () == -1 ||
262 traceEl->GetRightAdjacentElementVertex() == -1)
272 int traceGeomId = traceEl->GetGeom0D()->GetGlobalID();
278 fwd = traceGeomId == min(traceGeomId,pIt->second[0].id);
282 int offset =
m_trace->GetPhys_Offset(traceEl->GetElmtId());
284 GetTraceToUniversalMapUnique(offset) >= 0;
288 else if (traceEl->GetLeftAdjacentElementVertex () != -1 &&
289 traceEl->GetRightAdjacentElementVertex() != -1)
293 (traceEl->GetLeftAdjacentElementExp().get()) ==
298 ASSERTL2(
false,
"Unconnected trace element!");
311 const std::string &variable)
318 map<int,int> GeometryToRegionsMap;
320 SpatialDomains::BoundaryRegionCollection::const_iterator it;
328 for(it = bregions.begin(); it != bregions.end(); ++it)
331 for (bregionIt = it->second->begin();
332 bregionIt != it->second->end(); bregionIt++)
336 int id = (*(bregionIt->second))[0]->GetGlobalID();
337 GeometryToRegionsMap[id] = it->first;
342 map<int,SpatialDomains::GeometrySharedPtr> EndOfDomain;
345 for(domIt = domain.begin(); domIt != domain.end(); ++domIt)
348 for(
int i = 0; i < geomvector->size(); ++i)
350 for(
int j = 0; j < 2; ++j)
352 int vid = (*geomvector)[i]->GetVid(j);
353 if(EndOfDomain.count(vid) == 0)
355 EndOfDomain[vid] = (*geomvector)[i]->GetVertex(j);
359 EndOfDomain.erase(vid);
364 ASSERTL1(EndOfDomain.size() == 2,
"Did not find two ends of domain");
368 for(regIt = EndOfDomain.begin(); regIt != EndOfDomain.end(); ++regIt)
370 if(GeometryToRegionsMap.count(regIt->first) != 0)
373 ASSERTL1(iter != GeometryToRegionsMap.end(),
"Failied to find GeometryToRegionMap");
374 int regionId = iter->second;
375 SpatialDomains::BoundaryRegionCollection::const_iterator bregionsIter = bregions.find(regionId);
376 ASSERTL1(bregionsIter != bregions.end(),
"Failed to find boundary region");
378 returnval->AddBoundaryRegions (regionId,breg);
380 SpatialDomains::BoundaryConditionCollection::const_iterator bconditionsIter = bconditions.find(regionId);
381 ASSERTL1(bconditionsIter != bconditions.end(),
"Failed to find boundary collection");
383 returnval->AddBoundaryConditions(regionId,bcond);
391 gvec->push_back(regIt->second);
392 (*breg)[regIt->first] = gvec;
394 returnval->AddBoundaryRegions(bregions.size()+numNewBc,breg);
400 (*bCondition)[variable] = notDefinedCondition;
402 returnval->AddBoundaryConditions(bregions.size()+numNewBc,bCondition);
423 const std::string &variable,
424 bool SetToOneSpaceDimension):
425 ExpList1D(pSession,graph1D,domain, true,variable,SetToOneSpaceDimension),
426 m_bndCondExpansions(),
445 m_bndCondExpansions(In.m_bndCondExpansions),
446 m_bndConditions(In.m_bndConditions),
447 m_globalBndMat(In.m_globalBndMat),
449 m_traceMap(In.m_traceMap),
450 m_boundaryVerts(In.m_boundaryVerts),
451 m_periodicVerts(In.m_periodicVerts),
452 m_periodicFwdCopy(In.m_periodicFwdCopy),
453 m_periodicBwdCopy(In.m_periodicBwdCopy),
454 m_leftAdjacentVerts(In.m_leftAdjacentVerts)
488 const std::string variable)
496 SpatialDomains::BoundaryRegionCollection::const_iterator it;
499 for (it = bregions.begin(); it != bregions.end(); ++it)
503 if (boundaryCondition->GetBoundaryConditionType() !=
507 for (bregionIt = it->second->begin();
508 bregionIt != it->second->end(); bregionIt++)
510 cnt += bregionIt->second->size();
537 const std::string variable)
545 = boost::dynamic_pointer_cast<
547 SpatialDomains::BoundaryRegionCollection::const_iterator it;
552 int i, region1ID, region2ID;
556 map<int,int> BregionToVertMap;
560 for (it = bregions.begin(); it != bregions.end(); ++it)
564 if (locBCond->GetBoundaryConditionType()
570 int id = (*(it->second->begin()->second))[0]->GetGlobalID();
572 BregionToVertMap[it->first] = id;
578 int n = vComm->GetSize();
579 int p = vComm->GetRank();
582 nregions[p] = BregionToVertMap.size();
589 for (i = 1; i < n; ++i)
591 regOffset[i] = regOffset[i-1] + nregions[i-1];
596 for(i = regOffset[p], iit = BregionToVertMap.begin();
597 iit != BregionToVertMap.end(); ++iit, ++i)
599 bregid [i] = iit->first;
600 bregmap[i] = iit->second;
601 islocal.insert(iit->first);
607 for (
int i = 0; i < totRegions; ++i)
609 BregionToVertMap[bregid[i]] = bregmap[i];
613 for (it = bregions.begin(); it != bregions.end(); ++it)
617 if (locBCond->GetBoundaryConditionType()
624 region1ID = it->first;
625 region2ID = boost::static_pointer_cast<
627 locBCond)->m_connectedBoundaryRegion;
629 ASSERTL0(BregionToVertMap.count(region1ID) != 0,
630 "Cannot determine vertex of region1ID");
632 ASSERTL0(BregionToVertMap.count(region2ID) != 0,
633 "Cannot determine vertex of region2ID");
637 islocal.count(region2ID) != 0);
659 const std::string variable,
672 SpatialDomains::BoundaryRegionCollection::const_iterator it;
680 for (it = bregions.begin(); it != bregions.end(); ++it)
683 bconditions, it->first, variable);
685 if (locBCond->GetBoundaryConditionType() ==
690 for (bregionIt = it->second->begin();
691 bregionIt != it->second->end(); bregionIt++)
693 for (k = 0; k < bregionIt->second->size(); k++)
695 if ((vert = boost::dynamic_pointer_cast
697 (*bregionIt->second)[k])))
702 bndCondExpansions[cnt] = locPointExp;
703 bndConditions[cnt++] = locBCond;
708 "dynamic cast to a vertex failed");
716 for (it = bregions.begin(); it != bregions.end(); ++it)
720 switch(locBCond->GetBoundaryConditionType())
727 for (bregionIt = it->second->begin();
728 bregionIt != it->second->end(); bregionIt++)
730 for (k = 0; k < bregionIt->second->size(); k++)
732 if((vert = boost::dynamic_pointer_cast
734 (*bregionIt->second)[k])))
739 bndCondExpansions[cnt] = locPointExp;
740 bndConditions[cnt++] = locBCond;
745 "dynamic cast to a vertex failed");
755 ASSERTL0(
false,
"This type of BC not implemented yet");
768 "Routine currently only tested for HybridDGHelmholtz");
771 "Full matrix global systems are not supported for HDG "
776 "The local to global map is not set up for the requested "
785 (*m_globalBndMat)[mkey] = glo_matrix;
789 glo_matrix = matrixIter->second;
808 for(
int v = 0; v < 2; ++v)
814 if(vertExp->GetLeftAdjacentElementExp()->GetGeom()->GetGlobalID() != (*m_exp)[i]->GetGeom()->GetGlobalID())
900 for (cnt = n = 0; n < nElements; ++n)
907 Basis = (*m_exp)[n]->GetBasis(0);
909 for(v = 0; v < 2; ++v, ++cnt)
911 int offset =
m_trace->GetPhys_Offset(elmtToTrace[n][v]->GetElmtId());
915 (*m_exp)[n]->GetVertexPhysVals(v, field + phys_offset,
920 (*m_exp)[n]->GetVertexPhysVals(v, field + phys_offset,
944 "Method not set up for non-zero Neumann "
945 "boundary condition");
960 "Method not set up for this boundary condition.");
1003 int n,p,offset,phys_offset;
1006 "input array is of insufficient length");
1008 for (n = 0; n < nexp; ++n)
1012 for (p = 0; p < (*m_exp)[n]->GetNverts(); ++p)
1014 offset =
m_trace->GetPhys_Offset(
1015 (
m_traceMap->GetElmtToTrace())[n][p]->GetElmtId());
1016 (*m_exp)[n]->GetVertexPhysVals(p, inarray + phys_offset,
1026 int n,offset, t_offset;
1039 Basis = (*m_exp)[n]->GetBasis(0);
1042 int e_ncoeffs = (*m_exp)[n]->GetNcoeffs();
1049 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][0]->GetElmtId());
1050 if(negatedFluxNormal[2*n])
1052 outarray[offset] -= Fn[t_offset];
1056 outarray[offset] += Fn[t_offset];
1059 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][1]->GetElmtId());
1061 if(negatedFluxNormal[2*n+1])
1063 outarray[offset+(*m_exp)[n]->GetVertexMap(1)] -= Fn[t_offset];
1067 outarray[offset+(*m_exp)[n]->GetVertexMap(1)] += Fn[t_offset];
1087 for(p = 0; p < 2; ++p)
1090 for (
int i=0; i<((*m_exp)[n]->
1091 GetVertexNormal(p)).num_elements(); i++)
1093 vertnorm += ((*m_exp)[n]->GetVertexNormal(p))[i][0];
1094 coords[0] = vertnorm ;
1097 t_offset =
GetTrace()->GetPhys_Offset(n+p);
1099 if (vertnorm >= 0.0)
1101 m_Ixm = BASE->GetI(coords);
1104 for (j = 0; j < e_ncoeffs; j++)
1106 outarray[offset + j] +=
1107 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1113 m_Ixm = BASE->GetI(coords);
1115 for (j = 0; j < e_ncoeffs; j++)
1117 outarray[offset + j] -=
1118 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1125 static int sav_ncoeffs = 0;
1126 if(!m_Ixm.get() || e_ncoeffs != sav_ncoeffs)
1139 m_Ixm = BASE->GetI(coords);
1142 m_Ixp = BASE->GetI(coords);
1144 sav_ncoeffs = e_ncoeffs;
1147 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][0]->GetElmtId());
1148 if(negatedFluxNormal[2*n])
1150 for (j = 0; j < e_ncoeffs; j++)
1152 outarray[offset + j] -=
1153 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1158 for (j = 0; j < e_ncoeffs; j++)
1160 outarray[offset + j] +=
1161 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1165 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][1]->GetElmtId());
1166 if (negatedFluxNormal[2*n+1])
1168 for (j = 0; j < e_ncoeffs; j++)
1170 outarray[offset + j] -=
1171 (m_Ixp->GetPtr())[j] * Fn[t_offset];
1176 for (j = 0; j < e_ncoeffs; j++)
1178 outarray[offset + j] +=
1179 (m_Ixp->GetPtr())[j] * Fn[t_offset];
1211 int GloBndDofs =
m_traceMap->GetNumGlobalBndCoeffs();
1212 int NumDirBCs =
m_traceMap->GetNumLocalDirBndCoeffs();
1233 int LocBndCoeffs =
m_traceMap->GetNumLocalBndCoeffs();
1241 for (cnt = n = 0; n < nexp; ++n)
1243 nbndry = (*m_exp)[n]->NumDGBndryCoeffs();
1245 e_ncoeffs = (*m_exp)[n]->GetNcoeffs();
1247 e_l = loc_lambda + cnt;
1252 Floc =
Transpose(*(HDGLamToU->GetBlock(n,n)))*ElmtFce;
1267 id =
m_traceMap->GetBndCondCoeffsToGlobalCoeffsMap(i);
1272 id =
m_traceMap->GetBndCondCoeffsToGlobalCoeffsMap(i);
1280 if (GloBndDofs - NumDirBCs > 0)
1301 m_traceMap->GlobalToLocalBnd(BndSol,loc_lambda);
1304 out = (*InvHDGHelm)*F + (*HDGLamToU)*LocLambda;
1318 const std::string varName,
1345 (boost::static_pointer_cast<SpatialDomains
1347 ->m_dirichletCondition).Evaluate(x0[0],x1[0],x2[0],time));
1354 (boost::static_pointer_cast<SpatialDomains
1356 ->m_neumannCondition).Evaluate(x0[0],x1[0],x2[0],time));
1362 (boost::static_pointer_cast<SpatialDomains
1364 ->m_robinFunction).Evaluate(x0[0],x1[0],x2[0],time));
1367 (boost::static_pointer_cast<SpatialDomains
1369 ->m_robinPrimitiveCoeff).Evaluate(x0[0],x1[0],x2[0],time));
1378 ASSERTL0(
false,
"This type of BC not implemented yet");
1389 map<int, int> VertGID;
1395 if (ElmtID.num_elements() != nbcs)
1401 fill(ElmtID.get(), ElmtID.get()+nbcs, -1);
1404 if (VertID.num_elements() != nbcs)
1413 VertGID[Vid] = cnt++;
1421 for(i = 0; i < exp->GetNverts(); ++i)
1423 id = exp->GetGeom()->GetVid(i);
1425 if (VertGID.count(
id) > 0)
1427 bid = VertGID.find(
id)->second;
1428 ASSERTL1(ElmtID[bid] == -1,
"Edge already set");
1436 ASSERTL1(cnt == nbcs,
"Failed to visit all boundary condtiions");
1470 map<int, RobinBCInfoSharedPtr> returnval;
1489 VertID[i],Array_tmp = locExpList->GetPhys());
1494 if(returnval.count(elmtid) != 0)
1496 rInfo->next = returnval.find(elmtid)->second;
1498 returnval[elmtid] = rInfo;
GlobalSysSolnType GetGlobalSysSolnType() const
Return the associated solution type.
const DNekScalBlkMatSharedPtr & GetBlockMatrix(const GlobalMatrixKey &gkey)
#define ASSERTL0(condition, msg)
virtual void v_Reset()
Reset geometry information, metrics, matrix managers and geometry information.
int GetCoeff_Offset(int n) const
Get the start offset position for a global list of m_coeffs correspoinding to element n...
virtual void v_EvaluateBoundaryConditions(const NekDouble time=0.0, const std::string varName="", const NekDouble x2_in=NekConstants::kNekUnsetDouble, const NekDouble x3_in=NekConstants::kNekUnsetDouble)
Evaluate all boundary conditions at a given time..
static ExpListSharedPtr NullExpListSharedPtr
void EvaluateBoundaryConditions(const NekDouble time=0.0, const std::string varName="", const NekDouble=NekConstants::kNekUnsetDouble, const NekDouble=NekConstants::kNekUnsetDouble)
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
virtual void v_AddTraceIntegral(const Array< OneD, const NekDouble > &Fn, Array< OneD, NekDouble > &outarray)
bool isLocal
Flag specifying if this entity is local to this partition.
int GetPhys_Offset(int n) const
Get the start offset position for a global list of m_phys correspoinding to element n...
const BoundaryConditionCollection & GetBoundaryConditions(void) const
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
Array< OneD, SpatialDomains::BoundaryConditionShPtr > m_bndConditions
An array which contains the information about the boundary condition on the different boundary region...
boost::shared_ptr< RobinBCInfo > RobinBCInfoSharedPtr
virtual map< int, RobinBCInfoSharedPtr > v_GetRobinBCInfo()
void FindPeriodicVertices(const SpatialDomains::BoundaryConditions &bcs, const std::string variable)
Generate a associative map of periodic vertices in a mesh.
Lagrange Polynomials using the Gauss points .
SpatialDomains::BoundaryConditionsSharedPtr GetDomainBCs(const SpatialDomains::CompositeMap &domain, const SpatialDomains::BoundaryConditions &Allbcs, const std::string &variable)
vector< int > m_periodicFwdCopy
A vector indicating degress of freedom which need to be copied from forwards to backwards space in ca...
std::map< ConstFactorType, NekDouble > ConstFactorMap
void SetUpDG(const std::string &variable)
void GetBoundaryToElmtMap(Array< OneD, int > &ElmtID, Array< OneD, int > &EdgeID)
Array< OneD, NekDouble > m_phys
The global expansion evaluated at the quadrature points.
void ApplyGeomInfo()
Apply geometry information to each expansion.
boost::shared_ptr< DNekMat > DNekMatSharedPtr
int GetExpSize(void)
This function returns the number of elements in the expansion.
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
boost::shared_ptr< Expansion0D > Expansion0DSharedPtr
boost::shared_ptr< GlobalLinSys > GenGlobalBndLinSys(const GlobalLinSysKey &mkey, const AssemblyMapSharedPtr &locToGloMap)
Generate a GlobalLinSys from information provided by the key "mkey" and the mapping provided in LocTo...
void SetAdjacentElementExp(int vertex, Expansion1DSharedPtr &v)
1D Gauss-Gauss-Legendre quadrature points
virtual void v_GetFwdBwdTracePhys(Array< OneD, NekDouble > &Fwd, Array< OneD, NekDouble > &Bwd)
BasisManagerT & BasisManager(void)
GlobalLinSysSharedPtr GetGlobalBndLinSys(const GlobalLinSysKey &mkey)
For a given key, returns the associated global linear system.
Array< OneD, int > m_coeff_offset
Offset of elemental data into the array m_coeffs.
void SetBoundaryConditionExpansion(const SpatialDomains::MeshGraphSharedPtr &graph1D, const SpatialDomains::BoundaryConditions &bcs, const std::string variable, Array< OneD, MultiRegions::ExpListSharedPtr > &bndCondExpansions, Array< OneD, SpatialDomains::BoundaryConditionShPtr > &bndConditions)
Populates the list of boundary condition expansions.
Base class for all multi-elemental spectral/hp expansions.
boost::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
The base class for all shapes.
boost::shared_ptr< ExpList > & GetTrace()
virtual void v_ExtractTracePhys(Array< OneD, NekDouble > &outarray)
boost::shared_ptr< LocalRegions::ExpansionVector > m_exp
The list of local expansions.
DisContField1D()
Default constructor.
std::map< StdRegions::VarCoeffType, Array< OneD, NekDouble > > VarCoeffMap
virtual ~DisContField1D()
Destructor.
vector< int > m_periodicBwdCopy
boost::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
int id
Geometry ID of entity.
bool m_physState
The state of the array m_phys.
int m_ncoeffs
The total number of local degrees of freedom. m_ncoeffs .
std::map< int, Composite >::const_iterator CompositeMapConstIter
std::map< int, BoundaryRegionShPtr > BoundaryRegionCollection
boost::shared_ptr< DNekScalBlkMat > DNekScalBlkMatSharedPtr
This class is the abstraction of a global discontinuous two- dimensional spectral/hp element expansio...
NekMatrix< InnerMatrixType, BlockMatrixTag > Transpose(NekMatrix< InnerMatrixType, BlockMatrixTag > &rhs)
SpatialDomains::MeshGraphSharedPtr m_graph
Mesh associated with this expansion list.
void GenerateBoundaryConditionExpansion(const SpatialDomains::MeshGraphSharedPtr &graph1D, const SpatialDomains::BoundaryConditions &bcs, const std::string variable)
Discretises the boundary conditions.
LibUtilities::SessionReaderSharedPtr m_session
Session.
AssemblyMapDGSharedPtr m_traceMap
Local to global DG mapping for trace space.
Defines a specification for a set of points.
void Neg(int n, T *x, const int incx)
Negate x = -x.
std::map< int, BoundaryConditionMapShPtr > BoundaryConditionCollection
boost::shared_ptr< GeometryVector > Composite
virtual void v_HelmSolve(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const FlagList &flags, const StdRegions::ConstFactorMap &factors, const StdRegions::VarCoeffMap &varcoeff, const Array< OneD, const NekDouble > &dirForcing)
Solve the Helmholtz equation.
static const NekDouble kNekUnsetDouble
Describe a linear system.
vector< bool > m_negatedFluxNormal
std::map< int, Composite > CompositeMap
StdRegions::MatrixType GetMatrixType() const
Return the matrix type.
Describes a matrix with ordering defined by a local to global map.
const Array< OneD, const NekDouble > & GetPhys() const
This function returns (a reference to) the array (implemented as m_phys) containing the function ev...
bool IsLeftAdjacentVertex(const int n, const int e)
GlobalLinSysMapShPtr m_globalBndMat
Global boundary matrix.
boost::shared_ptr< ExpList0D > ExpList0DSharedPtr
Shared pointer to an ExpList0D object.
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs typedef NekMatrix< LhsDataType, StandardMatrixTag >::iterator iterator
static AssemblyMapSharedPtr NullAssemblyMapSharedPtr
boost::shared_ptr< BoundaryConditionMap > BoundaryConditionMapShPtr
vector< bool > & GetNegatedFluxNormal(void)
Array< OneD, MultiRegions::ExpListSharedPtr > m_bndCondExpansions
Discretised boundary conditions.
virtual void v_Reset()
Reset this field, so that geometry information can be updated.
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed t...
NekDouble GetCoeff(int i)
Get the i th value (coefficient) of m_coeffs.
boost::shared_ptr< MeshGraph1D > MeshGraph1DSharedPtr
std::set< int > m_boundaryVerts
A set storing the global IDs of any boundary edges.
boost::shared_ptr< BoundaryConditions > BoundaryConditionsSharedPtr
boost::shared_ptr< Expansion > ExpansionSharedPtr
void IProductWRTBase(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, CoeffState coeffstate=eLocal)
This class is the abstraction of a one-dimensional multi-elemental expansions which is merely a colle...
ExpListSharedPtr m_trace
Trace space storage for points between elements.
static SpatialDomains::BoundaryConditionShPtr GetBoundaryCondition(const SpatialDomains::BoundaryConditionCollection &collection, unsigned int index, const std::string &variable)
boost::shared_ptr< GlobalLinSys > GlobalLinSysSharedPtr
Pointer to a GlobalLinSys object.
const BoundaryRegionCollection & GetBoundaryRegions(void) const
boost::shared_ptr< BoundaryConditionBase > BoundaryConditionShPtr
boost::shared_ptr< Basis > BasisSharedPtr
PeriodicMap m_periodicVerts
A map which identifies groups of periodic vertices.
T Vsum(int n, const T *x, const int incx)
Subtract return sum(x)
void Zero(int n, T *x, const int incx)
Zero vector.
vector< bool > m_leftAdjacentVerts
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
boost::shared_ptr< MeshGraph > MeshGraphSharedPtr
boost::shared_ptr< Expansion1D > Expansion1DSharedPtr
boost::shared_ptr< BoundaryRegion > BoundaryRegionShPtr
Describes the specification for a Basis.
boost::shared_ptr< PointGeom > PointGeomSharedPtr
virtual void v_GetBoundaryToElmtMap(Array< OneD, int > &ElmtID, Array< OneD, int > &VertID)