def build_all(): if pymake is not None: # build all of the applications pymake.build_apps() # build code json pymake.usgs_program_data.export_json(current=True)
def build_all(): if pymake is not None: # build code json pymake.usgs_program_data.export_json(current=True, write_markdown=True) # build all of the applications pymake.build_apps(release_precision=False, verbose=True)
def test_gnu_make(): os.makedirs(cpth, exist_ok=True) target = "triangle" pm = pymake.Pymake(verbose=True) pm.makefile = True pm.makeclean = True pm.cc = "gcc" if sys.platform.lower() == "win32": target += ".exe" # get current directory cwd = os.getcwd() # change to working directory so triangle download directory is # a subdirectory in the working directory os.chdir(cpth) # build triangle and makefile assert (pymake.build_apps( target, clean=False, pymake_object=pm) == 0), "could not build {}".format(target) if os.path.isfile(os.path.join(cpth, "makefile")): print("cleaning with GNU make") # clean prior to make print("clean {} with makefile".format(target)) success, buff = flopy.run_model( "make", None, cargs="clean", model_ws=cpth, report=True, normal_msg="rm -rf ./triangle", silent=False, ) # build triangle with makefile if success: print("build {} with makefile".format(target)) success, buff = flopy.run_model( "make", None, model_ws=cpth, report=True, normal_msg="cc -O2 -o triangle ./obj_temp/triangle.o", silent=False, ) # finalize Pymake object pm.finalize() # return to starting directory os.chdir(cwd) assert os.path.isfile(os.path.join( cpth, target)), "could not build {} with makefile".format(target) return
def compile_code(): # Remove the existing mfusg directory if it exists if os.path.isdir(mflgrpth): shutil.rmtree(mflgrpth) # compile MODFLOW-LGR return pymake.build_apps( target, download_dir=dstpth, appdir=dstpth, verbose=True )
def make_mfnwt(): pymake.build_apps("mfnwt")
def make_mf2005(): pymake.build_apps("mf2005", verbose=True)
def make_mt3dusgs(): pymake.build_apps("mt3dusgs")
def make_mp6(): pymake.build_apps('mp6')
def make_mfnwt(): pymake.build_apps('mfnwt')
def make_vs2dt(): pymake.build_apps('vs2dt')
def make_mf2005(): pymake.build_apps("mf2005")
def make_mf6(): pymake.build_apps(['mf6', 'zbud6'])
def test_build_gridgen(): pymake.build_apps('gridgen') return
def make_triangle(): pymake.build_apps('triangle')
def build_target(target): if pymake is not None: pymake.build_apps(targets=target) return
def make_app(): pymake.build_apps(['gsflow'])
def test_compile(target): assert (pymake.build_apps( target, download_dir=dstpth, appdir=appdir, verbose=True) == 0), "could not compile {}".format(target)
def make_mt3dms(): pymake.build_apps('mt3dms')
def make_mf2000(): pymake.build_apps('mf2000')
def make_mfusg(): pymake.build_apps(["mfusg"])
def make_app(): pymake.build_apps(['crt'])
def make_mp7(): pymake.build_apps('mp7')
def make_mt3dms(): pymake.build_apps("mt3dms")
def make_mf6beta(): pymake.build_apps('mf6beta')
def make_app(): pymake.build_apps(["gsflow"])
def make_swtv4(): pymake.build_apps("swtv4") return
def make_mflgr(): pymake.build_apps("mflgr")
def test_build_modflow(): found = copy_app_in_mfexe('mf2005dbl' + eext) if not found: pymake.build_apps('mf2005') return
def make_mflgr(): pymake.build_apps("mflgr", verbose=True)
def test_build_mfnwt(): found = copy_app_in_mfexe('mfnwtdbl' + eext) if not found: pymake.build_apps('mfnwt') return
def test_build_usg(): found = copy_app_in_mfexe('mfusgdbl' + eext) if not found: pymake.build_apps('mfusg')
def make_mp7(): pymake.build_apps("mp7")
def test_build_lgr(): found = copy_app_in_mfexe('mflgrdbl' + eext) if not found: pymake.build_apps('mflgr') return
def make_mflgr(): pymake.build_apps('mflgr')
def make_mf2005(): pymake.build_apps('mf2005')
def make_app(): pymake.build_apps(["gsflow"], verbose=True)
def make_swtv4(): pymake.build_apps('swtv4') return