puts("-s <value> \t spin interaction strength");
puts("-r \t run in interactive mode (still in work)");
puts("-d <value> \t refresh display rate");
+ puts("-t <value> maximal temperature");
return 1;
}
itt=I;
s=S;
strcpy(output_file,"");
+ max_T=0;
/* parse argv */
for(i=1;i<argc;i++)
{
case 'd':
dr=atoi(argv[++i]);
break;
+ case 't':
+ max_T=atof(argv[++i]);
+ break;
default:
usage();
return -1;
/* begin at T=0 M=1 situation */
memset(atom,0,max_x*max_y*sizeof(unsigned char));
-
- max_T=3.0*s;
+
+ if(max_T==0) max_T=3.0*s;
for(T=.05;T<max_T;T+=.05)
{