Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update for mf6.6.0 #203

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: v0.19.1
pixi-version: v0.34.0
manifest-path: "pixi.toml"

- name: pixi post-install
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: v0.19.1
pixi-version: v0.34.0
manifest-path: "pixi.toml"

- name: pixi post-install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pymake-linting-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: v0.19.1
pixi-version: v0.34.0
manifest-path: "pixi.toml"

- name: Lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pymake-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: v0.19.1
pixi-version: v0.34.0
manifest-path: "pixi.toml"

- name: pixi post-install
Expand Down
12,239 changes: 6,325 additions & 5,914 deletions pixi.lock

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions pymake/utils/_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
__status__ = "Production"

import os
import re


class Node:
Expand Down Expand Up @@ -125,6 +126,7 @@ def _get_f_nodelist(srcfiles):
# create a dictionary that has a list of modules used within each source
# create a list of Nodes for later ordering
# create a dictionary of nodes
submodule_pattern = r"\(([^)]+)\)"
module_dict = {}
sourcefile_module_dict = {}
nodelist = []
Expand All @@ -148,13 +150,17 @@ def _get_f_nodelist(srcfiles):
linelist = line.strip().split()
if len(linelist) == 0:
continue
if linelist[0].upper() in ["MODULE", "SUBMODULE"]:
if linelist[0].upper() == "MODULE":
modulename = linelist[1].upper()
module_dict[modulename] = srcfile
if linelist[0].upper() == "USE":
modulename = linelist[1].split(",")[0].upper()
if modulename not in modulelist:
modulelist.append(modulename)
if line.strip().upper().startswith("SUBMODULE"):
modulename = re.findall(submodule_pattern, line)[0].upper()
if modulename not in modulelist:
modulelist.append(modulename)

