Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Redirect to...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 20 Topic 26170 of 27679
Post > Topic >>

Re: Redirect to STDOUT Problem

by Peter Nilsson <airia@[EMAIL PROTECTED] > May 12, 2008 at 09:23 PM

[Other replies notwithstanding...]

Jordan Glassman wrote:
> #define NITERS 5000000
>         int i,j,k;
>        for(k=0;k<NITERS;k++){

Are you perchance running on a machine with 16-bit ints?

If so, this loop will likely run forever (assuming 16-bit overflow
from INT_MAX to INT_MIN.)

> void ising(int (*m)[N],double beta){

Identifiers starting with is (or to) and a lowercase letter are
reserved for use as external identifiers.

This is not likely to be the source of your problem, but it is
still a fault with your code.

Apart from that, the program does take some time to run.
Are you leaving it for long enough? With such relatively
small output, many systems won't actually flush to the
redirected file until the program (and stream) closes.

--
Peter
 




 20 Posts in Topic:
Redirect to STDOUT Problem
Jordan Glassman <jorda  2008-05-12 17:50:13 
Re: Redirect to STDOUT Problem
Ben Bacarisse <ben.use  2008-05-13 02:14:47 
Re: Redirect to STDOUT Problem
Jordan Glassman <jorda  2008-05-12 18:21:45 
Re: Redirect to STDOUT Problem
Peter Nilsson <airia@[  2008-05-12 19:33:04 
Re: Redirect to STDOUT Problem
Jordan Glassman <jorda  2008-05-12 19:46:46 
Re: Redirect to STDOUT Problem
Richard Heathfield <rj  2008-05-13 04:03:06 
Re: Redirect to STDOUT Problem
Ben Bacarisse <ben.use  2008-05-13 05:01:07 
Re: Redirect to STDOUT Problem
Ben Bacarisse <ben.use  2008-05-13 05:05:08 
Re: Redirect to STDOUT Problem
Peter Nilsson <airia@[  2008-05-12 21:23:55 
Re: Redirect to STDOUT Problem
Jordan Glassman <jorda  2008-05-12 22:05:13 
Re: Redirect to STDOUT Problem - TPA
"Default User"   2008-05-13 07:05:21 
Re: Redirect to STDOUT Problem
Jordan Glassman <jorda  2008-05-12 22:54:17 
Re: Redirect to STDOUT Problem - TPA
Jordan Glassman <jorda  2008-05-13 00:53:56 
Re: Redirect to STDOUT Problem - TPA
"Default User"   2008-05-13 16:59:03 
Re: Redirect to STDOUT Problem
viza <tom.viza@[EMAIL   2008-05-13 13:40:31 
Re: Redirect to STDOUT Problem
roberson@[EMAIL PROTECTED  2008-05-13 20:48:22 
Re: Redirect to STDOUT Problem
richard@[EMAIL PROTECTED]  2008-05-13 21:52:05 
Re: Redirect to STDOUT Problem
roberson@[EMAIL PROTECTED  2008-05-13 22:02:48 
Re: Redirect to STDOUT Problem
lawrence.jones@[EMAIL PRO  2008-05-14 19:00:53 
Re: Redirect to STDOUT Problem
Szabolcs Borsanyi <bor  2008-05-14 12:49:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 21:15:21 CDT 2008.