From ee8f54af46c5d6c28931e6afb7f8be893546d64c Mon Sep 17 00:00:00 2001 From: Emmanuel Branlard Date: Thu, 3 Aug 2023 13:01:41 -0600 Subject: [PATCH] AD: setting UA_NumLinStates to 0 when no cont-states --- modules/aerodyn/src/UnsteadyAero.f90 | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/aerodyn/src/UnsteadyAero.f90 b/modules/aerodyn/src/UnsteadyAero.f90 index 3777a5ac5..f40d8f5d9 100644 --- a/modules/aerodyn/src/UnsteadyAero.f90 +++ b/modules/aerodyn/src/UnsteadyAero.f90 @@ -757,6 +757,7 @@ subroutine UA_SetParameters( dt, InitInp, p, AFInfo, AFIndx, ErrStat, ErrMsg ) p%lin_nx = p%numBlades*p%nNodesPerBlade*UA_NumLinStates ! continuous state per node per blade, but stored at position 4 else p%lin_nx = 0 + UA_NumLinStates = 0 end if ! Compute derivative step size