diff --git a/openmc/particle_restart.py b/openmc/particle_restart.py index 72bf3ac3d..4aad11132 100644 --- a/openmc/particle_restart.py +++ b/openmc/particle_restart.py @@ -43,11 +43,11 @@ class Particle(object): if 'filetype' not in self._f or self._f[ 'filetype'].value.decode() != 'particle restart': raise IOError('{} is not a particle restart file.'.format(filename)) - if self._f['revision'].value != 1: + if self._f['revision'].value != 2: raise IOError('Particle restart file has a file revision of {} ' 'which is not consistent with the revision this ' 'version of OpenMC expects ({}).'.format( - self._f['revision'].value, 1)) + self._f['revision'].value, 2)) @property def current_batch(self): diff --git a/openmc/statepoint.py b/openmc/statepoint.py index f5b5b2e72..003b08818 100644 --- a/openmc/statepoint.py +++ b/openmc/statepoint.py @@ -103,11 +103,11 @@ class StatePoint(object): raise IOError('Could not read statepoint file. This most likely ' 'means the statepoint file was produced by a different ' 'version of OpenMC than the one you are using.') - if self._f['revision'].value != 14: + if self._f['revision'].value != 15: raise IOError('Statepoint file has a file revision of {} ' 'which is not consistent with the revision this ' 'version of OpenMC expects ({}).'.format( - self._f['revision'].value, 14)) + self._f['revision'].value, 15)) # Set flags for what data has been read self._meshes_read = False