Skip to content

Commit

Permalink
update(mfusg-gsi): update gsi mfusg version to 2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed Jan 5, 2024
1 parent a3d5ebf commit 1835dc9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions pymake/utils/_usgs_src_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,32 @@ def _update_mfusg_gsi_files(srcdir, fc, cc, arch, double):
f.write(line)
f.close()

tag = "FORM = 'BINARY',"
tag2 = "FORM = FORMC,"
fpth = pl.Path(srcdir) / "gwt2dptu1.f"
if fpth.exists():
with open(fpth) as f:
lines = f.readlines()
f = open(fpth, "w")
for idx, line in enumerate(lines):
if tag in line:
line = line.replace(tag, tag2)
f.write(line)
f.close()

tag = "FORM = 'BINARY',"
tag2 = "FORM = FORM,"
fpth = pl.Path(srcdir) / "glo2btnu1.f"
if fpth.exists():
with open(fpth) as f:
lines = f.readlines()
f = open(fpth, "w")
for idx, line in enumerate(lines):
if tag in line:
line = line.replace(tag, tag2)
f.write(line)
f.close()

# rename "utl7u1 RD.f" to "utl7u1_RD.f"
fpth = pl.Path(srcdir) / "utl7u1 RD.f"
if fpth.exists():
Expand Down
2 changes: 1 addition & 1 deletion pymake/utils/usgsprograms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mflgr , 2.0.0 , True , https://water.usgs.gov/ogw/modflow-lgr/modflow-
zonbud3 , 3.01 , True , https://water.usgs.gov/water-resources/software/ZONEBUDGET/zonbud3_01.exe , Zonbud.3_01 , Src , True , False , False
mfnwt1.1.4 , 1.1.4 , False , https://water.usgs.gov/water-resources/software/MODFLOW-NWT/MODFLOW-NWT_1.1.4.zip , MODFLOW-NWT_1.1.4 , src , True , False , False
mfnwt , 1.3.0 , True , https://water.usgs.gov/water-resources/software/MODFLOW-NWT/MODFLOW-NWT_1.3.0.zip , MODFLOW-NWT , src , True , False , False
mfusg_gsi , 2.1.1 , True , https://www.gsienv.com/wp-content/uploads/2023/04/USG-Transport-V_2.1.1.zip , USGT-v2-1-1-source , . , True , False , False
mfusg_gsi , 2.2.2 , True , https://www.gsienv.com/wp-content/uploads/2023/11/USG-Transport_Version-2.2.2.zip , USGT-v2-2-2-Source , . , True , False , False
mf6dev , 6.5.0.dev0 , False , https://github.com/MODFLOW-USGS/modflow6/archive/refs/heads/develop.zip , modflow6-develop , src , True , False , False
zbud6dev , 6.5.0.dev0 , False , https://github.com/MODFLOW-USGS/modflow6/archive/refs/heads/develop.zip , modflow6-develop , utils/zonebudget/src, True , False , False
libmf6dev , 6.5.0.dev0 , False , https://github.com/MODFLOW-USGS/modflow6/archive/refs/heads/develop.zip , modflow6-develop , srcbmi , True , False , True

0 comments on commit 1835dc9

Please sign in to comment.