コード例 #1
0
def test_compile_mt3dusgs():
    # Remove the existing MT3D-USGS directory if it exists
    if os.path.isdir(mtusgspth):
        shutil.rmtree(mtusgspth)

    # download and compile MT3D-USGS
    pymake.build_program(target=target, download_dir=dstpth, exe_dir=dstpth)
    return
コード例 #2
0
def test_compile_mfnwt():
    # Remove the existing MODFLOW-NWT directory if it exists
    if os.path.isdir(mfnwtpth):
        shutil.rmtree(mfnwtpth)

    # compile MODFLOW-NWT
    pymake.build_program(target=mfnwt_target,
                         download_dir=dstpth,
                         exe_dir=dstpth)
コード例 #3
0
def compile_code():
    # Remove the existing mfusg directory if it exists
    if os.path.isdir(mfusgpth):
        shutil.rmtree(mfusgpth)

    # compile MODFLOW-USG
    pymake.build_program(target=target,
                         download_dir=dstpth,
                         exe_dir=dstpth)
コード例 #4
0
ファイル: t009_test.py プロジェクト: modflowpy/pymake
def test_compile_mfnwt():
    # Remove the existing MODFLOW-NWT directory if it exists
    if os.path.isdir(mfnwtpth):
        shutil.rmtree(mfnwtpth)

    # compile MODFLOW-NWT
    pymake.build_program(target=mfnwt_target,
                         download_dir=dstpth,
                         exe_dir=dstpth)
コード例 #5
0
ファイル: t009_test.py プロジェクト: modflowpy/pymake
def test_compile_mt3dusgs():
    # Remove the existing MT3D-USGS directory if it exists
    if os.path.isdir(mtusgspth):
        shutil.rmtree(mtusgspth)

    # download and compile MT3D-USGS
    pymake.build_program(target=target,
                         download_dir=dstpth,
                         exe_dir=dstpth)
    return
コード例 #6
0
def compile_code():
    # Remove the existing MODPATH 6 directory if it exists
    if os.path.isdir(mp6pth):
        shutil.rmtree(mp6pth)

    # download and compile MODPATH 6
    replace_function = pymake.build_replace(target)
    pymake.build_program(target=target,
                         download_dir=dstpth,
                         exe_dir=dstpth,
                         replace_function=replace_function)
コード例 #7
0
ファイル: t007_test.py プロジェクト: modflowpy/pymake
def test_compile_mfusg():
    # Remove the existing MODFLOW-USG directory if it exists
    if os.path.isdir(mfusgpth):
        shutil.rmtree(mfusgpth)

    # download and compile MODFLOW-USG
    replace_function = pymake.build_replace(mfusg_target)
    pymake.build_program(target=mfusg_target,
                         download_dir=dstpth,
                         exe_dir=dstpth,
                         replace_function=replace_function)
    return
コード例 #8
0
ファイル: t010_test.py プロジェクト: modflowpy/pymake
def compile_code():
    # Remove the existing mf6 directory if it exists
    if os.path.isdir(pth):
        shutil.rmtree(pth)

    # compile gridgen
    pymake.usgs_program_data().list_targets(current=True)
    replace_function = pymake.build_replace(target)
    pymake.build_program(target=target, fc=None, cc='g++',
                         include_subdirs=True,
                         download_dir=dstpth,
                         replace_function=replace_function)
コード例 #9
0
ファイル: t007_test.py プロジェクト: wjqiu/pymake
def test_compile_mfusg():
    # Remove the existing MODFLOW-USG directory if it exists
    if os.path.isdir(mfusgpth):
        shutil.rmtree(mfusgpth)

    # download and compile MODFLOW-USG
    replace_function = pymake.build_replace(mfusg_target)
    pymake.build_program(target=mfusg_target,
                         download_dir=dstpth,
                         exe_dir=dstpth,
                         replace_function=replace_function)
    return
コード例 #10
0
def compile_code():
    # Remove the existing mf6 directory if it exists
    if os.path.isdir(mf6pth):
        shutil.rmtree(mf6pth)

    # compile MODFLOW 6
    pymake.usgs_program_data().list_targets(current=True)
    replace_function = pymake.build_replace(target)
    pymake.build_program(target=target,
                         include_subdirs=True,
                         download_dir=dstpth,
                         replace_function=replace_function)
コード例 #11
0
def test_compile_gsflow():
    # Remove the existing GSFLOW directory if it exists
    if os.path.isdir(gsflowpth):
        shutil.rmtree(gsflowpth)

    # download and compile GSFLOW
    pymake.build_program(target=target,
                         include_subdirs=True,
                         fflags='-O1 -fno-second-underscore',
                         cflags='-O1',
                         download_dir=dstpth,
                         exe_dir=dstpth)
    return
