Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/d2/d4f/xdmf__function_8h_source.html
DOLFINx 0.6.0
DOLFINx C++ interface
Loading...
Searching...
No Matches
xdmf_function.h
1// Copyright (C) 2012-2018 Chris N. Richardson and Garth N. Wells
2//
3// This file is part of DOLFINx (https://www.fenicsproject.org)
4//
5// SPDX-License-Identifier: LGPL-3.0-or-later
6
7#pragma once
8
9#include <complex>
10#include <hdf5.h>
11#include <mpi.h>
12
13namespace pugi
14{
15class xml_node;
16} // namespace pugi
17
18namespace dolfinx
19{
20namespace fem
21{
22template <typename T>
23class Function;
24}
25
26namespace io
27{
29namespace xdmf_function
30{
31
33void add_function(MPI_Comm comm, const fem::Function<double>& u, const double t,
34 pugi::xml_node& xml_node, const hid_t h5_id);
35
37void add_function(MPI_Comm comm, const fem::Function<std::complex<double>>& u,
38 const double t, pugi::xml_node& xml_node, const hid_t h5_id);
39
40} // namespace xdmf_function
41} // namespace io
42} // namespace dolfinx
This class represents a function in a finite element function space , given by.
Definition: Function.h:43
void add_function(MPI_Comm comm, const fem::Function< double > &u, const double t, pugi::xml_node &xml_node, const hid_t h5_id)
TODO.
Definition: xdmf_function.cpp:183