Modifications to repex.py for barostat.