I try to run this example to learn i-pi: lammps-git-tutorial/tools/i-pi/examples/lammps/h2o-pimd at master · lammps/lammps-git-tutorial (github.com)
But whenever I run
i-pi input.xml
where the input.xml
is
<simulation>
<initialize nbeads='32'>
<file mode='pdb'> water_298K.pdb </file>
<velocities mode="thermal" units='kelvin'> 298 </velocities>
</initialize>
<output prefix='no_rpc'>
<properties stride='1' filename='out'> [ step, time{picosecond}, conserved, temperature{kelvin}, kinetic_cv, potential, pressure_cv{megapascal}] </properties>
<trajectory filename='pos' stride='20'> positions </trajectory>
</output>
<total_steps>500000</total_steps>
<prng><seed>32345</seed></prng>
<forces>
<socket mode='unix'>
<address>no_rpc</address>
</socket>
</forces>
<ensemble mode='nvt'>
<thermostat mode='svr'>
<tau units='femtosecond'>25</tau>
</thermostat>
<timestep units='femtosecond'> 0.25</timestep>
<temperature units='kelvin'>298</temperature>
</ensemble>
</simulation>
I get the following error:
Traceback (most recent call last):
File "/data/share/apps/deepmd/2.2.9/bin/i-pi", line 112, in <module>
main(args[0], options)
File "/data/share/apps/deepmd/2.2.9/bin/i-pi", line 61, in main
simulation = Simulation.load_from_xml(fn_input, request_banner=True, custom_verbosity=options.verbosity)
File "/data/share/apps/deepmd/2.2.9/lib/python3.10/site-packages/ipi/engine/simulation.py", line 81, in load_from_xml
input_simulation.parse(xmlrestart.fields[0][1])
File "/data/share/apps/deepmd/2.2.9/lib/python3.10/site-packages/ipi/utils/inputvalue.py", line 359, in parse
raise NameError(
NameError: Tag name 'initialize' is not a recognized property of 'simulation' objects
The version of i-pi is 2.6.3. I am new to this and have no idea how to fix it.