Skip to content

Commit

Permalink
Merge pull request #7 from ebranlard/f/fix-vtk-wave
Browse files Browse the repository at this point in the history
Bug Fix: Wrong ErrStat preventing wave elev VTK outputs
  • Loading branch information
luwang00 authored Mar 21, 2023
2 parents 092648d + f22f15d commit 1af49d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/seastate/src/SeaState.f90
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ SUBROUTINE SeaSt_Init( InitInp, u, p, x, xd, z, OtherState, y, m, Interval, Init
IF (ALLOCATED(InitInp%WaveElevXY)) THEN
! maybe instead of getting these requested points, we just output the grid that SeaState is generated on?
ALLOCATE(InitOut%WaveElevSeries( 0:InitOut%NStepWave, 1:SIZE(InitInp%WaveElevXY, DIM=2)),STAT=ErrStat2)
if (ErrStat /= 0) then
if (ErrStat2 /= 0) then
CALL SetErrStat(ErrID_Fatal,"Error allocating InitOut%WaveElevSeries.",ErrStat,ErrMsg,RoutineName)
CALL CleanUp()
RETURN
Expand Down

0 comments on commit 1af49d1

Please sign in to comment.