Page 2 of 2

Re: Serpent2 on blue gene/q

Posted: Thu Apr 25, 2013 11:46 pm
by orca.blu
I tried the feof function on readtextfile.c on bg/q and it works (but calculation stops anyway at the next EOF call).

On my notebook and another machine, feof version of readtextfile.c works as well, with no difference with respect to EOF version.

Re: Serpent2 on blue gene/q

Posted: Fri Apr 26, 2013 2:29 pm
by Jaakko Leppänen
Maybe the problem is just that in your file system the end-of-file is indicated by numerical value 255 instead of -1. As a simple workaround, could you try adding:

#define EOF 255

in header.h to see if that fixes the problem?

Re: Serpent2 on blue gene/q

Posted: Mon May 06, 2013 11:22 pm
by orca.blu
Yes, that fixed the problem.

Thanks!