Skip to content

Commit

Permalink
Give max() proper inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Jul 28, 2023
1 parent d1bc65d commit fcea64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ROSCO/src/ControllerBlocks.f90
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ SUBROUTINE WindSpeedEstimator(LocalVar, CntrPar, objInst, PerfData, DebugVar, Er
! Initialize recurring values
LocalVar%WE%om_r = WE_Inp_Speed
LocalVar%WE%v_t = 0.0
LocalVar%WE%v_m = max(LocalVar%HorWindV, 3) ! avoid divide by 0 below if HorWindV is 0, which some AMRWind setups create
LocalVar%WE%v_h = max(LocalVar%HorWindV, 3) ! avoid divide by 0 below if HorWindV is 0, which some AMRWind setups create
LocalVar%WE%v_m = max(LocalVar%HorWindV, 3.0_DbKi) ! avoid divide by 0 below if HorWindV is 0, which some AMRWind setups create
LocalVar%WE%v_h = max(LocalVar%HorWindV, 3.0_DbKi) ! avoid divide by 0 below if HorWindV is 0, which some AMRWind setups create
lambda = WE_Inp_Speed * CntrPar%WE_BladeRadius/LocalVar%WE%v_h
LocalVar%WE%xh = RESHAPE((/LocalVar%WE%om_r, LocalVar%WE%v_t, LocalVar%WE%v_m/),(/3,1/))
LocalVar%WE%P = RESHAPE((/0.01, 0.0, 0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 1.0/),(/3,3/))
Expand Down

0 comments on commit fcea64e

Please sign in to comment.