Thanks, it solved the locale problem but I still get no output from the simulation. The file "parm_spin_one_half.task1.in.xml" generated:
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="ALPS.xsl"?> <SIMULATION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xml.comp-phys.org/2003/8/QMCXML.xsd"> <PARAMETERS> <PARAMETER name="LATTICE">open chain lattice</PARAMETER> <PARAMETER name="SEED">437896547</PARAMETER> <PARAMETER name="CONSERVED_QUANTUMNUMBERS">N,Sz</PARAMETER> <PARAMETER name="NUMBER_EIGENVALUES">1</PARAMETER> <PARAMETER name="MAXSTATES">100</PARAMETER> <PARAMETER name="MODEL">spin</PARAMETER>
<PARAMETER name="J">1</PARAMETER> <PARAMETER name="Sz_total">0</PARAMETER> <PARAMETER name="SWEEPS">4</PARAMETER> <PARAMETER name="L">32</PARAMETER> </PARAMETERS> </SIMULATION>
Best,
Axel
________________________________ Från: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch för Michele Dolfi dolfim@phys.ethz.ch Skickat: den 10 januari 2017 17:08 Till: comp-phys-alps-users@lists.phys.ethz.ch Ämne: Re: [ALPS-users] DMRG application does not run
It seems the container is not setting the language properly.
Try running as:
docker run -p 8888:8888 -e LC_ALL="en_US.UTF-8" dolfim/alps:2.2b4-notebook
Best, Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.chmailto:dolfim@phys.ethz.ch www.itp.phys.ethz.chhttp://www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 10, 2017, at 4:55 PM, Axel Gagge <axel.gagge@fysik.su.semailto:axel.gagge@fysik.su.se> wrote:
Hello!
I'm running the ALPS docker container with IPython support (I have the last version of the container):
docker run -p 8888:8888 dolfim/alps:2.2b4-notebook
I am trying to run the first example from the DMRG tutorial (http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG) but I encounter a problem related to the lines of the code which runs, writes and reads the simulation data (script at http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.p...)http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.py. The script creates input files and task, but nothing more seems to happen and when trying to retrieve the output, there is just an empty list and thus I get an IndexError. Has anyone else encountered this problem? It should be reproducible with the Docker container.
Terminal output provided below.
Thanks, /Axel Gagge PhD Student Stockholm University
alps@a6d9e036c68e:~/work$ alpspython spin_one-half.py dmrg parm_spin_one_half.in.xml --write-xml ALPS DMRG temporary files will be written to . ALPS/dmrg version 1.0.0 (2006/10/02) Density Matrix Renormalization Group algorithm for low-dimensional interacting systems. available from http://alps.comp-phys.org/ copyright (c) 2006-2013 by Adrian E. Feiguin for details see the publication: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007).
using the ALPS parallelizing scheduler copyright (c) 1994-2006 by Matthias Troyer <troyer@comp-phys.orgmailto:troyer@comp-phys.org>. see Lecture Notes in Computer Science, Vol. 1505, p. 191 (1998).
based on the ALPS libraries version 2.2.b4 available from http://alps.comp-phys.org/ copyright (c) 1994-2013 by the ALPS collaboration. Consult the web page for license details. For details see the publication: B. Bauer et al., J. Stat. Mech. (2011) P05001.
locale::facet::_S_create_c_locale name not valid Traceback (most recent call last): File "spin_one-half.py", line 54, in <module> for s in data[0]: IndexError: list index out of range
---- Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.chmailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.