diff --git a/python/amunpy/src/amunpy/amun.py b/python/amunpy/src/amunpy/amun.py index cf578e9..1a045cc 100644 --- a/python/amunpy/src/amunpy/amun.py +++ b/python/amunpy/src/amunpy/amun.py @@ -471,7 +471,7 @@ class Amun: tmp = self.__read_binary_data__('magz', chunk_number) dset += tmp**2 dset *= 0.5 - elif dataset == 'lorentz': + elif dataset == 'lore': tmp = self.__read_binary_data__('velx', chunk_number) dset = tmp**2 tmp = self.__read_binary_data__('vely', chunk_number) diff --git a/python/amunpy/src/amunpy/amunxml.py b/python/amunpy/src/amunpy/amunxml.py index c0e2483..1a85f52 100644 --- a/python/amunpy/src/amunpy/amunxml.py +++ b/python/amunpy/src/amunpy/amunxml.py @@ -50,7 +50,8 @@ class AmunXML(Amun): tree = ET.parse(mfile) root = tree.getroot() if self.version < 0: - self.version = int(float(root.attrib['version'])) + if 'version' in root.attrib: + self.version = int(float(root.attrib['version'])) if root.tag == 'AMUNFile': self.dataformat = 'AmunXML' else: diff --git a/sources/evolution.F90 b/sources/evolution.F90 index 2c8de7f..1bc0460 100644 --- a/sources/evolution.F90 +++ b/sources/evolution.F90 @@ -82,7 +82,7 @@ module evolution ! real(kind=8) , save :: atol = 1.0d-04 real(kind=8) , save :: rtol = 1.0d-04 - real(kind=8) , save :: fac = 9.0d-01 + real(kind=8) , save :: fac = 8.1d-01 real(kind=8) , save :: facmin = 1.0d-01 real(kind=8) , save :: facmax = 5.0d+00 real(kind=8) , save :: errtol = 1.0d+00