Ejemplo n.º 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
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 4
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)
Ejemplo n.º 5
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
Ejemplo n.º 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)
Ejemplo n.º 7
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
Ejemplo n.º 8
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)
Ejemplo n.º 9
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
Ejemplo n.º 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)
Ejemplo n.º 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
Ejemplo n.º 12
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)
Ejemplo n.º 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
Ejemplo n.º 14
0
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
Ejemplo n.º 15
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
Ejemplo n.º 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)
Ejemplo n.º 17
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
Ejemplo n.º 18
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
Ejemplo n.º 19
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
Ejemplo n.º 20
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
Ejemplo n.º 21
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