From e7a8fb338d5648959bd7f8ee57a484add402e0f4 Mon Sep 17 00:00:00 2001 From: hackbard Date: Mon, 26 May 2003 22:36:34 +0000 Subject: [PATCH] - --- ising.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ising.c b/ising.c index 0b34233..d369024 100644 --- a/ising.c +++ b/ising.c @@ -200,7 +200,7 @@ int main(int argc, char **argv) if((*(atom+((max_x+x_c-1)%max_x)+y_c*max_x))&1) ++count_p; if(((*(atom+x_c+y_c*max_x))&1)==0) count_p=4-count_p; delta_e=(2*count_p-4)*s; - if(delta_e<0) *(atom+x_c+y_c*max_x)=(*(atom+x_c+y_c*max_x)+1)&1; + if(delta_e<=0) *(atom+x_c+y_c*max_x)=(*(atom+x_c+y_c*max_x)+1)&1; else { if(1.0*rand()/RAND_MAX