summaryrefslogtreecommitdiff
path: root/mg2d.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-01-02 14:13:23 +0100
committerAnton Khirnov <anton@khirnov.net>2020-01-20 14:45:07 +0100
commit004ea10198960ce0f7395975b027fd112edf960c (patch)
treec2cfd37aacbc7b84a4d1e19dad7f545d05832eae /mg2d.h
parent3992a96fcd8f4bd63365c1c141184b3370881de6 (diff)
Diffstat (limited to 'mg2d.h')
-rw-r--r--mg2d.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mg2d.h b/mg2d.h
index f7897f6..0c12f22 100644
--- a/mg2d.h
+++ b/mg2d.h
@@ -237,6 +237,13 @@ typedef struct MG2DContext {
* Set by mg2d_solver_alloc[_mpi]().
*/
size_t local_size[2];
+
+ double residual_max;
+
+ /**
+ * Use adaptive stepping for relaxation.
+ */
+ int adaptive_step;
} MG2DContext;
/**