DOLFINx 0.12.0.0
DOLFINx C++
Loading...
Searching...
No Matches
Function.h
1// Copyright (C) 2003-2026 Anders Logg, Garth N. Wells and Massimiliano Leoni
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 "DofMap.h"
10#include "FiniteElement.h"
11#include "FunctionSpace.h"
12#include "interpolate.h"
13#include <algorithm>
14#include <basix/mdspan.hpp>
15#include <concepts>
16#include <dolfinx/common/IndexMap.h>
17#include <dolfinx/common/types.h>
18#include <dolfinx/la/Vector.h>
19#include <dolfinx/mesh/Geometry.h>
20#include <dolfinx/mesh/Mesh.h>
21#include <dolfinx/mesh/Topology.h>
22#include <functional>
23#include <memory>
24#include <numeric>
25#include <span>
26#include <stdexcept>
27#include <string>
28#include <utility>
29#include <vector>
30
31namespace dolfinx::fem
32{
42template <dolfinx::scalar T, std::floating_point U = dolfinx::scalar_value_t<T>>
44{
45public:
48 using value_type = T;
50 using geometry_type = U;
51
55 explicit Function(std::shared_ptr<const FunctionSpace<geometry_type>> V,
56 std::string name = "u")
57 : name(std::move(name)), _function_space(V),
58 _x(std::make_shared<la::Vector<value_type>>(
59 V->dofmaps().front()->index_map,
60 V->dofmaps().front()->index_map_bs()))
61 {
62 if (!V->component().empty())
63 {
64 throw std::invalid_argument(
65 "Cannot create Function from subspace. Consider "
66 "collapsing the function space");
67 }
68 }
69
79 Function(std::shared_ptr<const FunctionSpace<geometry_type>> V,
80 std::shared_ptr<la::Vector<value_type>> x, std::string name = "u")
81 : name(std::move(name)), _function_space(V), _x(x)
82 {
83 // NOTE: We do not check for a subspace since this constructor is
84 // used for creating subfunctions
85
86 // Assertion uses '<=' to deal with sub-functions
87 assert(V->dofmap());
88 assert(V->dofmap()->index_map->size_global() * V->dofmap()->index_map_bs()
89 <= _x->bs() * _x->index_map()->size_global());
90 }
91
92 // Copy constructor
93 Function(const Function& v) = delete;
94
96 Function(Function&& v) = default;
97
99 ~Function() = default;
100
102 Function& operator=(Function&& v) = default;
103
104 // Assignment
105 Function& operator=(const Function& v) = delete;
106
110 Function sub(int i) const
111 {
112 auto sub_space = std::make_shared<FunctionSpace<geometry_type>>(
113 _function_space->sub({i}));
114 assert(sub_space);
115 return Function(sub_space, _x);
116 }
117
122 {
123 // Create new collapsed FunctionSpace
124 auto [V, map] = _function_space->collapse();
125
126 // Create new vector
127 auto x = std::make_shared<la::Vector<value_type>>(
128 V.dofmap()->index_map, V.dofmap()->index_map_bs());
129
130 // Copy values into new vector
131 std::span<const value_type> x_old = _x->array();
132 std::span<value_type> x_new = x->array();
133 for (auto mapj : map)
134 {
135 for (std::size_t i = 0; i < mapj.size(); ++i)
136 {
137 assert(i < x_new.size());
138 assert(static_cast<std::size_t>(mapj[i]) < x_old.size());
139 x_new[i] = x_old[mapj[i]];
140 }
141 }
142
143 return Function(
144 std::make_shared<FunctionSpace<geometry_type>>(std::move(V)), x);
145 }
146
149 std::shared_ptr<const FunctionSpace<geometry_type>> function_space() const
150 {
151 return _function_space;
152 }
153
155 std::shared_ptr<const la::Vector<value_type>> x() const { return _x; }
156
158 std::shared_ptr<la::Vector<value_type>> x() { return _x; }
159
169 const std::function<
170 std::pair<std::vector<value_type>, std::vector<std::size_t>>(
171 md::mdspan<const geometry_type,
172 md::extents<std::size_t, 3, md::dynamic_extent>>)>& f,
173 mesh::CellRange auto&& cells)
174 {
175 assert(_function_space);
176 assert(_function_space->element());
177 assert(_function_space->mesh());
178 const std::vector<geometry_type> x
180 *_function_space->element(), _function_space->mesh()->geometry(),
181 cells);
182 md::mdspan<const geometry_type,
183 md::extents<std::size_t, 3, md::dynamic_extent>>
184 x_view(x.data(), 3, x.size() / 3);
185
186 const auto [fx, fshape] = f(x_view);
187 assert(fshape.size() <= 2);
188 if (std::size_t vs = _function_space->element()->value_size();
189 vs == 1 and fshape.size() == 1)
190 {
191 // Check for scalar-valued functions
192 if (fshape.front() != x.size() / 3)
193 {
194 throw std::invalid_argument(
195 "Data returned by callable has wrong length");
196 }
197 }
198 else
199 {
200 // Check for vector/tensor value
201 if (fshape.size() != 2)
202 throw std::invalid_argument("Expected 2D array of data");
203
204 // A symmetric rank-2 tensor space also accepts only the
205 // components it stores
206 if (fshape[0] != vs
207 and !(_function_space->symmetric()
208 and fshape[0]
209 == static_cast<std::size_t>(
210 _function_space->element()->block_size())))
211 {
212 throw std::invalid_argument(
213 "Data returned by callable has wrong shape(0) size");
214 }
215
216 if (fshape[1] != x.size() / 3)
217 {
218 throw std::invalid_argument(
219 "Data returned by callable has wrong shape(1) size");
220 }
221 }
222
223 std::array<std::size_t, 2> _fshape;
224 if (fshape.size() == 1)
225 _fshape = {1, fshape[0]};
226 else
227 _fshape = {fshape[0], fshape[1]};
228
229 fem::interpolate(*this, std::span<const value_type>(fx.data(), fx.size()),
230 _fshape, cells);
231 }
232
237 const std::function<
238 std::pair<std::vector<value_type>, std::vector<std::size_t>>(
239 md::mdspan<const geometry_type,
240 md::extents<std::size_t, 3, md::dynamic_extent>>)>& f)
241 {
242 assert(_function_space);
243 assert(_function_space->mesh());
244 int tdim = _function_space->mesh()->topology()->dim();
245 auto cmap = _function_space->mesh()->topology()->index_map(tdim);
246 assert(cmap);
247 std::int32_t num_cells = cmap->size_local() + cmap->num_ghosts();
248 interpolate(f, std::ranges::iota_view(0, num_cells));
249 }
250
267 mesh::CellRange auto&& cells0, mesh::CellRange auto&& cells1)
268 {
269 fem::interpolate(*this, cells1, u0, cells0);
270 }
271
279 mesh::CellRange auto&& cells)
280 {
281 fem::interpolate(*this, u, cells);
282 }
283
290 {
291 assert(_function_space);
292 assert(_function_space->mesh());
293 int tdim = _function_space->mesh()->topology()->dim();
294 auto cmap = _function_space->mesh()->topology()->index_map(tdim);
295 assert(cmap);
296 fem::interpolate(*this, u);
297 }
298
312 mesh::CellRange auto&& cells, double tol, int maxit,
313 const geometry::PointOwnershipData<U>& interpolation_data)
314 {
315 fem::interpolate(*this, u, cells, tol, maxit, interpolation_data);
316 }
317
334 void eval(std::span<const geometry_type> x, std::array<std::size_t, 2> xshape,
335 mesh::CellRange auto&& cells, std::span<value_type> u,
336 std::array<std::size_t, 2> ushape, double tol, int maxit) const
337 {
338 if (cells.empty())
339 return;
340
341 assert(x.size() == xshape[0] * xshape[1]);
342 assert(u.size() == ushape[0] * ushape[1]);
343
344 // TODO: This could be easily made more efficient by exploiting
345 // points being ordered by the cell to which they belong.
346
347 if (xshape[0] != cells.size())
348 {
349 throw std::invalid_argument(
350 "Number of points and number of cells must be equal.");
351 }
352
353 if (xshape[0] != ushape[0])
354 {
355 throw std::invalid_argument(
356 "Length of array for Function values must be the "
357 "same as the number of points.");
358 }
359
360 // Get mesh
361 assert(_function_space);
362 auto mesh = _function_space->mesh();
363 assert(mesh);
364 const std::size_t gdim = mesh->geometry().dim();
365 const std::size_t tdim = mesh->topology()->dim();
366 auto map = mesh->topology()->index_map(tdim);
367
368 // Get coordinate map
370 = mesh->geometry().cmaps().front();
371
372 // Get geometry data
373 auto x_dofmap = mesh->geometry().dofmaps().front();
374 const std::size_t num_dofs_g = cmap.dim();
375 auto x_g = mesh->geometry().x();
376
377 // Get element
378 auto element = _function_space->element();
379 assert(element);
380 const int bs_element = element->block_size();
381 const std::size_t reference_value_size = element->reference_value_size();
382 // Size of the push-forward output for one block. On a manifold a
383 // Piola-mapped element has gdim physical components and only tdim
384 // reference ones.
385 const std::size_t value_size = element->physical_base_value_size();
386 const std::size_t space_dimension = element->space_dimension() / bs_element;
387
388 // If the space has sub elements, concatenate the evaluations on the
389 // sub elements
390 const int num_sub_elements = element->num_sub_elements();
391 if (num_sub_elements > 1 and num_sub_elements != bs_element)
392 {
393 throw std::invalid_argument("Function::eval is not supported for mixed "
394 "elements. Extract subspaces.");
395 }
396
397 // Create work vector for expansion coefficients
398 std::vector<value_type> coefficients(space_dimension * bs_element);
399
400 // Get dofmap
401 std::shared_ptr<const DofMap> dofmap = _function_space->dofmap();
402 assert(dofmap);
403 const int bs_dof = dofmap->bs();
404
405 std::span<const std::uint32_t> cell_info;
406 if (element->needs_dof_transformations())
407 {
408 mesh->topology_mutable()->create_cell_permutations();
409 cell_info = std::span(mesh->topology()->get_cell_permutation_info());
410 }
411
412 std::vector<geometry_type> coord_dofs_b(num_dofs_g * gdim);
413 impl::mdspan_t<geometry_type, 2> coord_dofs(coord_dofs_b.data(), num_dofs_g,
414 gdim);
415 std::vector<geometry_type> xp_b(1 * gdim);
416 impl::mdspan_t<geometry_type, 2> xp(xp_b.data(), 1, gdim);
417
418 // Loop over points
419 std::ranges::fill(u, 0);
420 std::span<const value_type> _v = _x->array();
421
422 // Evaluate geometry basis at point (0, 0, 0) on the reference cell.
423 // Used in affine case.
424 std::array<std::size_t, 4> phi0_shape = cmap.tabulate_shape(1, 1);
425 std::vector<geometry_type> phi0_b(std::reduce(
426 phi0_shape.begin(), phi0_shape.end(), 1, std::multiplies{}));
427 impl::mdspan_t<const geometry_type, 4> phi0(phi0_b.data(), phi0_shape);
428 cmap.tabulate(1, std::vector<geometry_type>(tdim), {1, tdim}, phi0_b);
429 auto dphi0
430 = md::submdspan(phi0, std::pair(1, tdim + 1), 0, md::full_extent, 0);
431
432 // Data structure for evaluating geometry basis at specific points.
433 // Used in non-affine case.
434 std::array<std::size_t, 4> phi_shape = cmap.tabulate_shape(1, 1);
435 std::vector<geometry_type> phi_b(
436 std::reduce(phi_shape.begin(), phi_shape.end(), 1, std::multiplies{}));
437 impl::mdspan_t<const geometry_type, 4> phi(phi_b.data(), phi_shape);
438 auto dphi
439 = md::submdspan(phi, std::pair(1, tdim + 1), 0, md::full_extent, 0);
440
441 // Reference coordinates for each point
442 std::vector<geometry_type> Xb(xshape[0] * tdim);
443 impl::mdspan_t<geometry_type, 2> X(Xb.data(), xshape[0], tdim);
444
445 // Geometry data at each point
446 std::vector<geometry_type> J_b(xshape[0] * gdim * tdim);
447 impl::mdspan_t<geometry_type, 3> J(J_b.data(), xshape[0], gdim, tdim);
448 std::vector<geometry_type> K_b(xshape[0] * tdim * gdim);
449 impl::mdspan_t<geometry_type, 3> K(K_b.data(), xshape[0], tdim, gdim);
450 std::vector<geometry_type> detJ(xshape[0]);
451 std::vector<geometry_type> det_scratch(2 * gdim * tdim);
452
453 // Scratch space for pull-back of point coordinates for non-affine cells
454 std::vector<geometry_type> pull_back_scratch(
455 cmap.is_affine() ? 0 : cmap.pull_back_working_size(gdim));
456
457 // Prepare geometry data in each cell
458 for (auto cell_it = cells.begin(); cell_it != cells.end(); ++cell_it)
459 {
460 // Skip negative cell indices
461 if (*cell_it < 0)
462 continue;
463
464 // Get cell geometry (coordinate dofs)
465 auto x_dofs = md::submdspan(x_dofmap, *cell_it, md::full_extent);
466 assert(x_dofs.size() == num_dofs_g);
467 for (std::size_t i = 0; i < num_dofs_g; ++i)
468 {
469 const int pos = 3 * x_dofs[i];
470 for (std::size_t j = 0; j < gdim; ++j)
471 coord_dofs(i, j) = x_g[pos + j];
472 }
473
474 std::size_t p = std::ranges::distance(cells.begin(), cell_it);
475 for (std::size_t j = 0; j < gdim; ++j)
476 xp(0, j) = x[p * xshape[1] + j];
477
478 auto _J = md::submdspan(J, p, md::full_extent, md::full_extent);
479 auto _K = md::submdspan(K, p, md::full_extent, md::full_extent);
480
481 std::array<geometry_type, 3> Xpb{0, 0, 0};
482 md::mdspan<geometry_type, md::extents<std::size_t, 1, md::dynamic_extent>>
483 Xp(Xpb.data(), 1, tdim);
484
485 // Compute reference coordinates X, and J, detJ and K
486 if (cmap.is_affine())
487 {
489 _J);
491 std::array<geometry_type, 3> x0{0, 0, 0};
492 for (std::size_t i = 0; i < coord_dofs.extent(1); ++i)
493 x0[i] += coord_dofs(0, i);
495 detJ[p]
497 _J, det_scratch);
498 }
499 else
500 {
501 // Pull-back physical point xp to reference coordinate Xp
502 cmap.pull_back_nonaffine(Xp, xp, coord_dofs, pull_back_scratch, tol,
503 maxit);
504 cmap.tabulate(1, std::span(Xpb.data(), tdim), {1, tdim}, phi_b);
506 _J);
508 detJ[p]
510 _J, det_scratch);
511 }
512
513 for (std::size_t j = 0; j < X.extent(1); ++j)
514 X(p, j) = Xpb[j];
515 }
516
517 // Prepare basis function data structures
518 std::vector<geometry_type> basis_derivatives_reference_values_b(
519 1 * xshape[0] * space_dimension * reference_value_size);
520 impl::mdspan_t<const geometry_type, 4> basis_derivatives_reference_values(
521 basis_derivatives_reference_values_b.data(), 1, xshape[0],
522 space_dimension, reference_value_size);
523 std::vector<geometry_type> basis_values_b(space_dimension * value_size);
524 impl::mdspan_t<geometry_type, 2> basis_values(basis_values_b.data(),
525 space_dimension, value_size);
526
527 // Compute basis on reference element
528 element->tabulate(basis_derivatives_reference_values_b, Xb,
529 {X.extent(0), X.extent(1)}, 0);
530
531 using xu_t = impl::mdspan_t<geometry_type, 2>;
532 using xU_t = impl::mdspan_t<const geometry_type, 2>;
533 using xJ_t = impl::mdspan_t<const geometry_type, 2>;
534 using xK_t = impl::mdspan_t<const geometry_type, 2>;
535 auto push_forward_fn
536 = element->basix_element().template map_fn<xu_t, xU_t, xJ_t, xK_t>();
537
538 // Transformation function for basis function values
539 auto apply_dof_transformation
540 = element->template dof_transformation_fn<geometry_type>(
542
543 // Size of tensor for symmetric elements, unused in non-symmetric
544 // case, but placed outside the loop for pre-computation.
545 int matrix_size = 0;
546 if (element->symmetric())
547 {
548 while (matrix_size * matrix_size < (int)ushape[1])
549 ++matrix_size;
550 }
551
552 const std::size_t num_basis_values = space_dimension * reference_value_size;
553 for (auto cell_it = cells.begin(); cell_it != cells.end(); ++cell_it)
554 {
555 if (*cell_it < 0) // Skip negative cell indices
556 continue;
557
558 // Permute the reference basis function values to account for the
559 // cell's orientation
560 std::size_t p = std::ranges::distance(cells.begin(), cell_it);
561 if (apply_dof_transformation)
562 {
563 apply_dof_transformation(
564 std::span(basis_derivatives_reference_values_b.data()
565 + p * num_basis_values,
566 num_basis_values),
567 cell_info, *cell_it, reference_value_size);
568 }
569
570 {
571 auto _U = md::submdspan(basis_derivatives_reference_values, 0, p,
572 md::full_extent, md::full_extent);
573 auto _J = md::submdspan(J, p, md::full_extent, md::full_extent);
574 auto _K = md::submdspan(K, p, md::full_extent, md::full_extent);
575 push_forward_fn(basis_values, _U, _J, detJ[p], _K);
576 }
577
578 // Get degrees of freedom for current cell
579 std::span<const std::int32_t> dofs = dofmap->cell_dofs(*cell_it);
580 for (std::size_t i = 0; i < dofs.size(); ++i)
581 for (int k = 0; k < bs_dof; ++k)
582 coefficients[bs_dof * i + k] = _v[bs_dof * dofs[i] + k];
583
584 if (element->symmetric())
585 {
586 // Compute expansion
587 int row = 0;
588 int rowstart = 0;
589 for (int k = 0; k < bs_element; ++k)
590 {
591 if (k - rowstart > row)
592 {
593 row++;
594 rowstart = k;
595 }
596 for (std::size_t i = 0; i < space_dimension; ++i)
597 {
598 for (std::size_t j = 0; j < value_size; ++j)
599 {
600 u[p * ushape[1]
601 + (j * bs_element + row * matrix_size + k - rowstart)]
602 += coefficients[bs_element * i + k] * basis_values(i, j);
603 if (k - rowstart != row)
604 {
605 u[p * ushape[1]
606 + (j * bs_element + row + matrix_size * (k - rowstart))]
607 += coefficients[bs_element * i + k] * basis_values(i, j);
608 }
609 }
610 }
611 }
612 }
613 else
614 {
615 // Compute expansion
616 for (int k = 0; k < bs_element; ++k)
617 {
618 for (std::size_t i = 0; i < space_dimension; ++i)
619 {
620 for (std::size_t j = 0; j < value_size; ++j)
621 {
622 u[p * ushape[1] + (j * bs_element + k)]
623 += coefficients[bs_element * i + k] * basis_values(i, j);
624 }
625 }
626 }
627 }
628 }
629 }
630
632 std::string name;
633
634private:
635 // Function space
636 std::shared_ptr<const FunctionSpace<geometry_type>> _function_space;
637
638 // Vector of expansion coefficients (local)
639 std::shared_ptr<la::Vector<value_type>> _x;
640};
641
642} // namespace dolfinx::fem
Degree-of-freedom map representations and tools.
Definition CoordinateElement.h:39
static void compute_jacobian(const U &dphi, const V &cell_geometry, W &&J)
Definition CoordinateElement.h:141
void tabulate(int nd, std::span< const T > X, std::array< std::size_t, 2 > shape, std::span< T > basis) const
Evaluate basis values and derivatives at set of points.
Definition CoordinateElement.cpp:71
std::size_t pull_back_working_size(std::size_t gdim) const
Compute the working array size required for pull back.
Definition CoordinateElement.cpp:265
static void compute_jacobian_inverse(const U &J, V &&K)
Compute the inverse of the Jacobian.
Definition CoordinateElement.h:150
void pull_back_nonaffine(mdspan2_t< T > X, mdspan2_t< const T > x, mdspan2_t< const T > cell_geometry, std::span< T > working_array, double tol, int maxit) const
Compute reference coordinates X for physical coordinates x for a non-affine map.
Definition CoordinateElement.cpp:100
std::array< std::size_t, 4 > tabulate_shape(std::size_t nd, std::size_t num_points) const
Shape of array to fill when calling tabulate.
Definition CoordinateElement.cpp:64
int dim() const
The dimension of the coordinate element space.
Definition CoordinateElement.cpp:237
bool is_affine() const noexcept
Check if geometry map is affine.
Definition CoordinateElement.h:297
static double compute_jacobian_determinant(const U &J, std::span< typename U::value_type > w)
Compute the determinant of the Jacobian.
Definition CoordinateElement.h:167
static void pull_back_affine(U &&X, const V &K, std::array< T, 3 > x0, const W &x)
Compute reference coordinates X for physical coordinates x for an affine map. For the affine case,...
Definition CoordinateElement.h:223
This class represents a finite element function space defined by a mesh, a finite element,...
Definition FunctionSpace.h:36
Definition Function.h:44
U geometry_type
Geometry type of the Mesh that the Function is defined on.
Definition Function.h:50
void interpolate(const Function< value_type, geometry_type > &u, mesh::CellRange auto &&cells)
Interpolate a Function over a subset of cells.
Definition Function.h:278
Function(std::shared_ptr< const FunctionSpace< geometry_type > > V, std::string name="u")
Create function on given function space.
Definition Function.h:55
void interpolate(const Function< value_type, geometry_type > &u)
Interpolate a Function over all cells.
Definition Function.h:289
std::shared_ptr< const FunctionSpace< geometry_type > > function_space() const
Access the function space.
Definition Function.h:149
void interpolate(const std::function< std::pair< std::vector< value_type >, std::vector< std::size_t > >(md::mdspan< const geometry_type, md::extents< std::size_t, 3, md::dynamic_extent > >)> &f, mesh::CellRange auto &&cells)
Interpolate an expression f(x) over a set of cells.
Definition Function.h:168
void interpolate(const Function< value_type, geometry_type > &u0, mesh::CellRange auto &&cells0, mesh::CellRange auto &&cells1)
Interpolate a Function over a subset of cells.
Definition Function.h:266
void eval(std::span< const geometry_type > x, std::array< std::size_t, 2 > xshape, mesh::CellRange auto &&cells, std::span< value_type > u, std::array< std::size_t, 2 > ushape, double tol, int maxit) const
Evaluate the Function at points.
Definition Function.h:334
Function collapse() const
Collapse a subfunction (view into a Function) to a stand-alone Function.
Definition Function.h:121
void interpolate(const std::function< std::pair< std::vector< value_type >, std::vector< std::size_t > >(md::mdspan< const geometry_type, md::extents< std::size_t, 3, md::dynamic_extent > >)> &f)
Interpolate an expression f(x) on the whole domain.
Definition Function.h:236
Function sub(int i) const
Extract a sub-function (a view into the Function).
Definition Function.h:110
std::string name
Name.
Definition Function.h:632
std::shared_ptr< la::Vector< value_type > > x()
Underlying vector.
Definition Function.h:158
void interpolate(const Function< value_type, geometry_type > &u, mesh::CellRange auto &&cells, double tol, int maxit, const geometry::PointOwnershipData< U > &interpolation_data)
Interpolate a Function defined on a different mesh.
Definition Function.h:311
Function(std::shared_ptr< const FunctionSpace< geometry_type > > V, std::shared_ptr< la::Vector< value_type > > x, std::string name="u")
Create function on given function space with a given vector.
Definition Function.h:79
~Function()=default
Destructor.
Function(Function &&v)=default
Move constructor.
std::shared_ptr< const la::Vector< value_type > > x() const
Underlying vector (const version).
Definition Function.h:155
Function & operator=(Function &&v)=default
Move assignment.
T value_type
Definition Function.h:48
A vector that can be distributed across processes.
Definition Vector.h:53
Requirement on range of cell indices.
Definition Topology.h:35
Finite element method functionality.
Definition assemble_expression_impl.h:28
@ standard
Standard.
Definition FiniteElement.h:34
std::vector< T > interpolation_coords(const fem::FiniteElement< T > &element, const mesh::Geometry< T > &geometry, mesh::CellRange auto &&cells)
Compute the evaluation points in the physical space at which an expression should be computed to inte...
Definition interpolate.h:46
void interpolate(Function< T, U > &u1, mesh::CellRange auto &&cells1, const Expression< T, U > &e0, mesh::CellRange auto &&cells0)
Interpolate an Expression into a Function over a subset of cells.
Definition expression_evaluate.h:284
Linear algebra interface.
Definition dolfinx_la.h:7
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32
Information on the ownership of points distributed across processes.
Definition utils.h:36