aboutsummaryrefslogtreecommitdiff
path: root/mg2d.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-07-12 11:19:46 +0200
committerAnton Khirnov <anton@khirnov.net>2022-07-29 11:35:58 +0200
commit9380032e268efbc4920ac4598e43b9a47f57ae2f (patch)
tree70d2abc5bd71ae426c5b31695963f156e92313ab /mg2d.h
parentc01eecbfbafedef629e510b2ee3fd28863a70779 (diff)
mg2d: add support for adaptive step sizeadaptive_step
Diffstat (limited to 'mg2d.h')
-rw-r--r--mg2d.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mg2d.h b/mg2d.h
index 8f48361..56e129f 100644
--- a/mg2d.h
+++ b/mg2d.h
@@ -246,6 +246,11 @@ typedef struct MG2DContext {
* Set by mg2d_solve() if it returns 0 or MG2D_ERR_MAXITER_REACHED.
*/
double residual_max;
+
+ /**
+ * Use adaptive stepping for relaxation.
+ */
+ int adaptive_step;
} MG2DContext;
/**