コード例 #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'])
コード例 #2
0
ファイル: sim.py プロジェクト: Aerojspark/PyFR
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
コード例 #3
0
ファイル: sim.py プロジェクト: bartwozniak/PyFR
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
コード例 #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)
コード例 #5
0
ファイル: main.py プロジェクト: GwenaelGabard/PyFR
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)
コード例 #6
0
ファイル: main.py プロジェクト: tjcorona/PyFR
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)
コード例 #7
0
ファイル: sim.py プロジェクト: Aerojspark/PyFR
def process_run(args):
    return read_pyfr_data(args.mesh), None, Inifile.load(args.cfg)
コード例 #8
0
ファイル: sim.py プロジェクト: bartwozniak/PyFR
def process_run(args):
    return read_pyfr_data(args.mesh), None, Inifile.load(args.cfg)
コード例 #9
0
def process_run(args):
    _process_common(
        args, NativeReader(args.mesh), None, Inifile.load(args.cfg)
    )
コード例 #10
0
ファイル: main.py プロジェクト: GwenaelGabard/PyFR
def process_run(args):
    _process_common(
        args, NativeReader(args.mesh), None, Inifile.load(args.cfg)
    )
コード例 #11
0
ファイル: main.py プロジェクト: tjcorona/PyFR
def process_run(args):
    _process_common(args, read_pyfr_data(args.mesh), None, Inifile.load(args.cfg))