forked from VirtualPlanetaryLaboratory/vplanet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
halt.h
32 lines (24 loc) · 1.02 KB
/
halt.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
@file halt.h
@brief This file contains all the checks for dynamical states
that result in the termination of the program.
@author Rory Barnes ([RoryBarnes](https://github.com/RoryBarnes/))
@date Mar 7 2014
*/
#ifdef VPLANET_ON_WINDOWS
#define max(X, Y) (((X) > (Y)) ? (X) : (Y))
#else
#define max(a, b) \
({ \
__typeof__(a) _a = (a); \
__typeof__(b) _b = (b); \
_a > _b ? _a : _b; \
})
#endif
/* @cond DOXYGEN_OVERRIDE */
int fbCheckHalt(BODY *, CONTROL *, UPDATE *, fnUpdateVariable ***);
void InitializeHalts(CONTROL *, MODULE *);
void VerifyHalts(BODY *, CONTROL *, MODULE *, OPTIONS *);
int fniHaltMaxEcc(BODY *, EVOLVE *, HALT *, IO *, UPDATE *,
fnUpdateVariable ***, int);
/* @endcond */