46 namespace MultiRegions
58 DisContField1D::DisContField1D():
60 m_bndCondExpansions(),
81 const std::string &variable,
82 const bool SetUpJustDG)
84 m_bndCondExpansions(),
87 if (variable.compare(
"DefaultVar") != 0)
113 (*m_exp)[ElmtID[i]]->
114 as<LocalRegions::Expansion1D>();
116 locExpList->GetExp(0)->
117 as<LocalRegions::Expansion0D>();
119 exp0d->SetAdjacentElementExp(VertexID[i], exp1d);
155 if (
m_session->DefinesCmdLineArgument(
"verbose"))
157 m_traceMap->PrintStats(std::cout, variable);
166 int ElmtPointGeom = 0;
167 int TracePointGeom = 0;
170 for (
int i = 0; i <
m_exp->size(); ++i)
173 for (
int j = 0; j < exp1d->GetNverts(); ++j)
175 ElmtPointGeom = (exp1d->GetGeom1D())->GetVid(j);
177 for (
int k = 0; k <
m_trace->GetExpSize(); ++k)
179 TracePointGeom =
m_trace->GetExp(k)->GetGeom()->GetVid(0);
181 if (TracePointGeom == ElmtPointGeom)
204 m_traceMap->GetBndCondTraceToGlobalTraceMap(cnt+e));
209 ASSERTL0(
false,
"Periodic verts need setting up");
218 for (cnt = n = 0; n <
m_exp->size(); ++n)
220 for (
int v = 0; v < (*m_exp)[n]->GetNverts(); ++v, ++cnt)
227 boost::unordered_map<int,pair<int,int> > perVertToExpMap;
228 boost::unordered_map<int,pair<int,int> >
::iterator it2;
229 for (n = 0; n <
m_exp->size(); ++n)
231 for (
int v = 0; v < (*m_exp)[n]->GetNverts(); ++v)
234 (*
m_exp)[n]->GetGeom()->GetVid(v));
238 perVertToExpMap[it->first] = make_pair(n,v);
245 for (n = 0; n <
m_exp->size(); ++n)
247 for (
int v = 0; v < (*m_exp)[n]->GetNverts(); ++v)
249 int vertGeomId = (*m_exp)[n]->GetGeom()->GetVid(v);
257 it2 = perVertToExpMap.find(ent.
id);
259 if (it2 == perVertToExpMap.end())
261 if (
m_session->GetComm()->GetRowComm()->GetSize() > 1 &&
268 ASSERTL1(
false,
"Periodic vert not found!");
272 int offset =
m_trace->GetPhys_Offset((m_traceMap->GetElmtToTrace())
273 [n][v]->GetElmtId());
276 int offset2 =
m_trace->GetPhys_Offset((m_traceMap->GetElmtToTrace())
278 [it2->second.second]->GetElmtId());
294 if (traceEl->GetLeftAdjacentElementVertex () == -1 ||
295 traceEl->GetRightAdjacentElementVertex() == -1)
305 int traceGeomId = traceEl->GetGeom0D()->GetGlobalID();
311 fwd = traceGeomId == min(traceGeomId,pIt->second[0].id);
315 int offset =
m_trace->GetPhys_Offset(traceEl->GetElmtId());
317 GetTraceToUniversalMapUnique(offset) >= 0;
321 else if (traceEl->GetLeftAdjacentElementVertex () != -1 &&
322 traceEl->GetRightAdjacentElementVertex() != -1)
326 (traceEl->GetLeftAdjacentElementExp().get()) ==
331 ASSERTL2(
false,
"Unconnected trace element!");
344 const std::string &variable)
351 map<int,int> GeometryToRegionsMap;
353 SpatialDomains::BoundaryRegionCollection::const_iterator it;
361 for(it = bregions.begin(); it != bregions.end(); ++it)
364 for (bregionIt = it->second->begin();
365 bregionIt != it->second->end(); bregionIt++)
369 int id = (*(bregionIt->second))[0]->GetGlobalID();
370 GeometryToRegionsMap[id] = it->first;
375 map<int,SpatialDomains::GeometrySharedPtr> EndOfDomain;
378 for(domIt = domain.begin(); domIt != domain.end(); ++domIt)
381 for(
int i = 0; i < geomvector->size(); ++i)
383 for(
int j = 0; j < 2; ++j)
385 int vid = (*geomvector)[i]->GetVid(j);
386 if(EndOfDomain.count(vid) == 0)
388 EndOfDomain[vid] = (*geomvector)[i]->GetVertex(j);
392 EndOfDomain.erase(vid);
397 ASSERTL1(EndOfDomain.size() == 2,
"Did not find two ends of domain");
401 for(regIt = EndOfDomain.begin(); regIt != EndOfDomain.end(); ++regIt)
403 if(GeometryToRegionsMap.count(regIt->first) != 0)
406 ASSERTL1(iter != GeometryToRegionsMap.end(),
"Failied to find GeometryToRegionMap");
407 int regionId = iter->second;
408 SpatialDomains::BoundaryRegionCollection::const_iterator bregionsIter = bregions.find(regionId);
409 ASSERTL1(bregionsIter != bregions.end(),
"Failed to find boundary region");
411 returnval->AddBoundaryRegions (regionId,breg);
413 SpatialDomains::BoundaryConditionCollection::const_iterator bconditionsIter = bconditions.find(regionId);
414 ASSERTL1(bconditionsIter != bconditions.end(),
"Failed to find boundary collection");
416 returnval->AddBoundaryConditions(regionId,bcond);
424 gvec->push_back(regIt->second);
425 (*breg)[regIt->first] = gvec;
427 returnval->AddBoundaryRegions(bregions.size()+numNewBc,breg);
433 (*bCondition)[variable] = notDefinedCondition;
435 returnval->AddBoundaryConditions(bregions.size()+numNewBc,bCondition);
456 const std::string &variable,
457 bool SetToOneSpaceDimension):
458 ExpList1D(pSession,graph1D,domain, true,variable,SetToOneSpaceDimension),
459 m_bndCondExpansions(),
462 if (variable.compare(
"DefaultVar") != 0)
481 m_bndCondExpansions(In.m_bndCondExpansions),
482 m_bndConditions(In.m_bndConditions),
483 m_globalBndMat(In.m_globalBndMat),
485 m_traceMap(In.m_traceMap),
486 m_boundaryVerts(In.m_boundaryVerts),
487 m_periodicVerts(In.m_periodicVerts),
488 m_periodicFwdCopy(In.m_periodicFwdCopy),
489 m_periodicBwdCopy(In.m_periodicBwdCopy),
490 m_leftAdjacentVerts(In.m_leftAdjacentVerts)
524 const std::string variable)
532 SpatialDomains::BoundaryRegionCollection::const_iterator it;
535 for (it = bregions.begin(); it != bregions.end(); ++it)
539 if (boundaryCondition->GetBoundaryConditionType() !=
543 for (bregionIt = it->second->begin();
544 bregionIt != it->second->end(); bregionIt++)
546 cnt += bregionIt->second->size();
573 const std::string variable)
581 = boost::dynamic_pointer_cast<
583 SpatialDomains::BoundaryRegionCollection::const_iterator it;
588 int i, region1ID, region2ID;
592 map<int,int> BregionToVertMap;
596 for (it = bregions.begin(); it != bregions.end(); ++it)
600 if (locBCond->GetBoundaryConditionType()
606 int id = (*(it->second->begin()->second))[0]->GetGlobalID();
608 BregionToVertMap[it->first] = id;
614 int n = vComm->GetSize();
615 int p = vComm->GetRank();
618 nregions[
p] = BregionToVertMap.size();
625 for (i = 1; i < n; ++i)
627 regOffset[i] = regOffset[i-1] + nregions[i-1];
632 for(i = regOffset[p], iit = BregionToVertMap.begin();
633 iit != BregionToVertMap.end(); ++iit, ++i)
635 bregid [i] = iit->first;
636 bregmap[i] = iit->second;
637 islocal.insert(iit->first);
643 for (
int i = 0; i < totRegions; ++i)
645 BregionToVertMap[bregid[i]] = bregmap[i];
649 for (it = bregions.begin(); it != bregions.end(); ++it)
653 if (locBCond->GetBoundaryConditionType()
660 region1ID = it->first;
661 region2ID = boost::static_pointer_cast<
663 locBCond)->m_connectedBoundaryRegion;
665 ASSERTL0(BregionToVertMap.count(region1ID) != 0,
666 "Cannot determine vertex of region1ID");
668 ASSERTL0(BregionToVertMap.count(region2ID) != 0,
669 "Cannot determine vertex of region2ID");
673 islocal.count(region2ID) != 0);
695 const std::string variable,
708 SpatialDomains::BoundaryRegionCollection::const_iterator it;
715 for (it = bregions.begin(); it != bregions.end(); ++it)
719 if (locBCond->GetBoundaryConditionType() !=
723 for (bregionIt = it->second->begin();
724 bregionIt != it->second->end(); bregionIt++)
726 for (k = 0; k < bregionIt->second->size(); k++)
728 if((vert = boost::dynamic_pointer_cast
730 (*bregionIt->second)[k])))
735 bndCondExpansions[cnt] = locPointExp;
736 bndConditions[cnt++] = locBCond;
741 "dynamic cast to a vertex failed");
756 "Routine currently only tested for HybridDGHelmholtz");
759 "Full matrix global systems are not supported for HDG "
764 "The local to global map is not set up for the requested "
773 (*m_globalBndMat)[mkey] = glo_matrix;
777 glo_matrix = matrixIter->second;
796 for(
int v = 0; v < 2; ++v)
802 if(vertExp->GetLeftAdjacentElementExp()->GetGeom()->GetGlobalID() != (*m_exp)[i]->GetGeom()->GetGlobalID())
880 for (cnt = n = 0; n < nElements; ++n)
885 for(v = 0; v < 2; ++v, ++cnt)
887 int offset =
m_trace->GetPhys_Offset(elmtToTrace[n][v]->GetElmtId());
891 (*m_exp)[n]->GetVertexPhysVals(v, field + phys_offset,
896 (*m_exp)[n]->GetVertexPhysVals(v, field + phys_offset,
920 "Method not set up for non-zero Neumann "
921 "boundary condition");
936 "Method not set up for this boundary condition.");
979 int n,
p,offset,phys_offset;
982 "input array is of insufficient length");
984 for (n = 0; n < nexp; ++n)
988 for (p = 0; p < (*m_exp)[n]->GetNverts(); ++
p)
990 offset =
m_trace->GetPhys_Offset(
991 (
m_traceMap->GetElmtToTrace())[n][p]->GetElmtId());
992 (*m_exp)[n]->GetVertexPhysVals(p, inarray + phys_offset,
1002 int n,offset, t_offset;
1012 int e_ncoeffs = (*m_exp)[n]->GetNcoeffs();
1017 if ((*
m_exp)[n]->GetBasis(0)->GetBasisType() !=
1020 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][0]->GetElmtId());
1021 if(negatedFluxNormal[2*n])
1023 outarray[offset] -= Fn[t_offset];
1027 outarray[offset] += Fn[t_offset];
1030 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][1]->GetElmtId());
1032 if(negatedFluxNormal[2*n+1])
1034 outarray[offset+(*m_exp)[n]->GetVertexMap(1)] -= Fn[t_offset];
1038 outarray[offset+(*m_exp)[n]->GetVertexMap(1)] += Fn[t_offset];
1058 for(
p = 0;
p < 2; ++
p)
1061 for (
int i=0; i<((*m_exp)[n]->
1062 GetVertexNormal(
p)).num_elements(); i++)
1064 vertnorm += ((*m_exp)[n]->GetVertexNormal(
p))[i][0];
1065 coords[0] = vertnorm ;
1068 t_offset =
GetTrace()->GetPhys_Offset(n+
p);
1070 if (vertnorm >= 0.0)
1072 m_Ixm = BASE->GetI(coords);
1075 for (j = 0; j < e_ncoeffs; j++)
1077 outarray[offset + j] +=
1078 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1084 m_Ixm = BASE->GetI(coords);
1086 for (j = 0; j < e_ncoeffs; j++)
1088 outarray[offset + j] -=
1089 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1096 static int sav_ncoeffs = 0;
1097 if(!m_Ixm.get() || e_ncoeffs != sav_ncoeffs)
1110 m_Ixm = BASE->GetI(coords);
1113 m_Ixp = BASE->GetI(coords);
1115 sav_ncoeffs = e_ncoeffs;
1118 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][0]->GetElmtId());
1119 if(negatedFluxNormal[2*n])
1121 for (j = 0; j < e_ncoeffs; j++)
1123 outarray[offset + j] -=
1124 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1129 for (j = 0; j < e_ncoeffs; j++)
1131 outarray[offset + j] +=
1132 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1136 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][1]->GetElmtId());
1137 if (negatedFluxNormal[2*n+1])
1139 for (j = 0; j < e_ncoeffs; j++)
1141 outarray[offset + j] -=
1142 (m_Ixp->GetPtr())[j] * Fn[t_offset];
1147 for (j = 0; j < e_ncoeffs; j++)
1149 outarray[offset + j] +=
1150 (m_Ixp->GetPtr())[j] * Fn[t_offset];
1166 const bool PhysSpaceForcing)
1177 if(PhysSpaceForcing)
1190 int GloBndDofs =
m_traceMap->GetNumGlobalBndCoeffs();
1191 int NumDirBCs =
m_traceMap->GetNumLocalDirBndCoeffs();
1212 int LocBndCoeffs =
m_traceMap->GetNumLocalBndCoeffs();
1220 for (cnt = n = 0; n < nexp; ++n)
1222 nbndry = (*m_exp)[n]->NumDGBndryCoeffs();
1224 e_ncoeffs = (*m_exp)[n]->GetNcoeffs();
1226 e_l = loc_lambda + cnt;
1231 Floc =
Transpose(*(HDGLamToU->GetBlock(n,n)))*ElmtFce;
1246 id =
m_traceMap->GetBndCondCoeffsToGlobalCoeffsMap(i);
1251 id =
m_traceMap->GetBndCondCoeffsToGlobalCoeffsMap(i);
1259 if (GloBndDofs - NumDirBCs > 0)
1280 m_traceMap->GlobalToLocalBnd(BndSol,loc_lambda);
1283 out = (*InvHDGHelm)*F + (*HDGLamToU)*LocLambda;
1297 const std::string varName,
1324 (boost::static_pointer_cast<SpatialDomains
1326 ->m_dirichletCondition).Evaluate(x0[0],x1[0],x2[0],time));
1333 (boost::static_pointer_cast<SpatialDomains
1335 ->m_neumannCondition).Evaluate(x0[0],x1[0],x2[0],time));
1341 (boost::static_pointer_cast<SpatialDomains
1343 ->m_robinFunction).Evaluate(x0[0],x1[0],x2[0],time));
1352 ASSERTL0(
false,
"This type of BC not implemented yet");
1363 map<int, int> VertGID;
1369 if (ElmtID.num_elements() != nbcs)
1375 fill(ElmtID.get(), ElmtID.get()+nbcs, -1);
1378 if (VertID.num_elements() != nbcs)
1387 VertGID[Vid] = cnt++;
1395 for(i = 0; i < exp->GetNverts(); ++i)
1397 id = exp->GetGeom()->GetVid(i);
1399 if (VertGID.count(
id) > 0)
1401 bid = VertGID.find(
id)->second;
1402 ASSERTL1(ElmtID[bid] == -1,
"Edge already set");
1410 ASSERTL1(cnt == nbcs,
"Failed to visit all boundary condtiions");
1414 boost::shared_ptr<ExpList> &result,
1415 const bool DeclareCoeffPhysArrays)
1418 int offsetOld, offsetNew;
1419 std::vector<unsigned int> eIDs;
1425 for (cnt = n = 0; n < i; ++n)
1433 eIDs.push_back(ElmtID[cnt+n]);
1439 (*
this, eIDs, DeclareCoeffPhysArrays);
1442 if( DeclareCoeffPhysArrays)
1445 for (n = 0; n < result->GetExpSize(); ++n)
1447 nq =
GetExp(ElmtID[cnt+n])->GetTotPoints();
1449 offsetNew = result->GetPhys_Offset(n);
1451 tmp2 = result->UpdatePhys()+ offsetNew, 1);
1453 nq =
GetExp(ElmtID[cnt+n])->GetNcoeffs();
1455 offsetNew = result->GetCoeff_Offset(n);
1457 tmp2 = result->UpdateCoeffs()+ offsetNew, 1);
1493 map<int, RobinBCInfoSharedPtr> returnval;
1513 ->m_robinPrimitiveCoeff).Evaluate(x0[0],x1[0],x2[0],0.0);
1522 if(returnval.count(elmtid) != 0)
1524 rInfo->next = returnval.find(elmtid)->second;
1526 returnval[elmtid] = rInfo;
virtual void v_GetBndElmtExpansion(int i, boost::shared_ptr< ExpList > &result, const bool DeclareCoeffPhysArrays)
GlobalSysSolnType GetGlobalSysSolnType() const
Return the associated solution type.
const DNekScalBlkMatSharedPtr & GetBlockMatrix(const GlobalMatrixKey &gkey)
const Array< OneD, const NekDouble > & GetCoeffs() const
This function returns (a reference to) the array (implemented as m_coeffs) containing all local expa...
#define ASSERTL0(condition, msg)
virtual void v_Reset()
Reset geometry information, metrics, matrix managers and geometry information.
std::vector< bool > m_negatedFluxNormal
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 std::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.
const boost::shared_ptr< LocalRegions::ExpansionVector > GetExp() const
This function returns the vector of elements in the expansion.
Lagrange Polynomials using the Gauss points .
SpatialDomains::BoundaryConditionsSharedPtr GetDomainBCs(const SpatialDomains::CompositeMap &domain, const SpatialDomains::BoundaryConditions &Allbcs, const std::string &variable)
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.
std::vector< bool > m_leftAdjacentVerts
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)
void Smul(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha*y.
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.
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
boost::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
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.
boost::shared_ptr< Expansion > ExpansionSharedPtr
std::map< int, BoundaryConditionMapShPtr > BoundaryConditionCollection
boost::shared_ptr< GeometryVector > Composite
static const NekDouble kNekUnsetDouble
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, const bool PhysSpaceForcing)
Solve the Helmholtz equation.
Describe a linear system.
std::map< int, Composite > CompositeMap
StdRegions::MatrixType GetMatrixType() const
Return the matrix type.
std::vector< int > m_periodicBwdCopy
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
std::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
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.
std::vector< int > m_periodicFwdCopy
A vector indicating degress of freedom which need to be copied from forwards to backwards space in ca...
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.
#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
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
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)