diff options
author | Ian Jauslin <ian@jauslin.org> | 2022-05-27 16:09:17 -0400 |
---|---|---|
committer | Ian Jauslin <ian@jauslin.org> | 2022-05-27 16:09:17 -0400 |
commit | 0cdb914b5764f692189ed2bc395e3b09ead758e4 (patch) | |
tree | 91fed5d86febab728add0425e2d501a7e3cb67a1 /src/init.c | |
parent | 6b96c2d9461d59662705da766d13318b3cb0da2d (diff) |
savefile and initfile
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; +} |