コード例 #1
0
ファイル: testjobrunner.py プロジェクト: waiwera/credo
 def test_aut2(self):
     mrun = T2ModelRun('test_aut2',
                       'coarse.dat',
                       basePath=TEST_PATH,
                       )
     jrunner = SimpleJobRunner(mpi=False)
     jmi = jrunner.submitRun(mrun)
     mres = jrunner.blockResult(mrun, jmi)
コード例 #2
0
ファイル: testjobrunner.py プロジェクト: waiwera/credo
 def test_waiwera(self):
     mrun = WaiweraModelRun('test_super_fruit',
                          '',
                          simulator='test_all.exe',
                          basePath=TEST_PATH,
                          )
     jrunner = SimpleJobRunner(mpi=True)
     jmi = jrunner.submitRun(mrun)
     mres = jrunner.blockResult(mrun, jmi)
コード例 #3
0
ファイル: testjobrunner.py プロジェクト: waiwera/credo
 def test_jobrunner_mpi(self):
     mrun = MockModelRun()
     jrunner = SimpleJobRunner(mpi=True)
     jmi = jrunner.submitRun(mrun)
     mres = jrunner.blockResult(mrun, jmi)
コード例 #4
0
geo = mulgrid(os.path.join(MODELDIR, t2geo_fn))
map_out_atm = range(geo.num_atmosphere_blocks, geo.num_blocks)

# ---------------------------------------------------------------------------
# use AUT2 to work out expected/reference results
mrun_t = T2ModelRun(
    "aut2",
    t2dat_fn,
    geo_filename=t2geo_fn,
    ordering_map=map_out_atm,
    fieldname_map=AUT2_FIELDMAP,
    # simulator='AUTOUGH2_5Dbeta',  # AY_CYGWIN
    basePath=os.path.realpath(MODELDIR))
jrunner = SimpleJobRunner()
jmeta = jrunner.submitRun(mrun_t)
mres_t = jrunner.blockResult(mrun_t, jmeta)
# can directly load ModelResult instead
# mres_t = T2ModelResult("aut2",
#                        "CC6/CC6C001.LISTING",
#                        geo_filename="CC6/"+t2geo_fn,
#                        ordering_map=map_out_atm,
#                        fieldname_map=AUT2_FIELDMAP)

# ---------------------------------------------------------------------------
# construct Waiwera run and benchamrk test
mrun_s = WaiweraModelRun(
    "waiwera",
    waiwera_fn,
    fieldname_map=WAIWERA_FIELDMAP,
    # simulator='Waiwera.exe',  # AY_CYGWIN
    basePath=os.path.realpath(MODELDIR))