From aa8825d9d8022412cd68e887e2e3cf7c10a61ed5 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Wed, 26 Apr 2023 11:27:03 -0400 Subject: parameters to choose rk2 --- src/navier-stokes.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'src/navier-stokes.c') diff --git a/src/navier-stokes.c b/src/navier-stokes.c index 755e829..6387fcf 100644 --- a/src/navier-stokes.c +++ b/src/navier-stokes.c @@ -1,3 +1,4 @@ +#include "constants.cpp" #include "io.h" #include "navier-stokes.h" #include "statistics.h" @@ -18,6 +19,7 @@ int uk( _Complex double* u0, _Complex double* g, bool irreversible, + unsigned int algorithm, uint64_t print_freq, uint64_t starting_time, unsigned int nthreads, @@ -51,7 +53,11 @@ int uk( // iterate for(t=starting_time;nsteps==0 || t