ERROR: Unrecognized fix style 'press/langevin'

I want to use langevin barostat and thermostat.So based on the documentation I am using the following line in my input script:
fix 1 H2O press/langevin z 1 1 800 temp 300 300 100 dilate partial

However I am getting the following error:
ERROR: Unrecognized fix style ‘press/langevin’ (…/modify.cpp:917)


The online documentation is for LAMMPS version 21 November 2023. Do you use that version?

1 Like

Thank you very much. I was using the version 21 Aug 2023. I didn’t knew that this fix is a recent addition. The fix is working with the latest version.