MFEM
v3.0
Main Page
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, Lawrence Livermore National Security, LLC. Produced at
2
// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
3
// reserved. See file COPYRIGHT for details.
4
//
5
// This file is part of the MFEM library. For more information and source code
6
// availability see http://mfem.googlecode.com.
7
//
8
// MFEM is free software; you can redistribute it and/or modify it under the
9
// terms of the GNU Lesser General Public License (as published by the Free
10
// Software Foundation) version 2.1 dated February 1999.
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
attribute
= attr;
20
indices
[0] = ind[0];
21
}
22
23
void
Point::GetVertices
(
Array<int>
&v )
const
{
24
v.
SetSize
( 1 );
25
v[0] =
indices
[0];
26
}
27
28
PointFiniteElement
PointFE
;
29
30
int
RefinedElement::State
=
RefinedElement::FINE
;
31
32
}
mfem::RefinedElement::FINE
Definition:
element.hpp:96
mfem::PointFiniteElement
Definition:
fe.hpp:330
mfem::PointFE
PointFiniteElement PointFE
Definition:
point.cpp:28
mfem::Array< int >
mesh_headers.hpp
mfem::RefinedElement::State
static int State
Definition:
element.hpp:99
mfem::Element::attribute
int attribute
Element's attribute (specifying material property, etc).
Definition:
element.hpp:32
mfem::Array::SetSize
void SetSize(int nsize)
Change logical size of the array, keep existing entries.
Definition:
array.hpp:293
mfem::Point::indices
int indices[1]
Definition:
point.hpp:25
mfem::Geometry
Definition:
geom.hpp:29
mfem::Element
Abstract data type element.
Definition:
element.hpp:27
mfem::Point::GetVertices
virtual int * GetVertices()
Definition:
point.hpp:40
mfem::Point::Point
Point()
Definition:
point.hpp:29
Generated on Fri Feb 18 2022 18:57:40 for MFEM by
1.8.5