openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
fem
slimfem
src
SF_globals.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// openCARP is an open cardiac electrophysiology simulator.
3
//
4
// Copyright (C) 2020 openCARP project
5
//
6
// This program is licensed under the openCARP Academic Public License (APL)
7
// v1.0: You can use and redistribute it and/or modify it in non-commercial
8
// academic environments under the terms of APL as published by the openCARP
9
// project v1.0, or (at your option) any later version. Commercial use requires
10
// a commercial license (info@opencarp.org).
11
//
12
// This program is distributed without any warranty; see the openCARP APL for
13
// more details.
14
//
15
// You should have received a copy of the openCARP APL along with this program
16
// and can find it online: http://www.opencarp.org/license
17
// ----------------------------------------------------------------------------
18
19
#ifndef _SF_GLOBALS_H
20
#define _SF_GLOBALS_H
21
22
#include <cstdint>
23
#include <mpi.h>
24
25
// This defines are used in multiple header files so have to put them here
27
#define SF_COMM MPI_COMM_WORLD
28
#define SF_MPITAG 100
30
31
// Define the global int and real types used in SlimFem
32
#ifdef WITH_PETSC
33
#include <petscsys.h>
34
using
SF_int
= PetscInt;
35
using
SF_real
= PetscReal;
36
#else
37
using
SF_int
= std::int32_t;
38
using
SF_real
= double;
39
#endif // WITH_PETSC
40
41
42
#endif // _SF_GLOBALS_H
SF_int
std::int32_t SF_int
Use the general std::int32_t as int type.
Definition:
SF_globals.h:37
SF_real
double SF_real
Use the general double as real type.
Definition:
SF_globals.h:38
Generated by
1.8.13