Skip to content

Commit dba0abe

Browse files
authored
Merge pull request #3268 from RBergua/SeaState-current-logic
SeaState: Logic for near-surface current
2 parents 2895884 + b5d52bc commit dba0abe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/seastate/src/SeaState_Input.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,8 @@ subroutine SeaStateInput_ProcessInitData( InitInp, p, InputFileData, ErrStat, Er
983983
!------------------------- Near-surface current ------------------------
984984

985985
! CurrNSRef - Near-surface current reference depth.
986-
if ( InputFileData%Current%CurrNSRef <= 0.0 ) then
987-
call SetErrStat( ErrID_Fatal,'CurrNSRef must be greater than zero.',ErrStat,ErrMsg,RoutineName)
986+
if ( InputFileData%Current%CurrNSV0 /= 0.0_SiKi .AND. InputFileData%Current%CurrNSRef <= 0.0_SiKi ) then
987+
call SetErrStat( ErrID_Fatal,'CurrNSRef must be greater than zero when CurrNSV0 is nonzero.',ErrStat,ErrMsg,RoutineName)
988988
return
989989
end if
990990

0 commit comments

Comments
 (0)