Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SeaSt Vis: corrections to PR #1992 #2071

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions modules/openfast-library/src/FAST_Subs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ SUBROUTINE FAST_InitializeAll( t_initial, p_FAST, y_FAST, m_FAST, ED, BD, SrvD,

if (allocated(Init%OutData_SeaSt%WaveElevVisGrid)) then
p_FAST%VTK_surface%NWaveElevPts(1) = size(Init%OutData_SeaSt%WaveElevVisX)
p_FAST%VTK_surface%NWaveElevPts(2) = size(Init%OutData_SeaSt%WaveElevVisX)
p_FAST%VTK_surface%NWaveElevPts(2) = size(Init%OutData_SeaSt%WaveElevVisY)
else
p_FAST%VTK_surface%NWaveElevPts(1) = 0
p_FAST%VTK_surface%NWaveElevPts(2) = 0
Expand Down Expand Up @@ -4157,7 +4157,6 @@ SUBROUTINE SetVTKParameters(p_FAST, InitOutData_ED, InitOutData_AD, InitInData_S

!bjj: interpolate here instead of each time step?
if ( allocated(InitOutData_SeaSt%WaveElevVisGrid) ) then
print*,'Storing Wave surface visualization'
call move_alloc( InitOutData_SeaSt%WaveElevVisX, p_FAST%VTK_Surface%WaveElevVisX )
call move_alloc( InitOutData_SeaSt%WaveElevVisY, p_FAST%VTK_Surface%WaveElevVisY )
call move_alloc( InitOutData_SeaSt%WaveElevVisGrid,p_FAST%VTK_Surface%WaveElevVisGrid )
Expand Down
2 changes: 1 addition & 1 deletion modules/seastate/src/SeaState.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ typedef ^ ^ CHARACTER(ChanLen) Wri
typedef ^ ^ ProgDesc Ver - - - "Version of SeaState"
typedef ^ ^ LOGICAL InvalidWithSSExctn - - - "Whether SeaState configuration is invalid with HydroDyn's state-space excitation (ExctnMod=2)" (-)
typedef ^ ^ SiKi WaveElevVisX {:} - - "X locations of grid output" "m,-"
typedef ^ ^ SiKi WaveElevVisY {:} - - "X locations of grid output" "m,-"
typedef ^ ^ SiKi WaveElevVisY {:} - - "Y locations of grid output" "m,-"
typedef ^ ^ SiKi WaveElevVisGrid {:}{:}{:} - - "Wave elevation time-series at each of the points given by WaveElevXY. First dimension is the timestep. Second/third dimensions are the grid of points." (m)
typedef ^ ^ SeaSt_WaveFieldType *WaveField - - - "Pointer to wave field"

Expand Down
2 changes: 1 addition & 1 deletion modules/seastate/src/SeaState_Types.f90
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ MODULE SeaState_Types
TYPE(ProgDesc) :: Ver !< Version of SeaState [-]
LOGICAL :: InvalidWithSSExctn = .false. !< Whether SeaState configuration is invalid with HydroDyn's state-space excitation (ExctnMod=2) [(-)]
REAL(SiKi) , DIMENSION(:), ALLOCATABLE :: WaveElevVisX !< X locations of grid output [m,-]
REAL(SiKi) , DIMENSION(:), ALLOCATABLE :: WaveElevVisY !< X locations of grid output [m,-]
REAL(SiKi) , DIMENSION(:), ALLOCATABLE :: WaveElevVisY !< Y locations of grid output [m,-]
REAL(SiKi) , DIMENSION(:,:,:), ALLOCATABLE :: WaveElevVisGrid !< Wave elevation time-series at each of the points given by WaveElevXY. First dimension is the timestep. Second/third dimensions are the grid of points. [(m)]
TYPE(SeaSt_WaveFieldType) , POINTER :: WaveField => NULL() !< Pointer to wave field [-]
END TYPE SeaSt_InitOutputType
Expand Down
Loading