Exemplo n.º 1
0
 def parse(self, cmd_args):
     self.args = self.ap.parse_args(cmd_args)
     if self.args.cfg:
         self.cfg = Inifile.load(self.args.cfg)
     else:
         soln = NativeReader(self.args.soln)
         self.cfg = Inifile(soln['config'])
Exemplo n.º 2
0
def process_restart(args):
    mesh = read_pyfr_data(args.mesh)
    soln = read_pyfr_data(args.soln)

    # Ensure the solution is from the mesh we are using
    if soln['mesh_uuid'] != mesh['mesh_uuid']:
        raise RuntimeError('Invalid solution for mesh.')

    # Process the config file
    if args.cfg:
        cfg = Inifile.load(args.cfg)
    else:
        cfg = Inifile(soln['config'])

    return mesh, soln, cfg
Exemplo n.º 3
0
def process_restart(args):
    mesh = read_pyfr_data(args.mesh)
    soln = read_pyfr_data(args.soln)

    # Ensure the solution is from the mesh we are using
    if soln['mesh_uuid'] != mesh['mesh_uuid']:
        raise RuntimeError('Invalid solution for mesh.')

    # Process the config file
    if args.cfg:
        cfg = Inifile.load(args.cfg)
    else:
        cfg = Inifile(soln['config'])

    return mesh, soln, cfg
Exemplo n.º 4
0
def process_restart(args):
    mesh = NativeReader(args.mesh)
    soln = NativeReader(args.soln)

    # Ensure the solution is from the mesh we are using
    if soln['mesh_uuid'] != mesh['mesh_uuid']:
        raise RuntimeError('Invalid solution for mesh.')

    # Process the config file
    if args.cfg:
        cfg = Inifile.load(args.cfg)
    else:
        cfg = Inifile(soln['config'])

    _process_common(args, mesh, soln, cfg)
Exemplo n.º 5
0
def process_restart(args):
    mesh = NativeReader(args.mesh)
    soln = NativeReader(args.soln)

    # Ensure the solution is from the mesh we are using
    if soln['mesh_uuid'] != mesh['mesh_uuid']:
        raise RuntimeError('Invalid solution for mesh.')

    # Process the config file
    if args.cfg:
        cfg = Inifile.load(args.cfg)
    else:
        cfg = Inifile(soln['config'])

    _process_common(args, mesh, soln, cfg)
Exemplo n.º 6
0
def process_restart(args):
    mesh = read_pyfr_data(args.mesh)
    soln = read_pyfr_data(args.soln)

    # Ensure the solution is from the mesh we are using
    if soln["mesh_uuid"] != mesh["mesh_uuid"]:
        raise RuntimeError("Invalid solution for mesh.")

    # Process the config file
    if args.cfg:
        cfg = Inifile.load(args.cfg)
    else:
        cfg = Inifile(soln["config"])

    _process_common(args, mesh, soln, cfg)
Exemplo n.º 7
0
def process_run(args):
    return read_pyfr_data(args.mesh), None, Inifile.load(args.cfg)
Exemplo n.º 8
0
def process_run(args):
    return read_pyfr_data(args.mesh), None, Inifile.load(args.cfg)
Exemplo n.º 9
0
def process_run(args):
    _process_common(
        args, NativeReader(args.mesh), None, Inifile.load(args.cfg)
    )
Exemplo n.º 10
0
def process_run(args):
    _process_common(
        args, NativeReader(args.mesh), None, Inifile.load(args.cfg)
    )
Exemplo n.º 11
0
def process_run(args):
    _process_common(args, read_pyfr_data(args.mesh), None, Inifile.load(args.cfg))