MFEM
v4.1.0
Finite element discretization library
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
mesh
point.cpp
Go to the documentation of this file.
1
// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
2
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
3
// LICENSE and NOTICE for details. LLNL-CODE-806117.
4
//
5
// This file is part of the MFEM library. For more information and source code
6
// availability visit https://mfem.org.
7
//
8
// MFEM is free software; you can redistribute it and/or modify it under the
9
// terms of the BSD-3 license. We welcome feedback and contributions, see file
10
// CONTRIBUTING.md for details.
11
12
13
#include "
mesh_headers.hpp
"
14
15
namespace
mfem
16
{
17
18
Point::Point
(
const
int
*ind,
int
attr ) :
Element
(
Geometry
::POINT)
19
{
20
attribute
= attr;
21
indices
[0] = ind[0];
22
}
23
24
void
Point::GetVertices
(
Array<int>
&v )
const
25
{
26
v.
SetSize
( 1 );
27
v[0] =
indices
[0];
28
}
29
30
PointFiniteElement
PointFE
;
31
32
}
mfem::PointFiniteElement
Definition:
fe.hpp:812
mfem::PointFE
PointFiniteElement PointFE
Definition:
point.cpp:30
mfem::Array< int >
mesh_headers.hpp
mfem::Element::attribute
int attribute
Element's attribute (specifying material property, etc).
Definition:
element.hpp:33
mfem::Array::SetSize
void SetSize(int nsize)
Change logical size of the array, keep existing entries.
Definition:
array.hpp:635
mfem::Point::indices
int indices[1]
Definition:
point.hpp:25
mfem::Geometry
Definition:
geom.hpp:31
mfem::Element
Abstract data type element.
Definition:
element.hpp:28
mfem::Point::GetVertices
virtual int * GetVertices()
Definition:
point.hpp:41
mfem::Point::Point
Point()
Definition:
point.hpp:30
Generated on Fri Feb 18 2022 18:54:19 for MFEM by
1.8.5