Nstrophy/src/init.h

17 lines
443 B
C
Raw Normal View History

2022-05-26 19:05:30 +00:00
#ifndef INIT_H
#define INIT_H
2022-05-27 20:09:17 +00:00
#include <stdio.h>
2023-04-06 02:41:19 +00:00
#include <stdbool.h>
2022-05-27 20:09:17 +00:00
2022-05-26 19:05:30 +00:00
// random initial condition
2023-04-06 02:41:19 +00:00
int init_random(_Complex double* u0, double init_en, int K1, int K2, double L, int seed, bool irreversible);
2022-05-26 19:05:30 +00:00
// Gaussian initial condition
2023-04-06 02:41:19 +00:00
int init_gaussian(_Complex double* u0, double init_en, int K1, int K2, double L, bool irreversible);
2022-05-26 19:05:30 +00:00
2022-05-27 20:09:17 +00:00
// Initialize from file
int init_file (_Complex double* u0, int K1, int K2, FILE* initfile);
2022-05-26 19:05:30 +00:00
#endif