You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typedef ^ ^ LOGICAL UseInputFile - .TRUE. - "Supplied by Driver: .TRUE. if using a input file, .FALSE. if all inputs are being passed in by the caller" -
72
72
typedef ^ ^ FileInfoType PassedFileData - - - "If we don't use the input file, pass everything through this" -
73
73
typedef ^ ^ CHARACTER(1024) OutRootName - - - "Supplied by Driver: The name of the root file (without extension) including the full path" -
74
-
typedef ^ ^ Logical Linearize - .FALSE. - "Flag that tells this module if the glue code wants to linearize." -
74
+
typedef ^^ Logical Linearize - .FALSE. - "Flag that tells this module if the glue code wants to linearize." -
75
75
typedef ^ ^ ReKi Gravity - - - "Supplied by Driver: Gravitational acceleration" "(m/s^2)"
76
76
typedef ^ ^ DbKi TMax - - - "Supplied by Driver: The total simulation time" "(sec)"
type(SeaSt_InputType) :: u_SeaSt(1) ! System inputs
88
+
type(SeaSt_OutputType) :: y_SeaSt ! System outputs
90
89
91
90
! Motion file parsing
92
91
type(FileInfoType) :: FileInfo_PrescribeMtn !< The derived type for holding the prescribed forces input file for parsing -- we may pass this in the future
@@ -138,6 +137,7 @@ PROGRAM MoorDyn_Driver
138
137
ErrStat = ErrID_None
139
138
UnEcho=-1! set to -1 as echo is no longer used by MD
140
139
UnIn =-1
140
+
141
141
142
142
! TODO: Sort out error handling (two sets of flags currently used)
143
143
@@ -210,8 +210,6 @@ PROGRAM MoorDyn_Driver
210
210
211
211
! allocate Input and Output arrays; used for interpolation and extrapolation
212
212
Allocate(MD_uTimes(MD_interp_order +1))
213
-
214
-
! @bonnie : This is in the FAST developers glue code example, but it's probably not needed here.
ErrMsg2 ='The SeaState Module attempted to change the coupling timestep, but this is not allowed. The SeaState Module must use the Driver coupling timestep.'
REAL(DbKi), ALLOCATABLE:: WaveNmbr(:) ! wave number for frequency array
1086
-
REAL(SiKi), ALLOCATABLE:: WaveDirArr(:) ! Wave direction array. Each frequency has a unique direction of WaveNDir > 1 (degrees). 0's for WaveKin = 1 or if disabled in SeaState.
1087
1085
REAL(SiKi), ALLOCATABLE:: WaveElevC0(:,:) ! Discrete Fourier transform of the instantaneous elevation of incident waves at the ref point (meters)
1088
1086
COMPLEX(SiKi), ALLOCATABLE:: WaveElevC( :) ! Discrete Fourier transform of the instantaneous elevation of incident waves at the ref point (meters)
1089
1087
COMPLEX(SiKi), ALLOCATABLE:: WaveAccCHx(:) ! Discrete Fourier transform of the instantaneous horizontal acceleration in x-direction of incident waves before applying stretching at the zi-coordinates for points (m/s^2)
! Warning check to make sure SeaState and MoorDyn have the same wave dir. For now, no wave spreading. This can be updated
1415
-
IF (p%WaveField%WaveDir /= WaveDir) THEN
1413
+
IF (p%WaveField%WaveDir /= WaveDir) THEN!bjj: the local WaveDir doesn't appear to be used when WaveKin = 2 and p%WaveField%WaveDirArr is true, so I don't think this error message is completely valid.
1416
1414
IF (p%writeLog > 0) THEN
1417
1415
WRITE(p%UnLog, '(A)' ) " WARNING SeaState WaveDir does not match MoorDyn WaveDir. Using MoorDyn values for interpolating SeaState data to MoorDyn grid."
call DCM_logMap(M%Orientation(:,:,i), logmap, ErrStat2, ErrMsg2) !NOTE: we cannot use GetSmllRotAngs because we CANNOT assume that all DCMs in the code are small.
2931
+
logmap = EulerExtract(M%Orientation(:,:,i)) !NOTE: we cannot use GetSmllRotAngs because we CANNOT assume that all DCMs in the code are small.
0 commit comments