![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Factory functions for creating domain decompositions. More...


Go to the source code of this file.
Functions | |
| Decomposition | pfc::make_decomposition (const World &world, int rank, int num_domains) |
| Factory function to create a Decomposition object. | |
| Decomposition | pfc::make_decomposition (const World &world, MPI_Comm comm=MPI_COMM_WORLD) |
| Factory function to create a Decomposition from MPI communicator. | |
Factory functions for creating domain decompositions.
This header provides factory functions to create Decomposition objects for distributing computational domains across MPI processes.
Two factory functions are provided:
The factory encapsulates the logic for choosing an optimal decomposition strategy based on domain geometry and number of processes.
Factory function to create a Decomposition object.
| world | The World object. |
| rank | The rank of the current process (defaults to 0). |
| num_domains | The total number of domains (defaults to 1). |


| Decomposition pfc::make_decomposition | ( | const World & | world, |
| MPI_Comm | comm = MPI_COMM_WORLD |
||
| ) |
Factory function to create a Decomposition from MPI communicator.
| world | The World object. |
| comm | The MPI communicator (defaults to MPI_COMM_WORLD). |
