J
Jordan Glassman
Trying to do something fairly routine... drop output into a file to
graph, but the following command at the bash command line:
ising > output
produces a blinking cursor, an empty file named "output," and a
program that runs forever. With no redirect, the output is normal.
Below is the printf statement used to generate output.
printf("B=%4.2f E=%8.4f m=%8.4f Cv=%5.2f \
Chi=%5.2f\n",beta,(energy/n2),(moment/n2), \
(summe2-summe*summe)/n2, \
(summm2-summm*summm)/n2);
I verified that things like 'ls > output' work fine, and that I can
also redirect output from other c programs I've written. Something is
funny about this one.
Any thoughts?
graph, but the following command at the bash command line:
ising > output
produces a blinking cursor, an empty file named "output," and a
program that runs forever. With no redirect, the output is normal.
Below is the printf statement used to generate output.
printf("B=%4.2f E=%8.4f m=%8.4f Cv=%5.2f \
Chi=%5.2f\n",beta,(energy/n2),(moment/n2), \
(summe2-summe*summe)/n2, \
(summm2-summm*summm)/n2);
I verified that things like 'ls > output' work fine, and that I can
also redirect output from other c programs I've written. Something is
funny about this one.
Any thoughts?