Skip to content

Commit

Permalink
GWE-GWE exchanges now working. Other clean-up for code uniformity
Browse files Browse the repository at this point in the history
  • Loading branch information
emorway-usgs committed Jan 15, 2024
1 parent cbc6c47 commit d49e996
Show file tree
Hide file tree
Showing 8 changed files with 1,293 additions and 167 deletions.
1,086 changes: 1,086 additions & 0 deletions autotest/test_gwegwe_exchng_with_comp2gwt.py

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/Distributed/VirtualGweModel.f90
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ module VirtualGweModelModule
type(VirtualDbl1dType), pointer :: dsp_ath1 => null()
type(VirtualDbl1dType), pointer :: dsp_ath2 => null()
type(VirtualDbl1dType), pointer :: dsp_atv => null()
type(VirtualDbl1dType), pointer :: dsp_ktw => null()
type(VirtualDbl1dType), pointer :: dsp_kts => null()
! FMI
type(VirtualDbl1dType), pointer :: fmi_gwfhead => null()
type(VirtualDbl1dType), pointer :: fmi_gwfsat => null()
Expand Down Expand Up @@ -86,6 +88,8 @@ subroutine init_virtual_data(this)
call this%set(this%dsp_ath1%base(), 'ATH1', 'DSP', MAP_NODE_TYPE)
call this%set(this%dsp_ath2%base(), 'ATH2', 'DSP', MAP_NODE_TYPE)
call this%set(this%dsp_atv%base(), 'ATV', 'DSP', MAP_NODE_TYPE)
call this%set(this%dsp_ktw%base(), 'KTW', 'DSP', MAP_NODE_TYPE)
call this%set(this%dsp_kts%base(), 'KTS', 'DSP', MAP_NODE_TYPE)
call this%set(this%fmi_gwfhead%base(), 'GWFHEAD', 'FMI', MAP_NODE_TYPE)
call this%set(this%fmi_gwfsat%base(), 'GWFSAT', 'FMI', MAP_NODE_TYPE)
call this%set(this%fmi_gwfspdis%base(), 'GWFSPDIS', 'FMI', MAP_NODE_TYPE)
Expand Down Expand Up @@ -134,6 +138,7 @@ subroutine vgwe_prepare_stage(this, stage)
call this%map(this%dsp_ath1%base(), nr_nodes, (/STG_BFR_CON_AR/))
call this%map(this%dsp_ath2%base(), nr_nodes, (/STG_BFR_CON_AR/))
call this%map(this%dsp_atv%base(), nr_nodes, (/STG_BFR_CON_AR/))
call this%map(this%dsp_ktw%base(), nr_nodes, (/STG_BFR_CON_AR/))
end if

call this%map(this%fmi_gwfhead%base(), nr_nodes, (/STG_BFR_EXG_AD/))
Expand All @@ -160,6 +165,8 @@ subroutine allocate_data(this)
allocate (this%dsp_ath1)
allocate (this%dsp_ath2)
allocate (this%dsp_atv)
allocate (this%dsp_ktw)
allocate (this%dsp_kts)
allocate (this%fmi_gwfhead)
allocate (this%fmi_gwfsat)
allocate (this%fmi_gwfspdis)
Expand All @@ -181,6 +188,8 @@ subroutine deallocate_data(this)
deallocate (this%dsp_ath1)
deallocate (this%dsp_ath2)
deallocate (this%dsp_atv)
deallocate (this%dsp_ktw)
deallocate (this%dsp_kts)
deallocate (this%fmi_gwfhead)
deallocate (this%fmi_gwfsat)
deallocate (this%fmi_gwfspdis)
Expand Down
Loading

0 comments on commit d49e996

Please sign in to comment.