-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathising_init.h
executable file
·27 lines (22 loc) · 1.2 KB
/
ising_init.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef EXTERN_LIBS
#define EXTERN_LIBS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <time.h>
#include "ising_lattice.h"
#include "ising_aux.h"
#include "ising_evolve.h"
#endif
#ifndef ISING_INIT
#define ISING_INIT
gsl_rng *set_zufall(int sec);
void print_vec(double *vec, unsigned n);
FILE *read_constants(char *file_name, double *J, double *h, double *beta, double *mass, unsigned *therm, unsigned *sweeps, double *length, unsigned *nmd, unsigned *flip_freq, int *skip, char *start, char *restart, char *save, char *out_name, char *integrator, char *geometry);
void set_constants(double *nnc, double *J, double *h, double beta, double *sq_J, double length, unsigned nmd, double *dt, unsigned ns, unsigned nn, double mass, double *kappa);
double *initialize(double *psi, unsigned *nnt, double *nnc, double *J, double *h, double beta, double *sq_J, double length, unsigned nmd, double *dt, double mass, double *kappa, unsigned ns, unsigned nn, char *start, char *restart, unsigned therm, unsigned flip_freq, char *integrator, gsl_rng *r);
void free_all(double *psi, double *p, unsigned *nnt, double *nnc, double *magn);
#endif