diff options
-rw-r--r-- | libmg2d.v | 2 | ||||
-rw-r--r-- | mg2d.c | 1 | ||||
-rw-r--r-- | mg2d.h | 5 |
3 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,4 @@ -LIBMG2D_2 { +LIBMG2D_3 { global: mg2d_*; local: *; }; @@ -421,6 +421,7 @@ static int mg_levels_init(MG2DContext *ctx) cur->solver->cpuflags = priv->cpuflags; cur->solver->fd_stencil = ctx->fd_stencil; + cur->solver->relax_factor = ctx->cfl_factor; prev = cur; cur = cur->child; @@ -267,6 +267,11 @@ typedef struct MG2DContext { * Set to 0 to autodetect. Defaults to 1. */ unsigned int nb_threads; + + /** + * Time-stepping factor to use for relaxation. + */ + double cfl_factor; } MG2DContext; /** |