This question is not related to FEniCS (as illustrated by the code example). This relates to how to use an MPI communicator to decide which process should write to file. See for instance
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Output data from parallel(MPI)
|
0 | 353 | September 12, 2021 | |
|
MPIRUN - writing out text in parallel
|
6 | 1504 | August 20, 2021 | |
| Data output with parallel | 2 | 326 | December 13, 2023 | |
| Legacy FEniCS Parallel Execution | 1 | 20 | February 16, 2026 | |
| MPI FEniCS Hangs on File output for Rank 0 | 1 | 445 | December 8, 2022 |