summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-04-14 09:54:09 +0200
committerAnton Khirnov <anton@khirnov.net>2019-05-16 18:25:31 +0200
commit6455697c307442aba4e981c26e3eb3f84f5a65cb (patch)
tree74f8faffcd3e2f7871365a64e14124efca3dafbb
parent7e7683462c403ea3b9d2d2789ae7740d7f218187 (diff)
mg2d_test tmp
-rw-r--r--mg2d_test.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mg2d_test.c b/mg2d_test.c
index 23e52bb..7f6654d 100644
--- a/mg2d_test.c
+++ b/mg2d_test.c
@@ -10,8 +10,8 @@
#define ARRAY_ELEMS(x) (sizeof(x) / sizeof(*x))
-#define MAXITER 64
-#define TOL 1e-9
+#define MAXITER (1 << 18)
+#define TOL 1e-2
#define DOMAIN_SIZE 1.0
@@ -120,7 +120,8 @@ int main(int argc, char **argv)
ctx->nb_relax_post = 2;
ctx->tol = TOL;
ctx->nb_threads = 1;
- ctx->log_level = MG2D_LOG_VERBOSE;
+ ctx->log_level = MG2D_LOG_INFO;
+ ctx->max_levels = 1;
for (int bnd_loc = 0; bnd_loc < ARRAY_ELEMS(ctx->boundaries); bnd_loc++) {
MG2DBoundary *bnd = ctx->boundaries[bnd_loc];
@@ -172,6 +173,7 @@ int main(int argc, char **argv)
goto fail;
}
+ ctx->log_level = MG2D_LOG_VERBOSE;
mg2d_print_stats(ctx, NULL);
{