OpenPFC  0.1.4
Phase Field Crystal simulation framework
Loading...
Searching...
No Matches
heffte_adapter.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 VTT Technical Research Centre of Finland Ltd
2// SPDX-License-Identifier: AGPL-3.0-or-later
3
34#ifndef PFC_HEFFTE_ADAPTER_HPP
35#define PFC_HEFFTE_ADAPTER_HPP
36
38#include <heffte.h>
39
40namespace pfc {
41
52 const auto &size = get_size(world);
53 return heffte::box3d<int>({0, 0, 0}, {size[0] - 1, size[1] - 1, size[2] - 1});
54}
55
56} // namespace pfc
57
58#endif // PFC_HEFFTE_ADAPTER_HPP
heffte::box3d< int > to_heffte_box(const World &world)
Converts a World object to heffte::box3d<int>.
Definition heffte_adapter.hpp:51
Represents the global simulation domain (the "world").
Definition world.hpp:91
World(const Int3 &lower, const Int3 &upper, const CoordinateSystem< T > &cs)
Constructs a World object.
World class definition and unified interface.