Ladies and Gentlemen,
I'm having a bit of a difficulty with something probably very very simple: I'm writing a simple MC code, which I just derive from the Ising scheduler example of ALPS 1.3.5. The problem appears once I try using the evaluate.C code from the same example. Even if I just take the code from an example, it throws a bad lexical cast exception. Looks like I can nail it down to a line, but the line itself is a bit of alea magic and I simply have no clue how to fix it.
Hoping that somebody would spend a minute of their time and have a look at it, I'm attaching a minimal example which shows this behaviour. Here I just copy the sources from the scheduler example directory and only patch the source of evaluate.C. Below is the listing of what I'm doing.
Any suggestions would be kindly appreciated,
Zhenya
===================================================================== br@ymir:~/sweethome/adatoms/ising/from_scheduler$ make ising g++ -DNDEBUG -I/usr/local/boost -I/usr/local/ALPS-1.3.5/include -g -O2 -o ising ising.C main.C -L/usr/local/ALPS-1.3.5/lib -lalps -lcomm-sgl -llapack -lf77blas -latlas -lpthread -lm <.... a lot of complaints on deprecated headers...>
br@ymir:~/sweethome/adatoms/ising/from_scheduler$ make evaluate g++ -DNDEBUG -I/usr/local/boost -I/usr/local/ALPS-1.3.5/include -g -O2 -o evaluate evaluate.C -L/usr/local/ALPS-1.3.5/lib -lalps -lcomm-sgl -llapack -lf77blas -latlas -lpthread -lm <.... a lot of complaints on deprecated headers...>
br@ymir:~/sweethome/adatoms/ising/from_scheduler$ parameter2xml par1 Converting parameter file par1 to par1.in.xml br@ymir:~/sweethome/adatoms/ising/from_scheduler$ ./ising par1.in.xml Ising simulation example program using the ALPS Monte Carlo library copyright(c) 1994-2006 by Matthias Troyer troyer@comp-phys.org
using the ALPS parallelizing scheduler copyright (c) 1994-2006 by Matthias Troyer troyer@comp-phys.org. see Lecture Notes in Computer Science, Vol. 1505, p. 191 (1998).
based on the ALPS libraries version 1.3.5 available from http://alps.comp-phys.org/ copyright (c) 1994-2009 by the ALPS collaboration. Consult the web page for license details. For details see the publication: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007).
parsing task files ... Created run 1 locally Starting task 1. Checking if it is finished: not yet, next check in 60 seconds ( 0% done). Halted Simulation 1 This task took 1 seconds. Checkpointing Simulation 1 Finished with everything. br@ymir:~/sweethome/adatoms/ising/from_scheduler$ ./evaluate par1.task1.out.xml parsing task files ... line 1 of evaluate line 2 of evaluate Caught exception: bad lexical cast: source type value could not be interpreted as target br@ymir:~/sweethome/adatoms/ising/from_scheduler$ ======================================================================
comp-phys-alps-users@lists.phys.ethz.ch