Skip to content

Commit

Permalink
refactor(IC): integrate initial conditions pkg with IDM (MODFLOW-USGS…
Browse files Browse the repository at this point in the history
…#1425)

* refactor(IC): integrate initial conditions pkg with IDM

* update makefiles

* revisions
  • Loading branch information
wpbonelli authored Nov 7, 2023
1 parent 68834b1 commit 1b220d4
Show file tree
Hide file tree
Showing 12 changed files with 313 additions and 277 deletions.
68 changes: 34 additions & 34 deletions make/makefile
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
# makefile created by pymake (version 1.2.7) for the 'mf6' executable.
# makefile created by pymake (version 1.2.9.dev0) for the 'mf6' executable.


include ./makedefaults

# Define the source file directories
SOURCEDIR1=../src
SOURCEDIR2=../src/Distributed
SOURCEDIR3=../src/Exchange
SOURCEDIR4=../src/Model
SOURCEDIR5=../src/Model/Connection
SOURCEDIR6=../src/Model/Geometry
SOURCEDIR7=../src/Model/GroundWaterFlow
SOURCEDIR8=../src/Model/GroundWaterTransport
SOURCEDIR9=../src/Model/ModelUtilities
SOURCEDIR10=../src/Model/TransportModel
SOURCEDIR11=../src/Solution
SOURCEDIR12=../src/Solution/LinearMethods
SOURCEDIR13=../src/Solution/ParticleTracker
SOURCEDIR14=../src/Solution/PETSc
SOURCEDIR15=../src/Timing
SOURCEDIR16=../src/Utilities
SOURCEDIR17=../src/Utilities/ArrayRead
SOURCEDIR18=../src/Utilities/Idm
SOURCEDIR19=../src/Utilities/Idm/mf6blockfile
SOURCEDIR20=../src/Utilities/Idm/selector
SOURCEDIR21=../src/Utilities/Libraries
SOURCEDIR22=../src/Utilities/Libraries/blas
SOURCEDIR23=../src/Utilities/Libraries/daglib
SOURCEDIR24=../src/Utilities/Libraries/rcm
SOURCEDIR25=../src/Utilities/Libraries/sparsekit
SOURCEDIR26=../src/Utilities/Libraries/sparskit2
SOURCEDIR27=../src/Utilities/Matrix
SOURCEDIR28=../src/Utilities/Memory
SOURCEDIR29=../src/Utilities/Observation
SOURCEDIR30=../src/Utilities/OutputControl
SOURCEDIR31=../src/Utilities/TimeSeries
SOURCEDIR32=../src/Utilities/Vector
SOURCEDIR2=../src/Exchange
SOURCEDIR3=../src/Distributed
SOURCEDIR4=../src/Solution
SOURCEDIR5=../src/Solution/LinearMethods
SOURCEDIR6=../src/Solution/PETSc
SOURCEDIR7=../src/Timing
SOURCEDIR8=../src/Utilities
SOURCEDIR9=../src/Utilities/Idm
SOURCEDIR10=../src/Utilities/Idm/selector
SOURCEDIR11=../src/Utilities/Idm/mf6blockfile
SOURCEDIR12=../src/Utilities/TimeSeries
SOURCEDIR13=../src/Utilities/Memory
SOURCEDIR14=../src/Utilities/OutputControl
SOURCEDIR15=../src/Utilities/ArrayRead
SOURCEDIR16=../src/Utilities/Libraries
SOURCEDIR17=../src/Utilities/Libraries/rcm
SOURCEDIR18=../src/Utilities/Libraries/blas
SOURCEDIR19=../src/Utilities/Libraries/sparskit2
SOURCEDIR20=../src/Utilities/Libraries/daglib
SOURCEDIR21=../src/Utilities/Libraries/sparsekit
SOURCEDIR22=../src/Utilities/Vector
SOURCEDIR23=../src/Utilities/Matrix
SOURCEDIR24=../src/Utilities/Observation
SOURCEDIR25=../src/Model
SOURCEDIR26=../src/Model/Connection
SOURCEDIR27=../src/Model/GroundWaterTransport
SOURCEDIR28=../src/Model/ModelUtilities
SOURCEDIR29=../src/Model/GroundWaterFlow
SOURCEDIR30=../src/Model/TransportModel
SOURCEDIR31=../src/Model/Geometry

VPATH = \
${SOURCEDIR1} \
Expand Down Expand Up @@ -68,8 +67,7 @@ ${SOURCEDIR27} \
${SOURCEDIR28} \
${SOURCEDIR29} \
${SOURCEDIR30} \
${SOURCEDIR31} \
$(SOURCEDIR32)
${SOURCEDIR31}

.SUFFIXES: .f90 .F90 .o

Expand Down Expand Up @@ -98,6 +96,7 @@ $(OBJDIR)/DevFeature.o \
$(OBJDIR)/MemoryList.o \
$(OBJDIR)/simnamidm.o \
$(OBJDIR)/gwt1idm.o \
$(OBJDIR)/gwt1ic1idm.o \
$(OBJDIR)/gwt1dsp1idm.o \
$(OBJDIR)/gwt1disv1idm.o \
$(OBJDIR)/gwt1disu1idm.o \
Expand All @@ -109,6 +108,7 @@ $(OBJDIR)/gwf3rch8idm.o \
$(OBJDIR)/gwf3rcha8idm.o \
$(OBJDIR)/gwf3npf8idm.o \
$(OBJDIR)/gwf3idm.o \
$(OBJDIR)/gwf3ic8idm.o \
$(OBJDIR)/gwf3ghb8idm.o \
$(OBJDIR)/gwf3evt8idm.o \
$(OBJDIR)/gwf3evta8idm.o \
Expand Down
2 changes: 2 additions & 0 deletions msvs/mf6core.vfproj
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
<File RelativePath="..\src\Model\GroundWaterFlow\gwf3ghb8idm.f90"/>
<File RelativePath="..\src\Model\GroundWaterFlow\gwf3hfb8.f90"/>
<File RelativePath="..\src\Model\GroundWaterFlow\gwf3ic8.f90"/>
<File RelativePath="..\src\Model\GroundWaterFlow\gwf3ic8idm.f90"/>
<File RelativePath="..\src\Model\GroundWaterFlow\gwf3idm.f90"/>
<File RelativePath="..\src\Model\GroundWaterFlow\gwf3lak8.f90"/>
<File RelativePath="..\src\Model\GroundWaterFlow\gwf3maw8.f90"/>
Expand Down Expand Up @@ -171,6 +172,7 @@
<File RelativePath="..\src\Model\GroundWaterTransport\gwt1disv1idm.f90"/>
<File RelativePath="..\src\Model\GroundWaterTransport\gwt1dsp1.f90"/>
<File RelativePath="..\src\Model\GroundWaterTransport\gwt1dsp1idm.f90"/>
<File RelativePath="..\src\Model\GroundWaterTransport\gwt1ic1idm.f90"/>
<File RelativePath="..\src\Model\GroundWaterTransport\gwt1idm.f90"/>
<File RelativePath="..\src\Model\GroundWaterTransport\gwt1ist1.f90"/>
<File RelativePath="..\src\Model\GroundWaterTransport\gwt1lkt1.f90"/>
Expand Down
6 changes: 4 additions & 2 deletions src/Model/GroundWaterFlow/gwf3.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,7 @@ subroutine create_packages(this)
integer(I4B) :: n
integer(I4B) :: indis = 0 ! DIS enabled flag
character(len=LENMEMPATH) :: mempathnpf = ''
character(len=LENMEMPATH) :: mempathic = ''
!
! -- set input model memory path
model_mempath = create_mem_path(component=this%name, context=idm_context)
Expand Down Expand Up @@ -1542,7 +1543,8 @@ subroutine create_packages(this)
case ('CSUB6')
this%incsub = inunit
case ('IC6')
this%inic = inunit
this%inic = 1
mempathic = mempath
case ('MVR6')
this%inmvr = inunit
case ('OC6')
Expand All @@ -1569,7 +1571,7 @@ subroutine create_packages(this)
call sto_cr(this%sto, this%name, this%insto, this%iout)
call csub_cr(this%csub, this%name, this%insto, this%sto%packName, &
this%incsub, this%iout)
call ic_cr(this%ic, this%name, this%inic, this%iout, this%dis)
call ic_cr(this%ic, this%name, mempathic, this%inic, this%iout, this%dis)
call mvr_cr(this%mvr, this%name, this%inmvr, this%iout, this%dis)
call oc_cr(this%oc, this%name, this%inoc, this%iout)
call gwf_obs_cr(this%obs, this%inobs)
Expand Down
Loading

0 comments on commit 1b220d4

Please sign in to comment.