@@ -49,14 +49,6 @@ MODULE SeaSt_WaveField_Types
4949 INTEGER (IntKi), PUBLIC , PARAMETER :: ConstWaveMod_None = 0 ! ConstWaveMod = 0 [Constrained wave model: No constrained waves] [-]
5050 INTEGER (IntKi), PUBLIC , PARAMETER :: ConstWaveMod_CrestElev = 1 ! ConstWaveMod = 1 [Constrained wave model: Constrained wave with specified crest elevation, alpha] [-]
5151 INTEGER (IntKi), PUBLIC , PARAMETER :: ConstWaveMod_Peak2Trough = 2 ! ConstWaveMod = 2 [Constrained wave model: Constrained wave with guaranteed peak-to-trough crest height, HCrest] [-]
52- ! ========= SeaSt_WaveField_ParameterType =======
53- TYPE, PUBLIC :: SeaSt_WaveField_ParameterType
54- INTEGER (IntKi) , DIMENSION (1 :4 ) :: n = 0_IntKi ! < number of evenly-spaced grid points in the t, x, y, and z directions [-]
55- REAL (ReKi) , DIMENSION (1 :4 ) :: delta = 0.0_ReKi ! < size between 2 consecutive grid points in each grid direction [s,m,m,m]
56- REAL (ReKi) , DIMENSION (1 :4 ) :: pZero = 0.0_ReKi ! < fixed position of the XYZ grid (i.e., XYZ coordinates of m%V(:,1,1,1,:)) [m]
57- REAL (ReKi) :: Z_Depth = 0.0_ReKi ! < grid depth [m]
58- END TYPE SeaSt_WaveField_ParameterType
59- ! =======================
6052! ========= SeaSt_WaveField_MiscVarType =======
6153 TYPE, PUBLIC :: SeaSt_WaveField_MiscVarType
6254 REAL (SiKi) , DIMENSION (1 :8 ) :: N3D = 0.0_R4Ki ! < this is the weighting function for 3-d velocity field [-]
@@ -113,53 +105,6 @@ MODULE SeaSt_WaveField_Types
113105! =======================
114106CONTAINS
115107
116- subroutine SeaSt_WaveField_CopyParam (SrcParamData , DstParamData , CtrlCode , ErrStat , ErrMsg )
117- type (SeaSt_WaveField_ParameterType), intent (in ) :: SrcParamData
118- type (SeaSt_WaveField_ParameterType), intent (inout ) :: DstParamData
119- integer (IntKi), intent (in ) :: CtrlCode
120- integer (IntKi), intent ( out ) :: ErrStat
121- character (* ), intent ( out ) :: ErrMsg
122- character (* ), parameter :: RoutineName = ' SeaSt_WaveField_CopyParam'
123- ErrStat = ErrID_None
124- ErrMsg = ' '
125- DstParamData% n = SrcParamData% n
126- DstParamData% delta = SrcParamData% delta
127- DstParamData% pZero = SrcParamData% pZero
128- DstParamData% Z_Depth = SrcParamData% Z_Depth
129- end subroutine
130-
131- subroutine SeaSt_WaveField_DestroyParam (ParamData , ErrStat , ErrMsg )
132- type (SeaSt_WaveField_ParameterType), intent (inout ) :: ParamData
133- integer (IntKi), intent ( out ) :: ErrStat
134- character (* ), intent ( out ) :: ErrMsg
135- character (* ), parameter :: RoutineName = ' SeaSt_WaveField_DestroyParam'
136- ErrStat = ErrID_None
137- ErrMsg = ' '
138- end subroutine
139-
140- subroutine SeaSt_WaveField_PackParam (RF , Indata )
141- type (RegFile), intent (inout ) :: RF
142- type (SeaSt_WaveField_ParameterType), intent (in ) :: InData
143- character (* ), parameter :: RoutineName = ' SeaSt_WaveField_PackParam'
144- if (RF% ErrStat >= AbortErrLev) return
145- call RegPack(RF, InData% n)
146- call RegPack(RF, InData% delta)
147- call RegPack(RF, InData% pZero)
148- call RegPack(RF, InData% Z_Depth)
149- if (RegCheckErr(RF, RoutineName)) return
150- end subroutine
151-
152- subroutine SeaSt_WaveField_UnPackParam (RF , OutData )
153- type (RegFile), intent (inout ) :: RF
154- type (SeaSt_WaveField_ParameterType), intent (inout ) :: OutData
155- character (* ), parameter :: RoutineName = ' SeaSt_WaveField_UnPackParam'
156- if (RF% ErrStat /= ErrID_None) return
157- call RegUnpack(RF, OutData% n); if (RegCheckErr(RF, RoutineName)) return
158- call RegUnpack(RF, OutData% delta); if (RegCheckErr(RF, RoutineName)) return
159- call RegUnpack(RF, OutData% pZero); if (RegCheckErr(RF, RoutineName)) return
160- call RegUnpack(RF, OutData% Z_Depth); if (RegCheckErr(RF, RoutineName)) return
161- end subroutine
162-
163108subroutine SeaSt_WaveField_CopyMisc (SrcMiscData , DstMiscData , CtrlCode , ErrStat , ErrMsg )
164109 type (SeaSt_WaveField_MiscVarType), intent (in ) :: SrcMiscData
165110 type (SeaSt_WaveField_MiscVarType), intent (inout ) :: DstMiscData
0 commit comments