diff options
Diffstat (limited to 'src/init.c')
-rw-r--r-- | src/init.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,6 @@ #include "init.h" #include "navier-stokes.h" +#include "io.h" #include <stdlib.h> #include <math.h> @@ -60,3 +61,14 @@ int init_gaussian ( return 0; } + +// Initialize from file +int init_file ( + _Complex double* u0, + int K1, + int K2, + FILE* initfile +){ + read_u(u0, K1, K2, initfile); + return 0; +} |