MFEM  v3.4
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
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.org.
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 {
20  attribute = attr;
21  indices[0] = ind[0];
22 }
23 
25 {
26  v.SetSize( 1 );
27  v[0] = indices[0];
28 }
29 
31 
32 }
PointFiniteElement PointFE
Definition: point.cpp:30
int attribute
Element's attribute (specifying material property, etc).
Definition: element.hpp:32
void SetSize(int nsize)
Change logical size of the array, keep existing entries.
Definition: array.hpp:569
int indices[1]
Definition: point.hpp:25
Abstract data type element.
Definition: element.hpp:27
virtual int * GetVertices()
Definition: point.hpp:41