コード例 #12
0
ファイル: t006_test.py プロジェクト: modflowpy/pymake
def compile_code():
    # Remove the existing MODFLOW-NWT directory if it exists
    if os.path.isdir(mfnwtpth):
        shutil.rmtree(mfnwtpth)

    # compile MODFLOW-NWT
    replace_function = pymake.build_replace(target)
    pymake.build_program(target=target,
                         download_dir=dstpth,
                         makeclean=False,
                         makefile=True,
                         exe_dir=dstpth,
                         replace_function=replace_function)
コード例 #13
0
def compile_code():
    # Remove the existing mfusg directory if it exists
    if os.path.isdir(mflgrpth):
        shutil.rmtree(mflgrpth)

    # compile MODFLOW-LGR
    replace_function = pymake.build_replace(target)
    pymake.build_program(target=target,
                         download_dir=dstpth,
                         exe_dir=dstpth,
                         replace_function=replace_function)

    return
コード例 #14
0
ファイル: t001_test.py プロジェクト: wjqiu/pymake
def test_compile_prev():
    # Compile reference version of the program from the source.

    # Remove the existing distribution directory if it exists
    if os.path.isdir(testdir_previous):
        print('Removing folder ' + testdir_previous)
        shutil.rmtree(testdir_previous)

    pymake.build_program(target=key_previous, fflags='-O3', cflags='-O3',
                         download_dir=testdir,
                         exe_name=target_previous)

    return
コード例 #15
0
ファイル: t007_test.py プロジェクト: modflowpy/pymake
def test_compile_mf6():
    # Remove the existing MODFLOW 6 directory if it exists
    if os.path.isdir(mf6pth):
        shutil.rmtree(mf6pth)

    # download and compile MODFLOW 6
    replace_function = pymake.build_replace(mf6_target)
    pymake.build_program(target=mf6_target,
                         include_subdirs=True,
                         download_dir=dstpth,
                         exe_dir=dstpth,
                         replace_function=replace_function)
    return
コード例 #16
0
def compile_code():
    # Remove the existing MODFLOW-NWT directory if it exists
    if os.path.isdir(mfnwtpth):
        shutil.rmtree(mfnwtpth)

    # compile MODFLOW-NWT
    replace_function = pymake.build_replace(target)
    pymake.build_program(target=target,
                         download_dir=dstpth,
                         makeclean=False,
                         makefile=True,
                         exe_dir=dstpth,
                         replace_function=replace_function)
コード例 #17
0
ファイル: t007_test.py プロジェクト: modflowpy/pymake
def test_compile_mp7():
    # Remove the existing MODPATH 6 directory if it exists
    if os.path.isdir(mp7pth):
        shutil.rmtree(mp7pth)

    # download and compile MODPATH 6
    replace_function = pymake.build_replace(target)
    pymake.build_program(target=target,
                         fflags='-ffree-line-length-512',
                         download_dir=dstpth,
                         exe_dir=dstpth,
                         replace_function=replace_function)
    return
コード例 #18
0
ファイル: t007_test.py プロジェクト: wjqiu/pymake
def test_compile_mf6():
    # Remove the existing MODFLOW 6 directory if it exists
    if os.path.isdir(mf6pth):
        shutil.rmtree(mf6pth)

    # download and compile MODFLOW 6
    replace_function = pymake.build_replace(mf6_target)
    pymake.build_program(target=mf6_target,
                         include_subdirs=True,
                         download_dir=dstpth,
                         exe_dir=dstpth,
                         replace_function=replace_function)
    return
コード例 #19
0
ファイル: t007_test.py プロジェクト: wjqiu/pymake
def test_compile_mp7():
    # Remove the existing MODPATH 6 directory if it exists
    if os.path.isdir(mp7pth):
        shutil.rmtree(mp7pth)

    # download and compile MODPATH 6
    replace_function = pymake.build_replace(target)
    pymake.build_program(target=target,
                         fflags='-ffree-line-length-512',
                         download_dir=dstpth,
                         exe_dir=dstpth,
                         replace_function=replace_function)
    return
コード例 #20
0
ファイル: t002_test.py プロジェクト: modflowpy/pymake
def compile_code():
    # Remove the existing seawat directory if it exists
    if os.path.isdir(swtpth):
        shutil.rmtree(swtpth)

    # compile seawat
    replace_function = pymake.build_replace(target)
    pymake.build_program(target=target,
                         double=True,
                         download_dir=dstpth,
                         exe_dir=dstpth,
                         replace_function=replace_function,
                         modify_exe_name=False)

    return
コード例 #21
0
ファイル: t002_test.py プロジェクト: Hofer-Julian/pymake
def compile_code():
    # Remove the existing seawat directory if it exists
    if os.path.isdir(swtpth):
        shutil.rmtree(swtpth)

    # compile seawat
    replace_function = pymake.build_replace(target)
    pymake.build_program(target=target,
                         double=True,
                         download_dir=dstpth,
                         exe_dir=dstpth,
                         replace_function=replace_function,
                         modify_exe_name=False)

    return