Skip to content

Commit c8ceb1e

Browse files
authored
Merge pull request #2517 from luwang00/b/HD_Depth_Axial_Coefs
HD bug fix for depth-based axial hydrodynamic coefficients
2 parents 024dbc1 + 77d483e commit c8ceb1e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

modules/hydrodyn/src/HydroDyn_Input.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,19 +1911,19 @@ SUBROUTINE HydroDynInput_ProcessInitData( InitInp, Interval, InputFileData, ErrS
19111911
RETURN
19121912
END IF
19131913
IF ( InputFileData%Morison%CoefMembers(I)%MemberAxCa1 < 0 ) THEN
1914-
CALL SetErrStat( ErrID_Fatal,'In the member-based hydrodynamic coefficients table, MemberCa1 must be greater or equal to zero.',ErrStat,ErrMsg,RoutineName)
1914+
CALL SetErrStat( ErrID_Fatal,'In the member-based hydrodynamic coefficients table, MemberAxCa1 must be greater or equal to zero.',ErrStat,ErrMsg,RoutineName)
19151915
RETURN
19161916
END IF
19171917
IF ( InputFileData%Morison%CoefMembers(I)%MemberAxCa2 < 0 ) THEN
1918-
CALL SetErrStat( ErrID_Fatal,'In the member-based hydrodynamic coefficients table, MemberCa2 must be greater or equal to zero.',ErrStat,ErrMsg,RoutineName)
1918+
CALL SetErrStat( ErrID_Fatal,'In the member-based hydrodynamic coefficients table, MemberAxCa2 must be greater or equal to zero.',ErrStat,ErrMsg,RoutineName)
19191919
RETURN
19201920
END IF
19211921
IF ( InputFileData%Morison%CoefMembers(I)%MemberAxCaMG1 < 0 ) THEN
1922-
CALL SetErrStat( ErrID_Fatal,'In the member-based hydrodynamic coefficients table, MemberCaMG1 must be greater or equal to zero.',ErrStat,ErrMsg,RoutineName)
1922+
CALL SetErrStat( ErrID_Fatal,'In the member-based hydrodynamic coefficients table, MemberAxCaMG1 must be greater or equal to zero.',ErrStat,ErrMsg,RoutineName)
19231923
RETURN
19241924
END IF
19251925
IF ( InputFileData%Morison%CoefMembers(I)%MemberAxCaMG2 < 0 ) THEN
1926-
CALL SetErrStat( ErrID_Fatal,'In the member-based hydrodynamic coefficients table, MemberCaMG2 must be greater or equal to zero.',ErrStat,ErrMsg,RoutineName)
1926+
CALL SetErrStat( ErrID_Fatal,'In the member-based hydrodynamic coefficients table, MemberAxCaMG2 must be greater or equal to zero.',ErrStat,ErrMsg,RoutineName)
19271927
RETURN
19281928
END IF
19291929
IF ( InputFileData%Morison%CoefMembers(I)%MemberCb1 < 0 ) THEN

modules/hydrodyn/src/Morison.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,9 +1111,9 @@ SUBROUTINE SetDepthBasedCoefs( z, tMG, NCoefDpth, CoefDpths, Cd, Ca, Cp, AxCd, A
11111111
Cd = CoefDpths(indx1)%DpthCd*(1-s) + CoefDpths(indx2)%DpthCd*s
11121112
Ca = CoefDpths(indx1)%DpthCa*(1-s) + CoefDpths(indx2)%DpthCa*s
11131113
Cp = CoefDpths(indx1)%DpthCp*(1-s) + CoefDpths(indx2)%DpthCp*s
1114-
AxCd = CoefDpths(indx1)%DpthCd*(1-s) + CoefDpths(indx2)%DpthAxCd*s
1115-
AxCa = CoefDpths(indx1)%DpthCa*(1-s) + CoefDpths(indx2)%DpthAxCa*s
1116-
AxCp = CoefDpths(indx1)%DpthCp*(1-s) + CoefDpths(indx2)%DpthAxCp*s
1114+
AxCd = CoefDpths(indx1)%DpthAxCd*(1-s) + CoefDpths(indx2)%DpthAxCd*s
1115+
AxCa = CoefDpths(indx1)%DpthAxCa*(1-s) + CoefDpths(indx2)%DpthAxCa*s
1116+
AxCp = CoefDpths(indx1)%DpthAxCp*(1-s) + CoefDpths(indx2)%DpthAxCp*s
11171117
Cb = CoefDpths(indx1)%DpthCb*(1-s) + CoefDpths(indx2)%DpthCb*s
11181118
end if
11191119

0 commit comments

Comments
 (0)