1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
// Copyright (C) 2012-2023 Chris N. Richardson and Garth N. Wells
//
// This file is part of DOLFINx (https://www.fenicsproject.org)
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#pragma once
#include <complex>
#include <concepts>
#include <dolfinx/common/types.h>
#include <hdf5.h>
#include <mpi.h>
namespace pugi
{
class xml_node;
} // namespace pugi
namespace dolfinx
{
namespace fem
{
template <dolfinx::scalar T, std::floating_point U>
class Function;
}
/// Low-level methods for reading/writing XDMF files
namespace io::xdmf_function
{
/// Write a fem::Function to XDMF
template <dolfinx::scalar T, std::floating_point U>
void add_function(MPI_Comm comm, const fem::Function<T, U>& u, double t,
pugi::xml_node& xml_node, const hid_t h5_id);
} // namespace io::xdmf_function
} // namespace dolfinx
|