YAC 3.18.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_mpi_abort.F90
Go to the documentation of this file.
1! Copyright (c) 2026 The YAC Authors
2!
3! SPDX-License-Identifier: BSD-3-Clause
4
8
10
11 use mpi
12 use yac, only : yac_abort_message
13 implicit none
14
15 integer :: ierror, rank
16
17 CALL mpi_init(ierror)
18 CALL mpi_comm_rank(mpi_comm_world, rank, ierror)
19
20 if (rank == 0) then
21 CALL yac_abort_message("some error message", __file__, __line__)
22 end if
23
24 CALL mpi_finalize(ierror)
25
26end program test_mpi_abort
program test_mpi_abort