File: xdmf_function.h

package info (click to toggle)
fenics-dolfinx 1%3A0.9.0-11
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 5,376 kB
  • sloc: cpp: 33,701; python: 22,338; makefile: 230; sh: 171; xml: 55
file content (37 lines) | stat: -rw-r--r-- 833 bytes parent folder | download | duplicates (6)
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