94 character(len=LENLISTLABEL),
pointer :: listlabel => null()
95 character(len=LENMEMPATH),
pointer :: stomempath => null()
97 character(len=LENBOUNDNAME),
dimension(:), &
98 pointer,
contiguous :: boundname => null()
99 character(len=LENAUXNAME),
dimension(:), &
100 pointer,
contiguous :: auxname => null()
102 logical(LGP),
pointer :: lhead_based => null()
104 integer(I4B),
pointer :: istounit => null()
105 integer(I4B),
pointer :: istrict_stress => null()
106 integer(I4B),
pointer :: nreg_ts => null()
107 integer(I4B),
pointer :: istrainib => null()
108 integer(I4B),
pointer :: istrainsk => null()
109 integer(I4B),
pointer :: ioutcomp => null()
110 integer(I4B),
pointer :: ioutcompi => null()
111 integer(I4B),
pointer :: ioutcompe => null()
112 integer(I4B),
pointer :: ioutcompib => null()
113 integer(I4B),
pointer :: ioutcomps => null()
114 integer(I4B),
pointer :: ioutzdisp => null()
115 integer(I4B),
pointer :: ipakcsv => null()
116 integer(I4B),
pointer :: iupdatematprop => null()
117 integer(I4B),
pointer :: istoragec => null()
118 integer(I4B),
pointer :: icellf => null()
119 integer(I4B),
pointer :: ispecified_pcs => null()
120 integer(I4B),
pointer :: ispecified_dbh => null()
121 integer(I4B),
pointer :: inamedbound => null()
122 integer(I4B),
pointer :: iconvchk => null()
123 integer(I4B),
pointer :: naux => null()
124 integer(I4B),
pointer :: ninterbeds => null()
125 integer(I4B),
pointer :: maxsig0 => null()
126 integer(I4B),
pointer :: nbound => null()
127 integer(I4B),
pointer :: iscloc => null()
128 integer(I4B),
pointer :: iauxmultcol => null()
129 integer(I4B),
pointer :: ndelaycells => null()
130 integer(I4B),
pointer :: ndelaybeds => null()
131 integer(I4B),
pointer :: initialized => null()
132 integer(I4B),
pointer :: ieslag => null()
133 integer(I4B),
pointer :: ipch => null()
134 integer(I4B),
pointer :: iupdatestress => null()
136 real(dp),
pointer :: epsilon => null()
137 real(dp),
pointer :: cc_crit => null()
138 real(dp),
pointer :: gammaw => null()
139 real(dp),
pointer :: beta => null()
140 real(dp),
pointer :: brg => null()
141 real(dp),
pointer :: satomega => null()
142 real(dp),
pointer :: pcsomega => null()
144 integer(I4B),
pointer :: gwfiss => null()
145 integer(I4B),
pointer :: gwfiss0 => null()
147 integer(I4B),
dimension(:),
pointer,
contiguous :: ibound => null()
148 integer(I4B),
dimension(:),
pointer,
contiguous :: stoiconv => null()
150 real(dp),
dimension(:),
pointer,
contiguous :: stoss => null()
151 real(dp),
dimension(:),
pointer,
contiguous :: buff => null()
152 real(dp),
dimension(:),
pointer,
contiguous :: buffusr => null()
153 integer,
dimension(:),
pointer,
contiguous :: nodelist => null()
154 integer,
dimension(:),
pointer,
contiguous :: unodelist => null()
157 real(dp),
dimension(:),
pointer,
contiguous :: sgm => null()
158 real(dp),
dimension(:),
pointer,
contiguous :: sgs => null()
159 real(dp),
dimension(:),
pointer,
contiguous :: cg_ske_cr => null()
160 real(dp),
dimension(:),
pointer,
contiguous :: cg_gs => null()
161 real(dp),
dimension(:),
pointer,
contiguous :: cg_es => null()
162 real(dp),
dimension(:),
pointer,
contiguous :: cg_es0 => null()
163 real(dp),
dimension(:),
pointer,
contiguous :: cg_pcs => null()
164 real(dp),
dimension(:),
pointer,
contiguous :: cg_comp => null()
165 real(dp),
dimension(:),
pointer,
contiguous :: cg_tcomp => null()
166 real(dp),
dimension(:),
pointer,
contiguous :: cg_stor => null()
167 real(dp),
dimension(:),
pointer,
contiguous :: cg_ske => null()
168 real(dp),
dimension(:),
pointer,
contiguous :: cg_sk => null()
169 real(dp),
dimension(:),
pointer,
contiguous :: cg_thickini => null()
170 real(dp),
dimension(:),
pointer,
contiguous :: cg_thetaini => null()
171 real(dp),
dimension(:),
pointer,
contiguous :: cg_thick => null()
172 real(dp),
dimension(:),
pointer,
contiguous :: cg_thick0 => null()
173 real(dp),
dimension(:),
pointer,
contiguous :: cg_theta => null()
174 real(dp),
dimension(:),
pointer,
contiguous :: cg_theta0 => null()
177 real(dp),
dimension(:),
pointer,
contiguous :: cell_wcstor => null()
178 real(dp),
dimension(:),
pointer,
contiguous :: cell_thick => null()
181 integer(I4B),
dimension(:),
pointer,
contiguous :: idelay => null()
182 integer(I4B),
dimension(:),
pointer,
contiguous :: ielastic => null()
183 integer(I4B),
dimension(:),
pointer,
contiguous :: iconvert => null()
184 integer(I4B),
dimension(:),
pointer,
contiguous :: iconvert_nr => null()
185 real(dp),
dimension(:),
pointer,
contiguous :: ci => null()
186 real(dp),
dimension(:),
pointer,
contiguous :: rci => null()
187 real(dp),
dimension(:),
pointer,
contiguous :: pcs => null()
188 real(dp),
dimension(:),
pointer,
contiguous :: rnb => null()
189 real(dp),
dimension(:),
pointer,
contiguous :: kv => null()
190 real(dp),
dimension(:),
pointer,
contiguous :: h0 => null()
191 real(dp),
dimension(:),
pointer,
contiguous :: comp => null()
192 real(dp),
dimension(:),
pointer,
contiguous :: tcomp => null()
193 real(dp),
dimension(:),
pointer,
contiguous :: tcompi => null()
194 real(dp),
dimension(:),
pointer,
contiguous :: tcompe => null()
195 real(dp),
dimension(:),
pointer,
contiguous :: storagee => null()
196 real(dp),
dimension(:),
pointer,
contiguous :: storagei => null()
197 real(dp),
dimension(:),
pointer,
contiguous :: ske => null()
198 real(dp),
dimension(:),
pointer,
contiguous :: sk => null()
199 real(dp),
dimension(:),
pointer,
contiguous :: thickini => null()
200 real(dp),
dimension(:),
pointer,
contiguous :: thetaini => null()
201 real(dp),
dimension(:),
pointer,
contiguous :: thick => null()
202 real(dp),
dimension(:),
pointer,
contiguous :: thick0 => null()
203 real(dp),
dimension(:),
pointer,
contiguous :: theta => null()
204 real(dp),
dimension(:),
pointer,
contiguous :: theta0 => null()
205 real(dp),
dimension(:, :),
pointer,
contiguous :: auxvar => null()
208 integer(I4B),
dimension(:),
pointer,
contiguous :: idb_nconv_count => null()
209 integer(I4B),
dimension(:, :),
pointer,
contiguous :: idbconvert => null()
210 real(dp),
dimension(:),
pointer,
contiguous :: dbdhmax => null()
211 real(dp),
dimension(:, :),
pointer,
contiguous :: dbz => null()
212 real(dp),
dimension(:, :),
pointer,
contiguous :: dbrelz => null()
213 real(dp),
dimension(:, :),
pointer,
contiguous :: dbh => null()
214 real(dp),
dimension(:, :),
pointer,
contiguous :: dbh0 => null()
215 real(dp),
dimension(:, :),
pointer,
contiguous :: dbgeo => null()
216 real(dp),
dimension(:, :),
pointer,
contiguous :: dbes => null()
217 real(dp),
dimension(:, :),
pointer,
contiguous :: dbes0 => null()
218 real(dp),
dimension(:, :),
pointer,
contiguous :: dbpcs => null()
219 real(dp),
dimension(:),
pointer,
contiguous :: dbflowtop => null()
220 real(dp),
dimension(:),
pointer,
contiguous :: dbflowbot => null()
221 real(dp),
dimension(:, :),
pointer,
contiguous :: dbdzini => null()
222 real(dp),
dimension(:, :),
pointer,
contiguous :: dbthetaini => null()
223 real(dp),
dimension(:, :),
pointer,
contiguous :: dbdz => null()
224 real(dp),
dimension(:, :),
pointer,
contiguous :: dbdz0 => null()
225 real(dp),
dimension(:, :),
pointer,
contiguous :: dbtheta => null()
226 real(dp),
dimension(:, :),
pointer,
contiguous :: dbtheta0 => null()
227 real(dp),
dimension(:, :),
pointer,
contiguous :: dbcomp => null()
228 real(dp),
dimension(:, :),
pointer,
contiguous :: dbtcomp => null()
231 real(dp),
dimension(:),
pointer,
contiguous :: dbal => null()
232 real(dp),
dimension(:),
pointer,
contiguous :: dbad => null()
233 real(dp),
dimension(:),
pointer,
contiguous :: dbau => null()
234 real(dp),
dimension(:),
pointer,
contiguous :: dbrhs => null()
235 real(dp),
dimension(:),
pointer,
contiguous :: dbdh => null()
236 real(dp),
dimension(:),
pointer,
contiguous :: dbaw => null()
239 integer(I4B),
dimension(:),
pointer,
contiguous :: nodelistsig0 => null()
240 real(dp),
dimension(:),
pointer,
contiguous :: sig0 => null()
243 integer(I4B),
pointer :: inobspkg => null()
258 procedure :: define_listlabel
311 procedure :: csub_save_model_flows
318 procedure :: csub_ot_dv
340 procedure,
private :: csub_allocate_scalars
346 procedure,
private :: csub_allocate_arrays
349 procedure,
private :: csub_source_griddata
356 procedure,
private :: csub_source_packagedata
359 procedure,
private :: csub_print_packagedata
374 procedure,
private :: csub_calc_delay_flow
384 procedure,
private :: csub_cg_calc_stress
393 procedure,
private :: csub_cg_chk_stress
402 procedure,
private :: csub_set_initial_state
410 procedure,
private :: csub_cg_update
415 procedure,
private :: csub_cg_calc_comp
420 procedure,
private :: csub_cg_calc_sske
426 procedure,
private :: csub_cg_fc
433 procedure,
private :: csub_cg_fn
440 procedure,
private :: csub_cg_wcomp_fc
447 procedure,
private :: csub_cg_wcomp_fn
455 procedure,
private :: csub_interbed_fc
461 procedure,
private :: csub_interbed_fn
470 procedure,
private :: csub_nodelay_update
478 procedure,
private :: csub_nodelay_fc
485 procedure,
private :: csub_nodelay_wcomp_fc
492 procedure,
private :: csub_nodelay_wcomp_fn
498 procedure,
private :: csub_nodelay_calc_comp
505 procedure,
private :: csub_delay_calc_sat
513 procedure,
private :: csub_delay_calc_sat_derivative
524 procedure,
private :: csub_delay_init_zcell
531 procedure,
private :: csub_delay_calc_stress
534 procedure,
private :: csub_delay_calc_ssksske
539 procedure,
private :: csub_delay_calc_comp
545 procedure,
private :: csub_delay_update
550 procedure,
private :: csub_delay_calc_dstor
556 procedure,
private :: csub_delay_calc_wcomp
563 procedure,
private :: csub_delay_fc
571 procedure,
private :: csub_delay_sln
579 procedure,
private :: csub_delay_assemble
586 procedure,
private :: csub_delay_assemble_fc
593 procedure,
private :: csub_delay_assemble_fn
601 procedure,
private :: csub_delay_head_check
610 procedure,
private :: csub_initialize_tables
619 procedure,
public :: csub_obs_supported
625 procedure,
public :: csub_df_obs
631 procedure,
private :: csub_rp_obs
637 procedure,
public :: csub_bd_obs
644 module subroutine csub_allocate_scalars(this)
645 class(gwfcsubtype),
intent(inout) :: this
646 end subroutine csub_allocate_scalars
648 module subroutine csub_allocate_arrays(this)
649 class(gwfcsubtype),
intent(inout) :: this
650 end subroutine csub_allocate_arrays
652 module subroutine csub_da(this)
653 class(gwfcsubtype) :: this
654 end subroutine csub_da
659 class(gwfcsubtype),
intent(inout) :: this
662 module subroutine
log_options(this, warn_estress_lag)
663 class(gwfcsubtype),
intent(inout) :: this
664 logical(LGP),
intent(in) :: warn_estress_lag
667 module subroutine csub_source_dimensions(this)
668 class(gwfcsubtype),
intent(inout) :: this
669 end subroutine csub_source_dimensions
671 module subroutine csub_source_griddata(this)
672 class(gwfcsubtype),
intent(inout) :: this
673 end subroutine csub_source_griddata
675 module subroutine csub_source_packagedata(this)
676 class(gwfcsubtype),
intent(inout) :: this
677 end subroutine csub_source_packagedata
679 module subroutine csub_print_packagedata(this)
680 class(gwfcsubtype) :: this
681 end subroutine csub_print_packagedata
683 module subroutine csub_initialize_tables(this)
684 class(gwfcsubtype) :: this
685 end subroutine csub_initialize_tables
687 module subroutine define_listlabel(this)
688 class(gwfcsubtype),
intent(inout) :: this
689 end subroutine define_listlabel
693 module subroutine csub_cg_calc_stress(this, nodes, hnew)
694 class(gwfcsubtype) :: this
695 integer(I4B),
intent(in) :: nodes
696 real(dp),
dimension(nodes),
intent(in) :: hnew
697 end subroutine csub_cg_calc_stress
699 module subroutine csub_set_initial_state(this, nodes, hnew)
700 class(gwfcsubtype) :: this
701 integer(I4B),
intent(in) :: nodes
702 real(dp),
dimension(nodes),
intent(in) :: hnew
703 end subroutine csub_set_initial_state
707 module subroutine csub_cg_fc(this, node, tled,
area, hcell, hcellold, hcof, &
709 class(gwfcsubtype) :: this
710 integer(I4B),
intent(in) :: node
711 real(dp),
intent(in) :: tled
712 real(dp),
intent(in) ::
area
713 real(dp),
intent(in) :: hcell
714 real(dp),
intent(in) :: hcellold
715 real(dp),
intent(inout) :: hcof
716 real(dp),
intent(inout) :: rhs
717 end subroutine csub_cg_fc
719 module subroutine csub_cg_fn(this, node, tled,
area, hcell, hcof, rhs)
720 class(gwfcsubtype) :: this
721 integer(I4B),
intent(in) :: node
722 real(dp),
intent(in) :: tled
723 real(dp),
intent(in) ::
area
724 real(dp),
intent(in) :: hcell
725 real(dp),
intent(inout) :: hcof
726 real(dp),
intent(inout) :: rhs
727 end subroutine csub_cg_fn
729 module subroutine csub_cg_calc_sske(this, n, sske, hcell)
730 class(gwfcsubtype),
intent(inout) :: this
731 integer(I4B),
intent(in) :: n
732 real(dp),
intent(inout) :: sske
733 real(dp),
intent(in) :: hcell
734 end subroutine csub_cg_calc_sske
736 module subroutine csub_cg_calc_comp(this, node, hcell, hcellold, comp)
737 class(gwfcsubtype) :: this
738 integer(I4B),
intent(in) :: node
739 real(dp),
intent(in) :: hcell
740 real(dp),
intent(in) :: hcellold
741 real(dp),
intent(inout) :: comp
742 end subroutine csub_cg_calc_comp
744 module subroutine csub_cg_update(this, node)
745 class(gwfcsubtype),
intent(inout) :: this
746 integer(I4B),
intent(in) :: node
747 end subroutine csub_cg_update
749 module subroutine csub_cg_wcomp_fc(this, node, tled,
area, hcell, hcellold, &
751 class(gwfcsubtype),
intent(inout) :: this
752 integer(I4B),
intent(in) :: node
753 real(dp),
intent(in) :: tled
754 real(dp),
intent(in) ::
area
755 real(dp),
intent(in) :: hcell
756 real(dp),
intent(in) :: hcellold
757 real(dp),
intent(inout) :: hcof
758 real(dp),
intent(inout) :: rhs
759 end subroutine csub_cg_wcomp_fc
761 module subroutine csub_cg_wcomp_fn(this, node, tled,
area, hcell, hcellold, &
763 class(gwfcsubtype),
intent(inout) :: this
764 integer(I4B),
intent(in) :: node
765 real(dp),
intent(in) :: tled
766 real(dp),
intent(in) ::
area
767 real(dp),
intent(in) :: hcell
768 real(dp),
intent(in) :: hcellold
769 real(dp),
intent(inout) :: hcof
770 real(dp),
intent(inout) :: rhs
771 end subroutine csub_cg_wcomp_fn
775 module subroutine csub_nodelay_update(this, i)
776 class(gwfcsubtype),
intent(inout) :: this
777 integer(I4B),
intent(in) :: i
778 end subroutine csub_nodelay_update
780 module subroutine csub_nodelay_fc(this, ib, hcell, hcellold, rho1, rho2, &
782 class(gwfcsubtype) :: this
783 integer(I4B),
intent(in) :: ib
784 real(dp),
intent(in) :: hcell
785 real(dp),
intent(in) :: hcellold
786 real(dp),
intent(inout) :: rho1
787 real(dp),
intent(inout) :: rho2
788 real(dp),
intent(inout) :: rhs
789 real(dp),
intent(in),
optional :: argtled
790 end subroutine csub_nodelay_fc
792 module subroutine csub_nodelay_calc_comp(this, ib, hcell, hcellold, comp, &
794 class(gwfcsubtype) :: this
795 integer(I4B),
intent(in) :: ib
796 real(dp),
intent(in) :: hcell
797 real(dp),
intent(in) :: hcellold
798 real(dp),
intent(inout) :: comp
799 real(dp),
intent(inout) :: rho1
800 real(dp),
intent(inout) :: rho2
801 end subroutine csub_nodelay_calc_comp
803 module subroutine csub_interbed_fc(this, ib, node,
area, hcell, hcellold, &
805 class(gwfcsubtype) :: this
806 integer(I4B),
intent(in) :: ib
807 integer(I4B),
intent(in) :: node
808 real(dp),
intent(in) ::
area
809 real(dp),
intent(in) :: hcell
810 real(dp),
intent(in) :: hcellold
811 real(dp),
intent(inout) :: hcof
812 real(dp),
intent(inout) :: rhs
813 end subroutine csub_interbed_fc
815 module subroutine csub_interbed_fn(this, ib, node,
area, hcell, hcellold, &
817 class(gwfcsubtype) :: this
818 integer(I4B),
intent(in) :: ib
819 integer(I4B),
intent(in) :: node
820 real(dp),
intent(in) ::
area
821 real(dp),
intent(in) :: hcell
822 real(dp),
intent(in) :: hcellold
823 real(dp),
intent(inout) :: hcof
824 real(dp),
intent(inout) :: rhs
825 end subroutine csub_interbed_fn
827 module subroutine csub_nodelay_wcomp_fc(this, ib, node, tled,
area, hcell, &
829 class(gwfcsubtype),
intent(inout) :: this
830 integer(I4B),
intent(in) :: ib
831 integer(I4B),
intent(in) :: node
832 real(dp),
intent(in) :: tled
833 real(dp),
intent(in) ::
area
834 real(dp),
intent(in) :: hcell
835 real(dp),
intent(in) :: hcellold
836 real(dp),
intent(inout) :: hcof
837 real(dp),
intent(inout) :: rhs
838 end subroutine csub_nodelay_wcomp_fc
840 module subroutine csub_nodelay_wcomp_fn(this, ib, node, tled,
area, hcell, &
842 class(gwfcsubtype),
intent(inout) :: this
843 integer(I4B),
intent(in) :: ib
844 integer(I4B),
intent(in) :: node
845 real(dp),
intent(in) :: tled
846 real(dp),
intent(in) ::
area
847 real(dp),
intent(in) :: hcell
848 real(dp),
intent(in) :: hcellold
849 real(dp),
intent(inout) :: hcof
850 real(dp),
intent(inout) :: rhs
851 end subroutine csub_nodelay_wcomp_fn
855 module subroutine csub_delay_head_check(this, ib)
856 class(gwfcsubtype),
intent(inout) :: this
857 integer(I4B),
intent(in) :: ib
858 end subroutine csub_delay_head_check
860 module subroutine csub_delay_sln(this, ib, hcell, update)
861 class(gwfcsubtype),
intent(inout) :: this
862 integer(I4B),
intent(in) :: ib
863 real(dp),
intent(in) :: hcell
864 logical(LGP),
intent(in),
optional :: update
865 end subroutine csub_delay_sln
867 module subroutine csub_delay_init_zcell(this, ib)
868 class(gwfcsubtype),
intent(inout) :: this
869 integer(I4B),
intent(in) :: ib
870 end subroutine csub_delay_init_zcell
872 module subroutine csub_delay_calc_stress(this, ib, hcell)
873 class(gwfcsubtype),
intent(inout) :: this
874 integer(I4B),
intent(in) :: ib
875 real(dp),
intent(in) :: hcell
876 end subroutine csub_delay_calc_stress
878 module subroutine csub_delay_calc_ssksske(this, ib, n, hcell, ssk, sske, &
880 class(gwfcsubtype),
intent(inout) :: this
881 integer(I4B),
intent(in) :: ib
882 integer(I4B),
intent(in) :: n
883 real(dp),
intent(in) :: hcell
884 real(dp),
intent(inout) :: ssk
885 real(dp),
intent(inout) :: sske
886 real(dp),
intent(out),
optional :: dsskde
887 real(dp),
intent(out),
optional :: wfac
888 end subroutine csub_delay_calc_ssksske
890 module subroutine csub_delay_assemble(this, ib, hcell)
891 class(gwfcsubtype),
intent(inout) :: this
892 integer(I4B),
intent(in) :: ib
893 real(dp),
intent(in) :: hcell
894 end subroutine csub_delay_assemble
896 module subroutine csub_delay_assemble_fc(this, ib, n, hcell, aii, au, al, r)
897 class(gwfcsubtype),
intent(inout) :: this
898 integer(I4B),
intent(in) :: ib
899 integer(I4B),
intent(in) :: n
900 real(dp),
intent(in) :: hcell
901 real(dp),
intent(inout) :: aii
902 real(dp),
intent(inout) :: au
903 real(dp),
intent(inout) :: al
904 real(dp),
intent(inout) :: r
905 end subroutine csub_delay_assemble_fc
907 module subroutine csub_delay_assemble_fn(this, ib, n, hcell, aii, au, al, r)
908 class(gwfcsubtype),
intent(inout) :: this
909 integer(I4B),
intent(in) :: ib
910 integer(I4B),
intent(in) :: n
911 real(dp),
intent(in) :: hcell
912 real(dp),
intent(inout) :: aii
913 real(dp),
intent(inout) :: au
914 real(dp),
intent(inout) :: al
915 real(dp),
intent(inout) :: r
916 end subroutine csub_delay_assemble_fn
918 module subroutine csub_delay_calc_sat(this, node, idelay, n, hcell, &
919 hcellold, snnew, snold)
920 class(gwfcsubtype),
intent(inout) :: this
921 integer(I4B),
intent(in) :: node
922 integer(I4B),
intent(in) :: idelay
923 integer(I4B),
intent(in) :: n
924 real(dp),
intent(in) :: hcell
925 real(dp),
intent(in) :: hcellold
926 real(dp),
intent(inout) :: snnew
927 real(dp),
intent(inout) :: snold
928 end subroutine csub_delay_calc_sat
930 module function csub_delay_calc_sat_derivative(this, node, idelay, n, &
931 hcell) result(satderv)
932 class(gwfcsubtype),
intent(inout) :: this
933 integer(I4B),
intent(in) :: node
934 integer(I4B),
intent(in) :: idelay
935 integer(I4B),
intent(in) :: n
936 real(dp),
intent(in) :: hcell
938 end function csub_delay_calc_sat_derivative
940 module subroutine csub_delay_calc_dstor(this, ib, hcell, stoe, stoi)
941 class(gwfcsubtype),
intent(inout) :: this
942 integer(I4B),
intent(in) :: ib
943 real(dp),
intent(in) :: hcell
944 real(dp),
intent(inout) :: stoe
945 real(dp),
intent(inout) :: stoi
946 end subroutine csub_delay_calc_dstor
948 module subroutine csub_delay_calc_wcomp(this, ib, dwc)
949 class(gwfcsubtype),
intent(inout) :: this
950 integer(I4B),
intent(in) :: ib
951 real(dp),
intent(inout) :: dwc
952 end subroutine csub_delay_calc_wcomp
954 module subroutine csub_delay_calc_comp(this, ib, hcell, hcellold, comp, &
956 class(gwfcsubtype),
intent(inout) :: this
957 integer(I4B),
intent(in) :: ib
958 real(dp),
intent(in) :: hcell
959 real(dp),
intent(in) :: hcellold
960 real(dp),
intent(inout) :: comp
961 real(dp),
intent(inout) :: compi
962 real(dp),
intent(inout) :: compe
963 end subroutine csub_delay_calc_comp
965 module subroutine csub_delay_update(this, ib)
966 class(gwfcsubtype),
intent(inout) :: this
967 integer(I4B),
intent(in) :: ib
968 end subroutine csub_delay_update
970 module subroutine csub_delay_fc(this, ib, hcof, rhs)
971 class(gwfcsubtype),
intent(inout) :: this
972 integer(I4B),
intent(in) :: ib
973 real(dp),
intent(inout) :: hcof
974 real(dp),
intent(inout) :: rhs
975 end subroutine csub_delay_fc
977 module function csub_calc_delay_flow(this, ib, n, hcell) result(q)
978 class(gwfcsubtype),
intent(inout) :: this
979 integer(I4B),
intent(in) :: ib
980 integer(I4B),
intent(in) :: n
981 real(dp),
intent(in) :: hcell
983 end function csub_calc_delay_flow
987 module subroutine csub_cc(this, innertot, kiter, iend, icnvgmod, nodes, &
988 hnew, hold, cpak, ipak, dpak)
989 class(gwfcsubtype) :: this
990 integer(I4B),
intent(in) :: innertot
991 integer(I4B),
intent(in) :: kiter
992 integer(I4B),
intent(in) :: iend
993 integer(I4B),
intent(in) :: icnvgmod
994 integer(I4B),
intent(in) :: nodes
995 real(dp),
dimension(nodes),
intent(in) :: hnew
996 real(dp),
dimension(nodes),
intent(in) :: hold
997 character(len=LENPAKLOC),
intent(inout) :: cpak
998 integer(I4B),
intent(inout) :: ipak
999 real(dp),
intent(inout) :: dpak
1000 end subroutine csub_cc
1002 module subroutine csub_cq(this, nodes, hnew, hold, isuppress_output, flowja)
1003 class(gwfcsubtype) :: this
1004 integer(I4B),
intent(in) :: nodes
1005 real(dp),
intent(in),
dimension(nodes) :: hnew
1006 real(dp),
intent(in),
dimension(nodes) :: hold
1007 integer(I4B),
intent(in) :: isuppress_output
1008 real(dp),
dimension(:),
contiguous,
intent(inout) :: flowja
1009 end subroutine csub_cq
1011 module subroutine csub_bd(this, isuppress_output, model_budget)
1012 class(gwfcsubtype) :: this
1013 integer(I4B),
intent(in) :: isuppress_output
1014 type(
budgettype),
intent(inout) :: model_budget
1015 end subroutine csub_bd
1017 module subroutine csub_save_model_flows(this, icbcfl, icbcun)
1018 class(gwfcsubtype) :: this
1019 integer(I4B),
intent(in) :: icbcfl
1020 integer(I4B),
intent(in) :: icbcun
1021 end subroutine csub_save_model_flows
1025 module subroutine csub_fp(this)
1026 class(gwfcsubtype) :: this
1027 end subroutine csub_fp
1029 module subroutine csub_ot_dv(this, idvfl, idvprint)
1030 class(gwfcsubtype) :: this
1031 integer(I4B),
intent(in) :: idvfl
1032 integer(I4B),
intent(in) :: idvprint
1033 end subroutine csub_ot_dv
1035 module subroutine csub_cg_chk_stress(this)
1036 class(gwfcsubtype) :: this
1037 end subroutine csub_cg_chk_stress
1041 module logical
function csub_obs_supported(this)
1042 class(gwfcsubtype) :: this
1043 end function csub_obs_supported
1045 module subroutine csub_df_obs(this)
1046 class(gwfcsubtype) :: this
1047 end subroutine csub_df_obs
1049 module subroutine csub_bd_obs(this)
1050 class(gwfcsubtype),
intent(inout) :: this
1051 end subroutine csub_bd_obs
1053 module subroutine csub_rp_obs(this)
1054 class(gwfcsubtype),
intent(inout) :: this
1055 end subroutine csub_rp_obs
1057 module subroutine csub_process_obsid(obsrv,
dis, inunitobs,
iout)
1060 integer(I4B),
intent(in) :: inunitobs
1061 integer(I4B),
intent(in) ::
iout
1062 end subroutine csub_process_obsid
1073 subroutine csub_cr(csubobj, name_model, mempath, istounit, stoPckName, inunit, &
1076 type(gwfcsubtype),
pointer :: csubobj
1077 character(len=*),
intent(in) :: name_model
1078 character(len=*),
intent(in) :: mempath
1079 integer(I4B),
intent(in) :: inunit
1080 integer(I4B),
intent(in) :: istounit
1081 character(len=*),
intent(in) :: stopckname
1082 integer(I4B),
intent(in) ::
iout
1089 call csubobj%set_names(1, name_model,
'CSUB',
'CSUB', mempath)
1092 call csubobj%csub_allocate_scalars()
1098 csubobj%istounit = istounit
1099 csubobj%inunit = inunit
1101 end subroutine csub_cr
1108 subroutine csub_ar(this, dis, ibound)
1114 class(gwfcsubtype),
intent(inout) :: this
1116 integer(I4B),
dimension(:),
pointer,
contiguous :: ibound
1118 character(len=20) :: cellid
1119 integer(I4B) :: idelay
1121 integer(I4B) :: node
1123 integer(I4B) :: istoerr
1127 real(DP) :: cg_ske_cr
1131 real(DP) :: cell_thickness
1132 real(DP) :: overshoot
1136 character(len=*),
parameter :: fmtcsub = &
1137 "(1x,/1x,'CSUB -- COMPACTION PACKAGE, VERSION 1.15, 7/27/2026', &
1138 &' INPUT READ FROM MEMPATH: ', A, /)"
1141 write (this%iout, fmtcsub) this%input_mempath
1145 this%ibound => ibound
1148 call obs_cr(this%obs, this%inobspkg)
1151 call this%source_options()
1154 call this%source_dimensions()
1157 call this%obs%obs_ar()
1165 call this%csub_allocate_arrays()
1168 call this%csub_source_griddata()
1174 do node = 1, this%dis%nodes
1175 call this%dis%noder_to_string(node, cellid)
1176 cg_ske_cr = this%cg_ske_cr(node)
1177 theta = this%cg_thetaini(node)
1180 if (cg_ske_cr <
dzero)
then
1181 write (
errmsg,
'(a,g0,a,1x,a,1x,a,a)') &
1182 'Coarse-grained material CG_SKE_CR (', cg_ske_cr,
') is less', &
1183 'than zero in cell', trim(adjustl(cellid)),
'.'
1187 if (this%stoss(node) /=
dzero)
then
1192 if (theta >
done .or. theta <
dzero)
then
1193 write (
errmsg,
'(a,g0,a,1x,a,1x,a,a)') &
1194 'Coarse-grained material THETA (', theta,
') is less', &
1195 'than zero or greater than 1 in cell', trim(adjustl(cellid)),
'.'
1201 if (istoerr /= 0)
then
1202 write (
errmsg,
'(a,3(1x,a))') &
1203 'Specific storage values in the storage (STO) package must', &
1204 'be zero in all active cells when using the', &
1205 trim(adjustl(this%packName)), &
1211 if (this%ninterbeds > 0)
then
1212 call this%csub_source_packagedata()
1216 call this%csub_initialize_tables()
1219 do node = 1, this%dis%nodes
1220 top = this%dis%top(node)
1221 bot = this%dis%bot(node)
1222 this%cg_thickini(node) = top - bot
1223 this%cell_thick(node) = top - bot
1227 do ib = 1, this%ninterbeds
1228 node = this%nodelist(ib)
1229 idelay = this%idelay(ib)
1230 if (idelay == 0)
then
1231 v = this%thickini(ib)
1233 v = this%rnb(ib) * this%thickini(ib)
1235 this%cg_thickini(node) = this%cg_thickini(node) - v
1243 do node = 1, this%dis%nodes
1244 thick = this%cg_thickini(node)
1245 if (thick >=
dzero) cycle
1246 cell_thickness = this%cell_thick(node)
1248 if (overshoot <=
dem5 * cell_thickness)
then
1252 f = cell_thickness / (cell_thickness - thick)
1253 do ib = 1, this%ninterbeds
1254 if (node /= this%nodelist(ib)) cycle
1255 this%thickini(ib) = this%thickini(ib) * f
1256 if (this%iupdatematprop /= 0)
then
1257 this%thick(ib) = this%thick(ib) * f
1259 idelay = this%idelay(ib)
1260 if (idelay /= 0)
then
1261 rval = this%thickini(ib) / real(this%ndelaycells, dp)
1262 do n = 1, this%ndelaycells
1263 this%dbdzini(n, idelay) = rval
1264 this%dbdz(n, idelay) = rval
1265 this%dbdz0(n, idelay) = rval
1268 call this%csub_delay_init_zcell(ib)
1271 this%cg_thickini(node) =
dzero
1273 call this%dis%noder_to_string(node, cellid)
1274 write (
errmsg,
'(a,g0,a,1x,a,a)') &
1275 'Coarse grained material thickness is less than zero (', &
1276 thick,
') in cell', trim(adjustl(cellid)),
'. Interbed thicknesses:'
1279 do ib = 1, this%ninterbeds
1280 if (node /= this%nodelist(ib))
then
1283 idelay = this%idelay(ib)
1284 v = this%thickini(ib)
1285 if (idelay /= 0)
then
1286 v = v * this%rnb(ib)
1289 write (
errmsg,
'(a,1x,a,i0,a,g0)') &
1291 'icbno(', ib,
')=', v
1293 write (
errmsg,
'(a,a,g0,a)') &
1295 '. Total interbed thickness=', vtot,
'.'
1308 if (this%iupdatematprop /= 0)
then
1309 do node = 1, this%dis%nodes
1310 this%cg_thick(node) = this%cg_thickini(node)
1311 this%cg_theta(node) = this%cg_thetaini(node)
1314 end subroutine csub_ar
1323 subroutine csub_rp(this)
1330 class(gwfcsubtype),
intent(inout) :: this
1332 integer(I4B),
dimension(:, :),
pointer,
contiguous :: cellids
1333 integer(I4B),
dimension(:),
pointer,
contiguous :: cellid
1334 integer(I4B),
pointer :: iper
1335 integer(I4B) :: n, nodeu, noder
1336 character(len=LINELENGTH) :: title, text
1337 character(len=20) :: cellstr
1338 logical(LGP) :: found
1340 character(len=*),
parameter :: fmtlsp = &
1341 &
"(1X,/1X,'REUSING ',a,'S FROM LAST STRESS PERIOD')"
1343 call mem_setptr(iper,
'IPER', this%input_mempath)
1344 if (iper /=
kper)
then
1345 write (this%iout, fmtlsp) trim(this%filtyp)
1346 call this%csub_rp_obs()
1350 call mem_setptr(cellids,
'CELLID', this%input_mempath)
1351 call mem_set_value(this%nbound,
'NBOUND', this%input_mempath, &
1352 found, release=.false.)
1355 if (this%iprpak /= 0)
then
1357 title =
'CSUB'//
' PACKAGE ('// &
1358 trim(adjustl(this%packName))//
') DATA FOR PERIOD'
1359 write (title,
'(a,1x,i6)') trim(adjustl(title)),
kper
1360 call table_cr(this%inputtab, this%packName, title)
1361 call this%inputtab%table_df(1, 2, this%iout,
finalize=.false.)
1363 call this%inputtab%initialize_column(text, 20)
1365 call this%inputtab%initialize_column(text, 15, alignment=
tableft)
1369 do n = 1, this%nbound
1372 cellid => cellids(:, n)
1375 if (this%dis%ndim == 1)
then
1377 elseif (this%dis%ndim == 2)
then
1378 nodeu =
get_node(cellid(1), 1, cellid(2), &
1379 this%dis%mshape(1), 1, &
1382 nodeu =
get_node(cellid(1), cellid(2), cellid(3), &
1383 this%dis%mshape(1), &
1384 this%dis%mshape(2), &
1389 noder = this%dis%get_nodenumber(nodeu, 1)
1390 if (noder <= 0)
then
1394 this%nodelistsig0(n) = noder
1397 if (this%iprpak /= 0)
then
1398 call this%dis%noder_to_string(noder, cellstr)
1399 call this%inputtab%add_term(cellstr)
1400 call this%inputtab%add_term(this%sig0(n))
1410 if (this%iprpak /= 0)
then
1411 call this%inputtab%finalize_table()
1415 call this%csub_rp_obs()
1416 end subroutine csub_rp
1426 subroutine csub_ad(this, nodes, hnew)
1430 class(gwfcsubtype) :: this
1431 integer(I4B),
intent(in) :: nodes
1432 real(DP),
dimension(nodes),
intent(in) :: hnew
1436 integer(I4B) :: idelay
1437 integer(I4B) :: node
1444 if (this%ninterbeds > 0)
then
1446 if (this%gwfiss /= 0)
then
1447 write (
errmsg,
'(a,i0,a,1x,a,1x,a,1x,i0,1x,a)') &
1448 'Only the first and last (',
nper,
')', &
1449 'stress period can be steady if interbeds are simulated.', &
1450 'Stress period',
kper,
'has been defined to be steady state.'
1457 if (this%initialized == 0)
then
1458 if (this%gwfiss == 0)
then
1459 call this%csub_set_initial_state(nodes, hnew)
1467 this%cg_comp(node) = dzero
1468 this%cg_es0(node) = this%cg_es(node)
1469 if (this%iupdatematprop /= 0)
then
1470 this%cg_thick0(node) = this%cg_thick(node)
1471 this%cg_theta0(node) = this%cg_theta(node)
1476 do ib = 1, this%ninterbeds
1477 idelay = this%idelay(ib)
1480 this%comp(ib) = dzero
1481 node = this%nodelist(ib)
1482 if (this%initialized /= 0)
then
1483 es = this%cg_es(node)
1489 if (this%iupdatematprop /= 0)
then
1490 this%thick0(ib) = this%thick(ib)
1491 this%theta0(ib) = this%theta(ib)
1495 if (idelay /= 0)
then
1499 if (this%gwfiss0 /= 0)
then
1500 node = this%nodelist(ib)
1502 do n = 1, this%ndelaycells
1503 this%dbh(n, idelay) = h
1509 do n = 1, this%ndelaycells
1511 if (this%initialized /= 0)
then
1512 if (this%dbes(n, idelay) > this%dbpcs(n, idelay))
then
1513 this%dbpcs(n, idelay) = this%dbes(n, idelay)
1516 this%dbh0(n, idelay) = this%dbh(n, idelay)
1517 this%dbes0(n, idelay) = this%dbes(n, idelay)
1518 if (this%iupdatematprop /= 0)
then
1519 this%dbdz0(n, idelay) = this%dbdz(n, idelay)
1520 this%dbtheta0(n, idelay) = this%dbtheta(n, idelay)
1527 this%gwfiss0 = this%gwfiss
1532 call this%obs%obs_ad()
1533 end subroutine csub_ad
1540 subroutine csub_fc(this, kiter, hold, hnew, matrix_sln, idxglo, rhs)
1544 class(gwfcsubtype) :: this
1545 integer(I4B),
intent(in) :: kiter
1546 real(DP),
intent(in),
dimension(:) :: hold
1547 real(DP),
intent(in),
dimension(:) :: hnew
1549 integer(I4B),
intent(in),
dimension(:) :: idxglo
1550 real(DP),
intent(inout),
dimension(:) :: rhs
1553 integer(I4B) :: node
1554 integer(I4B) :: idiag
1555 integer(I4B) :: idelay
1563 call this%csub_cg_calc_stress(this%dis%nodes, hnew)
1566 if (this%gwfiss == 0)
then
1572 do node = 1, this%dis%nodes
1573 idiag = this%dis%con%ia(node)
1574 area = this%dis%get_area(node)
1577 if (this%ibound(node) < 1) cycle
1580 if (this%iupdatematprop /= 0)
then
1581 if (this%ieslag == 0)
then
1584 call this%csub_cg_calc_comp(node, hnew(node), hold(node), comp)
1585 this%cg_comp(node) = comp
1588 call this%csub_cg_update(node)
1593 call this%csub_cg_fc(node, tled, area, hnew(node), hold(node), &
1597 call matrix_sln%add_value_pos(idxglo(idiag), hcof)
1598 rhs(node) = rhs(node) + rhsterm
1602 if (this%brg /= dzero)
then
1603 call this%csub_cg_wcomp_fc(node, tled, area, hnew(node), hold(node), &
1608 call matrix_sln%add_value_pos(idxglo(idiag), hcof)
1609 rhs(node) = rhs(node) + rhsterm
1614 if (this%ninterbeds /= 0)
then
1618 do ib = 1, this%ninterbeds
1619 node = this%nodelist(ib)
1620 idelay = this%idelay(ib)
1621 idiag = this%dis%con%ia(node)
1622 area = this%dis%get_area(node)
1623 call this%csub_interbed_fc(ib, node, area, hnew(node), hold(node), &
1625 call matrix_sln%add_value_pos(idxglo(idiag), hcof)
1626 rhs(node) = rhs(node) + rhsterm
1629 if (.not.
is_close(this%brg, dzero) .and. idelay == 0)
then
1630 call this%csub_nodelay_wcomp_fc(ib, node, tled, area, &
1631 hnew(node), hold(node), &
1635 call matrix_sln%add_value_pos(idxglo(idiag), hcof)
1636 rhs(node) = rhs(node) + rhsterm
1646 end subroutine csub_fc
1653 subroutine csub_fn(this, kiter, hold, hnew, matrix_sln, idxglo, rhs)
1657 class(gwfcsubtype) :: this
1658 integer(I4B),
intent(in) :: kiter
1659 real(DP),
intent(in),
dimension(:) :: hold
1660 real(DP),
intent(in),
dimension(:) :: hnew
1662 integer(I4B),
intent(in),
dimension(:) :: idxglo
1663 real(DP),
intent(inout),
dimension(:) :: rhs
1665 integer(I4B) :: idelay
1666 integer(I4B) :: node
1667 integer(I4B) :: idiag
1675 if (this%gwfiss == 0)
then
1679 do node = 1, this%dis%nodes
1680 idiag = this%dis%con%ia(node)
1681 area = this%dis%get_area(node)
1684 if (this%ibound(node) < 1) cycle
1687 call this%csub_cg_fn(node, tled, area, &
1688 hnew(node), hcof, rhsterm)
1692 call matrix_sln%add_value_pos(idxglo(idiag), hcof)
1693 rhs(node) = rhs(node) + rhsterm
1697 if (this%brg /= dzero)
then
1698 call this%csub_cg_wcomp_fn(node, tled, area, hnew(node), hold(node), &
1703 call matrix_sln%add_value_pos(idxglo(idiag), hcof)
1704 rhs(node) = rhs(node) + rhsterm
1709 if (this%ninterbeds /= 0)
then
1713 do ib = 1, this%ninterbeds
1714 idelay = this%idelay(ib)
1715 node = this%nodelist(ib)
1718 if (this%ibound(node) < 1) cycle
1721 idiag = this%dis%con%ia(node)
1722 area = this%dis%get_area(node)
1723 call this%csub_interbed_fn(ib, node, area, hnew(node), hold(node), &
1727 call matrix_sln%add_value_pos(idxglo(idiag), hcof)
1728 rhs(node) = rhs(node) + rhsterm
1731 if (this%brg /= dzero .and. idelay == 0)
then
1732 call this%csub_nodelay_wcomp_fn(ib, node, tled, area, &
1733 hnew(node), hold(node), &
1737 call matrix_sln%add_value_pos(idxglo(idiag), hcof)
1738 rhs(node) = rhs(node) + rhsterm
1743 end subroutine csub_fn
1751 function csub_calc_interbed_thickness(this, ib)
result(thick)
1753 class(gwfcsubtype),
intent(inout) :: this
1754 integer(I4B),
intent(in) :: ib
1756 integer(I4B) :: idelay
1760 idelay = this%idelay(ib)
1761 thick = this%thick(ib)
1762 if (idelay /= 0)
then
1763 thick = thick * this%rnb(ib)
1765 end function csub_calc_interbed_thickness
1777 function csub_calc_znode(this, top, bottom, zbar)
result(znode)
1779 class(gwfcsubtype),
intent(inout) :: this
1780 real(dp),
intent(in) :: top
1781 real(dp),
intent(in) :: bottom
1782 real(dp),
intent(in) :: zbar
1788 if (zbar > top)
then
1793 znode = dhalf * (v + bottom)
1794 end function csub_calc_znode
1801 subroutine csub_calc_sat(this, node, hcell, hcellold, snnew, snold)
1803 class(gwfcsubtype),
intent(inout) :: this
1804 integer(I4B),
intent(in) :: node
1805 real(DP),
intent(in) :: hcell
1806 real(DP),
intent(in) :: hcellold
1807 real(DP),
intent(inout) :: snnew
1808 real(DP),
intent(inout) :: snold
1814 if (this%stoiconv(node) /= 0)
then
1815 top = this%dis%top(node)
1816 bot = this%dis%bot(node)
1823 if (this%ieslag /= 0)
then
1826 end subroutine csub_calc_sat
1835 function csub_calc_sat_derivative(this, node, hcell)
result(satderv)
1837 class(gwfcsubtype),
intent(inout) :: this
1838 integer(I4B),
intent(in) :: node
1839 real(dp),
intent(in) :: hcell
1845 if (this%stoiconv(node) /= 0)
then
1846 top = this%dis%top(node)
1847 bot = this%dis%bot(node)
1852 end function csub_calc_sat_derivative
1860 subroutine csub_calc_sfacts(this, node, bot, znode, theta, es, es0, geo, fact)
1862 class(gwfcsubtype),
intent(inout) :: this
1863 integer(I4B),
intent(in) :: node
1864 real(DP),
intent(in) :: bot
1865 real(DP),
intent(in) :: znode
1866 real(DP),
intent(in) :: theta
1867 real(DP),
intent(in) :: es
1868 real(DP),
intent(in) :: es0
1869 real(DP),
intent(in) :: geo
1870 real(DP),
intent(inout) :: fact
1878 if (this%ieslag /= 0)
then
1890 if (this%istrict_stress == 0 .and. geo > dzero)
then
1891 esfloor = stressfloor * geo
1897 end subroutine csub_calc_sfacts
subroutine source_options(this, iout)
Source options.
subroutine source_dimensions(this, iout)
Source dimension from input context.
This module contains the BudgetModule.
Relations for compacting porous materials.
pure real(dp) function, public wcomp_newton_term(wc, wc0, h, h0, satderv, lagged)
Calculate the Newton-Raphson term for water compressibility.
pure real(dp) function, public porosity_to_void_ratio(theta)
Calculate the void ratio from the porosity.
pure subroutine, public compact_layer(comp, thick, theta)
Update the thickness and porosity of a layer after compaction.
pure real(dp) function, public storage_newton_term(rho, rho0, sn, satderv, hbarderv, es, es0, pcs, lagged)
Calculate the Newton-Raphson term for skeletal storage.
pure real(dp) function, public adjust_eff_stress(es0, z0, z, sgs)
Calculate the effective stress at elevation z from its value at z0.
pure real(dp) function, public storage_factor(es, theta)
Calculate the skeletal storage factor, 1 / ((1 + void ratio) es).
This module contains simulation constants.
integer(i4b), parameter linelength
maximum length of a standard line
@ tabcenter
centered table column
@ tabright
right justified table column
@ tableft
left justified table column
real(dp), parameter dem20
real constant 1e-20
@ tabucstring
upper case string table data
@ tabstring
string table data
@ tabinteger
integer table data
integer(i4b), parameter lenpackagename
maximum length of the package name
real(dp), parameter dp9
real constant 9/10
real(dp), parameter dem10
real constant 1e-10
real(dp), parameter dem7
real constant 1e-7
real(dp), parameter dem8
real constant 1e-8
integer(i4b), parameter namedboundflag
named bound flag
real(dp), parameter dnodata
real no data constant
real(dp), parameter dhnoflo
real no flow constant
integer(i4b), parameter lenlistlabel
maximum length of a llist label
real(dp), parameter dhundred
real constant 100
integer(i4b), parameter lenpakloc
maximum length of a package location
@ dis
DIS6 discretization.
real(dp), parameter dem1
real constant 1e-1
real(dp), parameter dhalf
real constant 1/2
integer(i4b), parameter lenftype
maximum length of a package type (DIS, WEL, OC, etc.)
real(dp), parameter dgravity
real constant gravitational acceleration (m/(s s))
integer(i4b), parameter lenauxname
maximum length of a aux variable
real(dp), parameter dem3
real constant 1e-3
integer(i4b), parameter lenboundname
maximum length of a bound name
real(dp), parameter dem4
real constant 1e-4
real(dp), parameter dem6
real constant 1e-6
real(dp), parameter dzero
real constant zero
real(dp), parameter dem5
real constant 1e-5
real(dp), parameter dten
real constant 10
real(dp), parameter dprec
real constant machine precision
real(dp), parameter dem15
real constant 1e-15
real(dp), parameter dtwo
real constant 2
integer(i4b), parameter lenbudtxt
maximum length of a budget component names
integer(i4b), parameter lenmempath
maximum length of the memory path
real(dp), parameter dthree
real constant 3
real(dp), parameter done
real constant 1
integer(i4b) function, public get_node(ilay, irow, icol, nlay, nrow, ncol)
Get node number, given layer, row, and column indices for a structured grid. If any argument is inval...
real(dp) function, public area(xv, yv, cw)
Calculate polygon area, with vertices given in CW or CCW order.
This module contains the CSUB package methods.
subroutine csub_ar(this, dis, ibound)
Allocate and read method for package.
real(dp) function csub_calc_sat_derivative(this, node, hcell)
Calculate the saturation derivative.
subroutine, public csub_cr(csubobj, name_model, mempath, istounit, stopckname, inunit, iout)
Create a new package object.
@ storage_elastic
effective stress not above preconsolidation stress
@ storage_unset
no state recorded
@ storage_inelastic
effective stress above preconsolidation stress
subroutine csub_fc(this, kiter, hold, hnew, matrix_sln, idxglo, rhs)
Fill A and r for the package.
subroutine csub_calc_sat(this, node, hcell, hcellold, snnew, snold)
Calculate cell saturation.
real(dp) function csub_calc_znode(this, top, bottom, zbar)
Calculate the cell node.
real(dp) function csub_calc_interbed_thickness(this, ib)
Calculate the interbed thickness.
real(dp), parameter dlog10es
derivative of the log of effective stress
subroutine csub_rp(this)
Read and prepare stress period data for package.
subroutine csub_ad(this, nodes, hnew)
Advance the package.
@ storage_input_specific_storage
specific storage coefficients
@ storage_input_compression_index
compression indices
@ interbed_elastic
elastic storage only
@ interbed_elastic_inelastic
elastic and inelastic storage
subroutine csub_calc_sfacts(this, node, bot, znode, theta, es, es0, geo, fact)
Calculate specific storage coefficient factor.
subroutine csub_fn(this, kiter, hold, hnew, matrix_sln, idxglo, rhs)
Fill Newton-Raphson terms in A and r for the package.
real(dp), parameter stressfloor
effective-stress regularization floor (fraction of geostatic stress)
This module defines variable data types.
pure logical function, public is_close(a, b, rtol, atol, symmetric)
Check if a real value is approximately equal to another.
character(len=lenmempath) function create_mem_path(component, subcomponent, context)
returns the path to the memory object
Store and issue logging messages to output units.
subroutine, public write_message(text, iunit, fmt, skipbefore, skipafter, advance)
Write a message to an output unit.
This module contains the base numerical package type.
This module contains the derived types ObserveType and ObsDataType.
This module contains the derived type ObsType.
subroutine, public obs_cr(obs, inobs)
Create a new ObsType object.
This module contains simulation methods.
subroutine, public store_warning(msg, substring)
Store warning message.
subroutine, public store_error(msg, terminate)
Store an error message.
integer(i4b) function, public count_errors()
Return number of errors.
subroutine, public store_error_filename(filename, terminate)
Store the erroring file name.
This module contains simulation variables.
character(len=maxcharlen) errmsg
error message string
character(len=maxcharlen) warnmsg
warning message string
integer(i4b) iout
file unit number for simulation output
real(dp) function squadraticsaturation(top, bot, x, eps)
sQuadraticSaturation
real(dp) function squadraticsaturationderivative(top, bot, x, eps)
Derivative of the quadratic saturation function.
real(dp) function squadratic0spderivative(x, xi, tomega)
sQuadratic0spDerivative
real(dp) function squadratic0sp(x, xi, tomega)
sQuadratic0sp
subroutine, public selectn(indx, v, reverse)
subroutine finalize(this)
subroutine, public table_cr(this, name, title)
integer(i4b), pointer, public kper
current stress period number
real(dp), pointer, public delt
length of the current time step
integer(i4b), pointer, public nper
number of stress period
Derived type for the Budget object.
subroutine log_options(this, found)
Write user options to list file.