Page 1 of 1

Vasprun.xml (64-bit vs 32-bit)

Posted: Tue Apr 04, 2006 2:30 pm
by ameijer
Dear All,

I have a problem with vasprun.xml files generated on our AMD64 cluster. Files generated on our 32-bit (P4) cluster are OK.

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1"?>
<modeling>
 <generator>
  <i name="program" type="string">vasp</i>
  <i name="version" type="string">4.6.28 </i>
  <i name="subversion" type="string">25Jul05 complex  parallel</i>
  <i name="platform" type="string">LinuxIFC</i>
  <i name="date" type="string">2006 03 29</i>
  <i name="time" type="string">17:41:26</i>
 </generator>
The ones generated on the 64 bit cluster look like this:

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1"?>
<modeling>
 <generator>
  <i name="program"" type=""stringvasp</i>
  <i name="version"" type=""string4.6.28 </i>
  <i name="subversion"" type=""string25Jul05 complex  parallel</i>
  <i name="platform"" type=""stringLinuxIFC</i>
  <i name="date"" type=""string2006 04 04</i>
  <i name="time"" type=""string10:57:02</i>
 </generator>
which is clearly wrong. The only other difference between the clusters is that on the 32-bit cluster we use IFC, whereas on the 64-bit cluster PGF77 is installed.

Has anybody seen this before ? And of course, if so, is there anything that can be done about it ?

BTW, otherwise VASP is running fine on both machines (same answers etc).

Thanks in advance,

Anthony Meijer

Vasprun.xml (64-bit vs 32-bit)

Posted: Wed Apr 05, 2006 9:33 am
by Veronika
I do not understand the problem. Can't you open them in p4vasp?

Vasprun.xml (64-bit vs 32-bit)

Posted: Wed Apr 05, 2006 1:09 pm
by ameijer
That is indeed precisely the consequence of this problem. Because the XML generated in the 64-bit version is invalid, p4vasp chokes on it. :(

Vasprun.xml (64-bit vs 32-bit)

Posted: Wed Apr 05, 2006 3:15 pm
by matt_dubya
Hi,

clearly not a solution but if you want to use those vasprun.xmls can you just globally replace '< i name*""string' with '< i name*"string"> with perl or sed

cheers,

Matt

Vasprun.xml (64-bit vs 32-bit)

Posted: Thu Apr 06, 2006 7:30 am
by Veronika
I'd say this is a p4vasp problem, post it in the p4vasp forum
http://cms.mpi.univie.ac.at/odubay/p4vasp_site/news.php
or send an email to O. Dubay who has written p4vasp.

Vasprun.xml (64-bit vs 32-bit)

Posted: Thu Apr 06, 2006 7:33 am
by ameijer
Hi,

Unfortunately that is not a feasible solution, since the quoted portions of the vasprun.xml are symptomatic for the rest of the file, e.g. further on I find

Code: Select all

<generation param="Gamma">
   <v type=""int"" namedivisions""       3       3       1</v>
   <v name="usershift""      0.00000000      0.00000000      0.00000000</v>
   <v name="genvec1""      0.33333333      0.00000000      0.00000000</v>
   <v name="genvec2""      0.00000000      0.33333333      0.00000000</v>
   <v name="genvec3""      0.00000000      0.00000000      1.00000000</v>
   <v name="shift""      0.00000000      0.00000000      0.00000000</v>
  </generation>
which should be

Code: Select all

<generation param="Gamma">
   <v type="int" name="divisions">       3       3       1</v>
   <v name="usershift">      0.00000000      0.00000000      0.00000000</v>
   <v name="genvec1">      0.33333333      0.00000000      0.00000000</v>
   <v name="genvec2">      0.00000000      0.33333333      0.00000000</v>
   <v name="genvec3">      0.00000000      0.00000000      1.00000000</v>
   <v name="shift">      0.00000000      0.00000000      0.00000000</v>
  </generation>
etc etc etc
Some changes are trivial and could be done using sed/awk, but some are definitely not. So essentially I would have to go through this file by hand to correct the xml, which is not on for a file of 5000 lines. Especially given that I have about 50 of these files to contend with.

Anthony

Vasprun.xml (64-bit vs 32-bit)

Posted: Thu Apr 06, 2006 7:43 am
by ameijer
Dear All,

As it turns out, this is indeed a known problem for the PGF compiler. The p4vasp site (Thank you Veronika for pointing me to that) has a VASP patch so that it will write correct XML even for the Portland compiler.

http://cms.mpi.univie.ac.at/odubay/p4va ... hp?view.23 is where you can download the patch. It applies correctly and appears to work.

Thanks for all your help,

Anthony
<span class='smallblacktext'>[ Edited Thu Apr 06 2006, 09:44AM ]</span>