config file > 2Gb in DMC

9 views
Skip to first unread message

Michal Bajdich

unread,
Jun 27, 2011, 4:01:56 PM6/27/11
to qwalk-developers
When running the timing benchmarks on jaguar-pf using 64K x 8 walkers
I run into the problem
of reading in the configurations before DMC run.
The problem is here:

void Dmc_point::read(istream & is) {
config_pos.read(is);
int filepos=is.tellg(); <------
string dum;
is >> dum;
if(!caseless_eq(dum, "DMC")) {
is.seekg(filepos); <-------
return;
}

is >> dum; //the {
//prop.read(is);
is >> dum >> weight;
is >> dum >> sign;
//ignoring the past stuff for the moment..
}

The is.tellg(); fails for files >2Gbs and does not read in all the
walkers. Volunteers welcome to fix this.
I had the same problem in gamessci2qmc and using getline fixed it.

Michal

Lucas Wagner

unread,
Jun 27, 2011, 4:18:44 PM6/27/11
to qwalk-de...@googlegroups.com
Michal,

If you change
int filepos=is.tellg() ;
to
long int filepos=is.tellg();
does it work properly?

Cheers,

Lucas

Reply all
Reply to author
Forward
0 new messages