DOLFINx 0.8.0
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
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:46
Top-level namespace.
Definition defines.h:12