X-Git-Url: https://www.hackdaworld.org/gitweb/?a=blobdiff_plain;f=ising.c;h=e43b4be0a7df9ec7134f9cd5d668f651904e2dc7;hb=78fcc4451906fd4fbc2830fc72fd511563d9bf98;hp=cb89d8a8997471d10cb227ebede2be58458d5478;hpb=a28d730d92a955110e132b15cac51dc045c4f2cd;p=physik%2Fising.git diff --git a/ising.c b/ising.c index cb89d8a..e43b4be 100644 --- a/ising.c +++ b/ising.c @@ -11,22 +11,32 @@ #include #include #include +#include #include "dfbapi.h" -#define X 50 -#define Y 50 -#define MAX_T 200 +#define X 200 +#define Y 200 +#define MAX_T 100 int main(int argc, char **argv) { unsigned char *atom; + char *arg_v[4]; + char m_text[30]; + char t_text[30]; + char b_text[30]; int max_x,x_c,max_y,y_c; - int i,j; + int i; + int count_p; unsigned int T; - double M; + double S; + int M; double beta; double delta_e; + /* random stuff*/ + srand(time(0)); + /* display stuff */ d2_lattice d2_l; @@ -43,25 +53,44 @@ int main(int argc, char **argv) /* begin at T=0 M=1 situation */ memset(atom,0,max_x*max_y*sizeof(unsigned char)); + S=1; /* i have no idea! */ + for(T=1;T