# update the dictionary if any entries have been found
sourcefile_module_dict[srcfile] = modulelist
Expand All @@ -171,7 +177,7 @@ def _get_f_nodelist(srcfiles):
if m in module_dict:
mlocation = module_dict[m]
if mlocation != srcfile:
# print 'adding dependency: ', srcfile, mlocation
# print(f"adding dependency: {srcfile} {mlocation}")
node.add_dependency(nodedict[mlocation])
except:
print(f"get_f_nodelist: {srcfile} key does not exist")
Expand Down
10 changes: 9 additions & 1 deletion pymake/utils/_usgs_src_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def _update_mf6_external_dependencies(
target: str = "mf6",
) -> None:
"""
Remove MODFLOW 6 files with external library dependencies (PETSc, MPI).
Remove MODFLOW 6 files with external library dependencies (PETSc, MPI, NetCDF).


Parameters
Expand Down Expand Up @@ -769,6 +769,14 @@ def _update_mf6_external_dependencies(
"Solution/ParallelSolution.f90",
"Distributed/MpiUnitCache.f90",
"Distributed/MpiMessageCache.f90",
"Utilities/Export/DisNCMesh.f90",
"Utilities/Export/DisNCStructured.f90",
"Utilities/Export/DisvNCMesh.f90",
"Utilities/Export/MeshNCModel.f90",
"Utilities/Export/NCExportCreate.f90",
"Utilities/Idm/netcdf/NCArrayReader.f90",
"Utilities/Idm/netcdf/NCContextBuild.f90",
"Utilities/Idm/netcdf/NetCDFCommon.f90",
)
for file in parallel_files:
path = srcdir / file
Expand Down
16 changes: 8 additions & 8 deletions pymake/utils/usgsprograms.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
target , version, current, url , dirname , srcdir , standard_switch, double_switch, shared_object
mf6 , 6.5.0 , True , https://github.com/MODFLOW-USGS/modflow6/releases/download/6.5.0/mf6.5.0_linux.zip , mf6.5.0_linux , src , True , False , False
zbud6 , 6.5.0 , True , https://github.com/MODFLOW-USGS/modflow6/releases/download/6.5.0/mf6.5.0_linux.zip , mf6.5.0_linux , utils/zonebudget/src, True , False , False
libmf6 , 6.5.0 , True , https://github.com/MODFLOW-USGS/modflow6/releases/download/6.5.0/mf6.5.0_linux.zip , mf6.5.0_linux , srcbmi , True , False , True
mf6 , 6.6.0 , True , https://github.com/MODFLOW-USGS/modflow6/releases/download/6.6.0/mf6.6.0_linux.zip , mf6.6.0_linux , src , True , False , False
zbud6 , 6.6.0 , True , https://github.com/MODFLOW-USGS/modflow6/releases/download/6.6.0/mf6.6.0_linux.zip , mf6.6.0_linux , utils/zonebudget/src, True , False , False
libmf6 , 6.6.0 , True , https://github.com/MODFLOW-USGS/modflow6/releases/download/6.6.0/mf6.6.0_linux.zip , mf6.6.0_linux , srcbmi , True , False , True
mp7 , 7.2.001, True , https://water.usgs.gov/water-resources/software/MODPATH/modpath_7_2_001.zip , modpath_7_2_001 , source , True , False , False
mt3dms , 5.3.0 , True , https://github.com/MODFLOW-USGS/mt3dms/releases/download/2.0/mt3dms-2.0.zip , mt3dms-2.0 , true-binary , True , False , False
mt3dusgs , 1.1.0 , True , https://water.usgs.gov/water-resources/software/MT3D-USGS/mt3dusgs1.1.0.zip , mt3dusgs1.1.0 , src , True , False , False
vs2dt , 3.3 , True , https://water.usgs.gov/water-resources/software/VS2DI/vs2dt3_3.zip , vs2dt3_3 , include , True , False , False
triangle , 1.6 , True , https://github.com/MODFLOW-USGS/triangle/releases/download/1.0/triangle-1.0.zip , triangle-1.0 , src , True , False , False
gridgen , 1.0.02 , True , https://water.usgs.gov/water-resources/software/GRIDGEN/gridgen.1.0.02.zip , gridgen.1.0.02 , src , True , False , False
crt , 1.3.1 , True , https://water.usgs.gov/ogw/CRT/CRT_1.3.1.zip , CRT_1.3.1 , SOURCE , True , False , False
sutra , 3.0 , True , https://water.usgs.gov/water-resources/software/sutra/SUTRA_3_0_0.zip , SutraSuite , SUTRA_3_0/source , True , False , False
sutra , 4.0 , True , https://water.usgs.gov/water-resources/software/sutra/4.0/SUTRA_4_0_0.zip , SutraSuite , SUTRA_4_0/source , True , False , False
mf2000 , 1.19.01, True , https://water.usgs.gov/nrp/gwsoftware/modflow2000/mf2k1_19_01.tar.gz , mf2k.1_19 , src , True , False , False
mf2005 , 1.12.00, True , https://github.com/MODFLOW-USGS/mf2005/releases/download/v.1.12.00/MF2005.1_12u.zip , MF2005.1_12u , src , True , False , False
mfusg , 1.5 , True , https://water.usgs.gov/water-resources/software/MODFLOW-USG/mfusg1_5.zip , mfusg1_5 , src , True , False , False
Expand All @@ -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.3.0 , True , https://www.gsienv.com/wp-content/uploads/2024/03/USG-Transport_Version-2.3.0.zip , USGT-v2-3-0-Source , . , True , False , False
mf6dev , 6.6.0.dev0 , False , https://github.com/MODFLOW-USGS/modflow6/archive/refs/heads/develop.zip , modflow6-develop , src , True , False , False
zbud6dev , 6.6.0.dev0 , False , https://github.com/MODFLOW-USGS/modflow6/archive/refs/heads/develop.zip , modflow6-develop , utils/zonebudget/src, True , False , False
libmf6dev , 6.6.0.dev0 , False , https://github.com/MODFLOW-USGS/modflow6/archive/refs/heads/develop.zip , modflow6-develop , srcbmi , True , False , True
mfusg_gsi , 2.4.0 , True , https://www.gsienv.com/wp-content/uploads/2024/07/USG-Transport_Version-2.4.0.zip , USGT-v2-4-0-Source , . , True , False , False
mf6dev , 6.7.0.dev0 , False , https://github.com/MODFLOW-USGS/modflow6/archive/refs/heads/develop.zip , modflow6-develop , src , True , False , False
zbud6dev , 6.7.0.dev0 , False , https://github.com/MODFLOW-USGS/modflow6/archive/refs/heads/develop.zip , modflow6-develop , utils/zonebudget/src, True , False , False
libmf6dev , 6.7.0.dev0 , False , https://github.com/MODFLOW-USGS/modflow6/archive/refs/heads/develop.zip , modflow6-develop , srcbmi , True , False , True
Loading