Code: Select all
!
! If input point surface winds, rotate to curvilinear grid.
!
IF (.not.Linfo(1,idUair,ng)) THEN
DO j=MIN(Jstr-1,JstrR),JendR !!! changed
DO i=MIN(Istr-1,IstrR),IendR !!! changed
cff1=FORCES(ng)%Uwind(i,j)* &
& COS(GRID(ng)%angler(i,j))+ &
& FORCES(ng)%Vwind(i,j)* &
& SIN(GRID(ng)%angler(i,j))
cff2=FORCES(ng)%Vwind(i,j)* &
& COS(GRID(ng)%angler(i,j))- &
& FORCES(ng)%Uwind(i,j)* &
& SIN(GRID(ng)%angler(i,j))
FORCES(ng)%Uwind(i,j)=cff1
FORCES(ng)%Vwind(i,j)=cff2
END DO
END DO
END IF