Dear professors:
Yesterday i tried many ways to print out the lattice graph from the xml file, but still i cant make it. I install alps from synaptic of Ubuntu Marverick 10.10. In the tutorials, it says "printgraph parameter_file" will generate the graphy, so i made a xml file "temp.xml" like this:
<LATTICES>
<LATTICE name="square" dimension="2"> <BASIS> <VECTOR> 1 0 </VECTOR> <VECTOR> 0 1 </VECTOR> </BASIS> </LATTICE>
<FINITELATTICE name="rectangular periodic" dimension="2"> <LATTICE ref="square"/> <EXTENT dimension="1" size="5"/> <EXTENT dimension="2" size="6"/> <BOUNDARY type="periodic"/> </FINITELATTICE>
<UNITCELL name="complex example" dimension="2" vertices="2"> <VERTEX id="1" type="0"><COORDINATE> 0.3 0.7 </COORDINATE></VERTEX> <VERTEX id="2" type="1"><COORDINATE> 0.6 0.3 </COORDINATE></VERTEX> <EDGE><SOURCE vertex="1"/><TARGET vertex="1" offset="1 0"/></EDGE> <EDGE><SOURCE vertex="1"/><TARGET vertex="1" offset="0 1"/></EDGE> <EDGE><SOURCE vertex="1"/><TARGET vertex="2"/></EDGE> </UNITCELL>
<LATTICEGRAPH> <FINITELATTICE ref="rectangular periodic"/> <UNITCELL ref="complex example"/> </LATTICEGRAPH>
</LATTICES>
then i type "printgraph temp.xml", and it returns error: Caught exception: parameter parse error at "<LATTICES> <LATTICE name="squa" i also tried the parm1.in.xml and parm1.task.in.xml but got the same error msg, i dont know how to make printgraph work normally, can anyone show me an example?
In this posting:
https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/2009/000676.html
someone had already asked exactly the same question, and i have installed all the stuff as Synge Todo said, and it did show a 3 dimensional cone after i type "wxVTKRenderWindowInteractorConeExample()" but after this i still dont know how to move on. In the pdf
http://alps.comp-phys.org/mediawiki/images/c/cb/Alps-gui.pdf
Synge Todo had showed a simple gui of making lattice and parameters, i dont know how to get the gui like that, i found the "preview.py. lattice-preview.in, printgraph.c" files in the "alps-2.0.0-r5363-src-with-boost/alps/tool/" documentary after i unzip the alps-2.0.0-r5363-src-with-boost.tar.gzhttp://alps.comp-phys.org/static/software/releases/alps-2.0.0-r5363-src-with-boost.tar.gz, so i think there must be ways to print the lattice graph, i tried to compile the "preview.py", but it says "no module named config", so i download a config softpackage from this website:
http://www.red-dove.com/config-doc/
and install the package so i could import config module in python, then i try to compile preview.py again, it says config module has no attribute version, i guess the config module in alps should be connected with the file "config.py.in" in the tool documentary, but not the config softpackage i download, but i dont know how to use the "config.py.in" file, so i get stucked again.
In another posting:
https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/2007/000106.html
someone also asked a similar question, and Matthias suggested " To visualize it please use the lattice viewer that i send in a separate mail and copy&paste above text into it ", so i wonder whether the lattice previewer tool is only for private use, but those postings were years ago, i m confused.
Hope someone could tell me how to print out the lattice graph when i want to make my own lattice.
Thanks and Best Wishes!
Rui
comp-phys-alps-users@lists.phys.ethz.ch