示例#1
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)
示例#2
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)
示例#3
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
示例#4
0
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
示例#5
0
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)
示例#6
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
示例#7
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
示例#8
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)
示例#9
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)
示例#10
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
示例#11
0
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
示例#12
0
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
示例#13
0
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
示例#14
0
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