Error while restarting from an existing solution file

Hi, I am trying to restart from an existing solution file which was created on a different machine.
But I get the following error

Traceback (most recent call last):
  File "/m100/home/userexternal/apillai0/myenv/bin/pyfr", line 10, in <module>
    sys.exit(main())
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/__main__.py", line 117, in main
    args.process(args)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/__main__.py", line 264, in process_restart
    _process_common(args, mesh, soln, cfg)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/__main__.py", line 227, in _process_common
    solver = get_solver(backend, rallocs, mesh, soln, cfg)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/solvers/__init__.py", line 16, in get_solver
    return get_integrator(backend, systemcls, rallocs, mesh, initsoln, cfg)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/integrators/__init__.py", line 36, in get_integrator
    return integrator(backend, systemcls, rallocs, mesh, initsoln, cfg)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/integrators/std/controllers.py", line 86, in __init__
    super().__init__(*args, **kwargs)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/integrators/std/controllers.py", line 14, in __init__
    super().__init__(*args, **kwargs)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/integrators/std/steppers.py", line 133, in __init__
    super().__init__(*args, **kwargs)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/integrators/std/base.py", line 28, in __init__
    nregs=self.nregs, cfg=cfg)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/solvers/base/system.py", line 67, in __init__
    self._gen_kernels(eles, int_inters, mpi_inters, bc_inters)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/solvers/base/system.py", line 188, in _gen_kernels
    kernels[pn, kn].append(kgetter())
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/solvers/baseadvec/elements.py", line 86, in <lambda>
    rcpdjac=self.rcpdjac_at('upts'), ploc=plocupts, u=solnupts
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/backends/base/backend.py", line 163, in kernel
    return kern(*args, **kwargs)
File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/backends/base/kernels.py", line 167, in kernel_meth
    return self._instantiate_kernel(dims, fun, argb)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/backends/cuda/provider.py", line 34, in _instantiate_kernel
    block = (cfg.getint('backend-cuda', 'block-2d', '128'), 1, 1)
  File "/m100/home/userexternal/apillai0/myenv/lib/python3.7/site-packages/pyfr/inifile.py", line 105, in getint
    return int(self.get(section, option, default))
ValueError: invalid literal for int() with base 10: '128, 1'

The existing solution file was generated by an older version of PyFR.

Hi Arun. I got the exact same error a few days ago. It seems to be an issue reading the ‘backend-cuda’, ‘block-2d’ section of the .ini file that is embedded in the .pyfrs file that you are restarting from. @fdw has this section been depreciated in a recent release?

You can overcome the issue by providing an .ini file on the command line (i.e. pyfr restart mesh.pyfrm solution.pyfrs settings.ini) and this will override anything embedded in the .pyfrs file.