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

Fix HydroDyn Jacobian outputs when LinOutJac is True #1047

Merged
merged 1 commit into from
Mar 15, 2022
Merged
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
4 changes: 0 additions & 4 deletions modules/hydrodyn/src/HydroDyn.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2579,8 +2579,6 @@ SUBROUTINE HD_JacobianPInput( t, u, p, x, xd, z, OtherState, y, m, ErrStat, ErrM
! For the case where either RdtnMod=0 and ExtcnMod=0 and hence %SS_Rdtn data or %SS_Exctn data is not valid then we do not have states, so simply return
! The key here is to never allocate the dXdu and related state Jacobian arrays because then the glue-code will behave properly

if ( p%totalStates == 0 ) return

! Calculate the partial derivative of the continuous state functions (X) with respect to the inputs (u) here:

! allocate dXdu if necessary
Expand Down Expand Up @@ -2753,8 +2751,6 @@ SUBROUTINE HD_JacobianPContState( t, u, p, x, xd, z, OtherState, y, m, ErrStat,
ErrStat = ErrID_None
ErrMsg = ''

if ( p%totalStates == 0 ) return

! Calculate the partial derivative of the output functions (Y) with respect to the continuous states (x) here:


Expand Down