Add struct for the data
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -3,9 +3,15 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
|
|
||||||
|
typedef struct data {
|
||||||
|
double E = 0.;
|
||||||
|
double E_squared = 0.;
|
||||||
|
double M = 0.;
|
||||||
|
double M_squared = 0.;
|
||||||
|
double M_abs = 0.;
|
||||||
|
} data_t;
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
IsingModel test(5, 1.);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user