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.7.3
DOLFINx C++ interface
Loading...
Searching...
No Matches
xdmf_function.h
1// Copyright (C) 2012-2023 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 <concepts>
11#include <dolfinx/common/types.h>
12#include <hdf5.h>
13#include <mpi.h>
14
15namespace pugi
16{
17class xml_node;
18} // namespace pugi
19
20namespace dolfinx
21{
22namespace fem
23{
24template <dolfinx::scalar T, std::floating_point U>
25class Function;
26}
27
29namespace io::xdmf_function
30{
31
33template <dolfinx::scalar T, std::floating_point U>
34void add_function(MPI_Comm comm, const fem::Function<T, U>& u, double t,
35 pugi::xml_node& xml_node, const hid_t h5_id);
36} // namespace io::xdmf_function
37} // namespace dolfinx
This class represents a function in a finite element function space , given by.
Definition Function.h:45
void add_function(MPI_Comm comm, const fem::Function< T, U > &u, double t, pugi::xml_node &xml_node, const hid_t h5_id)
Write a fem::Function to XDMF.
Definition xdmf_function.cpp:47
Top-level namespace.
Definition defines.h:12