aboutsummaryrefslogtreecommitdiff
path: root/mg2d.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-01-21 13:13:03 +0100
committerAnton Khirnov <anton@khirnov.net>2019-01-21 13:13:03 +0100
commit6cdcade8150b8b063392f74231390f138b9f937b (patch)
tree3668acc8dc165ce20da63fd52420594965235c33 /mg2d.h
parent6df6baeb31b82349748acc219aa64c549a45c91a (diff)
mg2d: failer earlier when relaxation does not converge
Diffstat (limited to 'mg2d.h')
-rw-r--r--mg2d.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mg2d.h b/mg2d.h
index a587a18..58308fd 100644
--- a/mg2d.h
+++ b/mg2d.h
@@ -22,6 +22,10 @@
#include <stddef.h>
#include <stdint.h>
+enum MG2DError {
+ MG2D_ERR_DIVERGE = -0xff00,
+};
+
/**
* Type of the boundary condition on a given boundary.
*/