DOLFIN
DOLFIN C++ interface
Loading...
Searching...
No Matches
XMLFunctionData.h
1// Copyright (C) 2011 Garth N. Wells
2//
3// This file is part of DOLFIN.
4//
5// DOLFIN is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// DOLFIN is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17//
18// First added: 2011-09-27
19// Last changed: 2011-09-27
20
21#ifndef __XMLFUNCTIONDATA_H
22#define __XMLFUNCTIONDATA_H
23
24#include <ostream>
25#include <vector>
26
27namespace pugi
28{
29 class xml_node;
30}
31
32namespace dolfin
33{
34
35 class Function;
36
38
40 {
41 public:
42
44 static void read(Function& u, pugi::xml_node xml_node);
45
47 static void write(const Function& u, pugi::xml_node xml_node);
48
49 private:
50
51 static void build_global_to_cell_dof(std::vector<std::vector<
52 std::pair<dolfin::la_index, dolfin::la_index> > >& global_dof_to_cell_dof,
53 const FunctionSpace& V);
54
55 static void build_dof_map(std::vector<std::vector<dolfin::la_index>
56 >& global_dof_to_cell_dof,
57 const FunctionSpace& V);
58
59 };
60
61}
62
63#endif
Definition FunctionSpace.h:54
Definition Function.h:66
I/O for XML representation of Function.
Definition XMLFunctionData.h:40
static void read(Function &u, pugi::xml_node xml_node)
Read the XML file with function data.
Definition XMLFunctionData.cpp:47
static void write(const Function &u, pugi::xml_node xml_node)
Write the XML file with function data.
Definition XMLFunctionData.cpp:145
Definition adapt.h:30