|
13 | 13 | // Covfie include(s). |
14 | 14 | #include <covfie/core/backend/primitive/constant.hpp> |
15 | 15 | #include <covfie/core/backend/transformer/affine.hpp> |
| 16 | +#include <covfie/core/backend/transformer/clamp.hpp> |
16 | 17 | #include <covfie/core/backend/transformer/linear.hpp> |
17 | 18 | #include <covfie/core/backend/transformer/strided.hpp> |
18 | 19 | #include <covfie/core/field.hpp> |
@@ -93,13 +94,20 @@ using const_bfield_backend_t = |
93 | 94 | ::covfie::backend::constant<::covfie::vector::vector_d<scalar_t, 3>, |
94 | 95 | ::covfie::vector::vector_d<scalar_t, 3>>; |
95 | 96 |
|
96 | | -/// Inhomogeneous magnetic field backend type |
| 97 | +/// Inhomogeneous magnetic field used for IO |
97 | 98 | template <typename scalar_t> |
98 | | -using inhom_bfield_backend_t = |
| 99 | +using inhom_io_bfield_backend_t = |
99 | 100 | covfie::backend::affine<covfie::backend::linear<covfie::backend::strided< |
100 | 101 | covfie::vector::vector_d<std::size_t, 3>, |
101 | 102 | covfie::backend::array<covfie::vector::vector_d<scalar_t, 3>>>>>; |
102 | 103 |
|
| 104 | +/// Inhomogeneous magnetic field backend type |
| 105 | +template <typename scalar_t> |
| 106 | +using inhom_bfield_backend_t = covfie::backend::affine< |
| 107 | + covfie::backend::linear<covfie::backend::clamp<covfie::backend::strided< |
| 108 | + covfie::vector::vector_d<std::size_t, 3>, |
| 109 | + covfie::backend::array<covfie::vector::vector_d<scalar_t, 3>>>>>>; |
| 110 | + |
103 | 111 | /// Construct a constant magnetic field object |
104 | 112 | template <typename scalar_t> |
105 | 113 | ::covfie::field<const_bfield_backend_t<scalar_t>> construct_const_bfield( |
|
0 commit comments