include/dolfinx_access/function.h

changeset 3
c3a4f4bb87f7
parent 1
a4137aedcb3a
equal deleted inserted replaced
1:a4137aedcb3a 3:c3a4f4bb87f7
1 #pragma once 1 #pragma once
2 #include "dolfinx/geometry/BoundingBoxTree.h" 2 #include "dolfinx/geometry/BoundingBoxTree.h"
3 #pragma once
4 #include "dolfinx/mesh/Mesh.h"
3 #include <cmath> 5 #include <cmath>
4 6
5 #pragma once 7 #pragma once
6 #include "nanobind_helpers.h" 8 #include "nanobind_helpers.h"
7 9
9 #include "rust/cxx.h" 11 #include "rust/cxx.h"
10 12
11 namespace dolfinx_access { 13 namespace dolfinx_access {
12 struct FunctionInfo; 14 struct FunctionInfo;
13 15
14 typedef geometry::BoundingBoxTree<double> BBTree_f64; 16 typedef dolfinx::geometry::BoundingBoxTree<double> BBTree_f64;
17
15 extern void drop_Function_f64(Function_f64* f); 18 extern void drop_Function_f64(Function_f64* f);
16 19
17 extern int32_t cell_Mesh_f64(std::shared_ptr<const mesh::Mesh<double>> mesh, 20 extern int32_t cell_Mesh_f64(std::shared_ptr<const dolfinx::mesh::Mesh<double>> mesh,
18 const std::array<double, 3>& x); 21 const std::array<double, 3>& x);
19 22
20 extern int32_t cell_FunctionSpace_f64(FunctionSpace<double> const* v, 23 extern int32_t cell_FunctionSpace_f64(FunctionSpace<double> const* v,
21 const std::array<double, 3>& x); 24 const std::array<double, 3>& x);
22 25
44 47
45 Function_f64* similar_Function_f64(Function_f64 const* f); 48 Function_f64* similar_Function_f64(Function_f64 const* f);
46 49
47 Function_f64* clone_Function_f64(Function_f64 const* f); 50 Function_f64* clone_Function_f64(Function_f64 const* f);
48 51
52 void scatter_fwd_Function_f64(Function_f64* f);
49 } // namespace dolfinx_access 53 } // namespace dolfinx_access

mercurial