Skip to content

Commit

Permalink
change setting.PreissmannSlot to setting.Solver...
Browse files Browse the repository at this point in the history
  • Loading branch information
benrhodges committed Jul 13, 2023
1 parent 9a0a206 commit 7633f89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions definitions/define_settings.f90
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ module define_settings
!% large topwidths that will cause large plan areas at their junctions.
end type

!% setting%PreissmannSlot
!% setting%Solver%PreissmannSlot
type PreissmannSlotType
logical :: useSlotTF = .true.
!% Allowable values: DynamicSlot, StaticSlot
Expand Down Expand Up @@ -759,7 +759,7 @@ module define_settings
type(OrificeType) :: Orifice
type(OutputType) :: Output
type(PartitioningType) :: Partitioning
type(PreissmannSlotType) :: PreissmannSlot
!type(PreissmannSlotType) :: PreissmannSlot
type(ProfileType) :: Profile
type(PumpSettingType) :: Pump
type(SimulationType) :: Simulation
Expand Down
4 changes: 2 additions & 2 deletions initialization/initial_condition.f90
Original file line number Diff line number Diff line change
Expand Up @@ -4962,8 +4962,8 @@ subroutine init_IC_slot ()
elemR(1:thisSize,er_Preissmann_Number_initial) = TargetPCelerity / (Alpha * sqrt(grav &
* elemR(1:size(elemR,1)-1,er_FullDepth)))

where (elemR(1:thisSize,er_Preissmann_Number_initial) < setting%PreissmannSlot%MinimumInitialPreissmannNumber)
elemR(1:thisSize,er_Preissmann_Number_initial) = setting%PreissmannSlot%MinimumInitialPreissmannNumber
where (elemR(1:thisSize,er_Preissmann_Number_initial) < setting%Solver%PreissmannSlot%MinimumInitialPreissmannNumber)
elemR(1:thisSize,er_Preissmann_Number_initial) = setting%Solver%PreissmannSlot%MinimumInitialPreissmannNumber
endwhere

!% --- only calculate slots for ETM time-march
Expand Down

0 comments on commit 7633f89

Please sign in to comment.