YetAnotherCoupler 3.5.2
Loading...
Searching...
No Matches
yac_mpi_common.h
Go to the documentation of this file.
1// Copyright (c) 2024 The YAC Authors
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
5#ifndef YAC_MPI_COMMON_H
6#define YAC_MPI_COMMON_H
7
8#include <mpi.h>
9
13#ifndef YAC_CODE_COVERAGE_TEST
14#define yac_mpi_call(call, comm) \
15 do { \
16 int error_code = (call); \
17 if (error_code != MPI_SUCCESS) \
18 yac_mpi_error(error_code, comm); \
19 } while(0)
20#else
21#define yac_mpi_call(call, comm) do {(call);} while(0)
22#endif
23
31void yac_mpi_error(int error_code, MPI_Comm comm);
32
33#endif // YAC_MPI_COMMON_H
34
35/*
36 * Local Variables:
37 * c-basic-offset: 2
38 * coding: utf-8
39 * indent-tabs-mode: nil
40 * show-trailing-whitespace: t
41 * require-trailing-newline: t
42 * End:
43 */
void yac_mpi_error(int error_code, MPI_Comm comm)
Definition yac_mpi.c:117