Exemple #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)
Exemple #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)
Exemple #3
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
Exemple #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
Exemple #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)
Exemple #6
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
Exemple #7
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
Exemple #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)
Exemple #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)
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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