openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
SF_globals.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) NumeriCor GmbH
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #ifndef _SF_GLOBALS_H
5 #define _SF_GLOBALS_H
6 
7 #include <cstdint>
8 #include <mpi.h>
9 #include "opencarp_types.h"
10 
11 namespace SF {
12 
15 inline MPI_Comm& world_comm()
16 {
17  static MPI_Comm comm = MPI_COMM_WORLD;
18  return comm;
19 }
20 
21 } // namespace SF
22 
23 // This defines are used in multiple header files so have to put them here
25 #define SF_COMM SF::world_comm()
27 #define SF_MPITAG 100
28 
29 using SF_int = opencarp::global_index_t;
30 using SF_real = opencarp::real_t;
31 
32 
33 #endif // _SF_GLOBALS_H
opencarp::real_t SF_real
Global scalar type.
Definition: SF_globals.h:30
opencarp::global_index_t SF_int
Global algebraic index type.
Definition: SF_globals.h:29
Definition: dense_mat.hpp:19
MPI_Comm & world_comm()
Definition: SF_globals.h:15