Skip to content

Commit

Permalink
Fix for Intel oneAPI compilers regarding variable type (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
rthedin authored Nov 18, 2024
1 parent a70d374 commit 27c0eb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ROSCO/src/Controllers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ SUBROUTINE FlapControl(avrSWAP, CntrPar, LocalVar, objInst)
LocalVar%Flp_Angle(3) = CntrPar%Flp_Angle
! Initialize controller
IF (CntrPar%Flp_Mode == 2) THEN
LocalVar%Flp_Angle(K) = PIIController(RootMyb_VelErr(K), 0 - LocalVar%Flp_Angle(K), CntrPar%Flp_Kp, CntrPar%Flp_Ki, 0.05, -CntrPar%Flp_MaxPit , CntrPar%Flp_MaxPit , LocalVar%DT, 0.0, LocalVar%piP, LocalVar%restart, objInst%instPI)
LocalVar%Flp_Angle(K) = PIIController(RootMyb_VelErr(K), 0 - LocalVar%Flp_Angle(K), CntrPar%Flp_Kp, CntrPar%Flp_Ki, 0.05_DbKi, -CntrPar%Flp_MaxPit , CntrPar%Flp_MaxPit , LocalVar%DT, 0.0_DbKi, LocalVar%piP, LocalVar%restart, objInst%instPI)
ENDIF

! Steady flap angle
Expand All @@ -574,7 +574,7 @@ SUBROUTINE FlapControl(avrSWAP, CntrPar, LocalVar, objInst)
ELSEIF (CntrPar%Flp_Mode == 2) THEN
DO K = 1,LocalVar%NumBl
! Find flap angle command - includes an integral term to encourage zero flap angle
LocalVar%Flp_Angle(K) = PIIController(-LocalVar%rootMOOPF(K), 0 - LocalVar%Flp_Angle(K), CntrPar%Flp_Kp, CntrPar%Flp_Ki, REAL(0.05,DbKi), -CntrPar%Flp_MaxPit , CntrPar%Flp_MaxPit , LocalVar%DT, 0.0, LocalVar%piP, LocalVar%restart, objInst%instPI)
LocalVar%Flp_Angle(K) = PIIController(-LocalVar%rootMOOPF(K), 0 - LocalVar%Flp_Angle(K), CntrPar%Flp_Kp, CntrPar%Flp_Ki, REAL(0.05,DbKi), -CntrPar%Flp_MaxPit , CntrPar%Flp_MaxPit , LocalVar%DT, 0.0_DbKi, LocalVar%piP, LocalVar%restart, objInst%instPI)
! Saturation Limits
LocalVar%Flp_Angle(K) = saturate(LocalVar%Flp_Angle(K), -CntrPar%Flp_MaxPit, CntrPar%Flp_MaxPit) * R2D
END DO
Expand Down

0 comments on commit 27c0eb0

Please sign in to comment.