hello everyone,
I am trying to simulate the variation of the wind speed as well as its direction throughout a year with this test. However, it seems like i have an error in my syntaxis(I am quite clumsy with FORTRAN yet).Thanks in advanced
C.....VARIABLES TRANSMISES
C """"""""""""""""""""
INTEGER NPOIN2, VITES, DIR_1, v
DOUBLE PRECISION AT , DDC , VX_CTE, VY_CTE
DOUBLE PRECISION X (NPOIN2) , Y (NPOIN2)
DOUBLE PRECISION UV(NPOIN2) , VV(NPOIN2)
C
CMB
Modif debut
C
C.....VARIABLES LOCALES
C """""""""""""""""
INTEGER IP
DOUBLE PRECISION UCONST, VCONST, VITES, DIR_1, CNVR, v
C.....VITES : vitesse du vent en m/s (constante ici)
C.....DIRR_1 : direction initiale du vent (en degres, par rapport au Nord)
C.....DIRR_2 : direction finale du vent (en degres, par rapport au Nord)
C NB : il s'agit de directions vers ou souffle le vent.
OPEN(UNIT=112,FILE='/home/estanislao.gavilan/beach/turning_wind/winds2.dat',STATUS='OLD',ACTION='READ') VITES,DIR_1
v=VITES*0.514444444.D0
CNVR=3.141592654D0/180.D0
UCONST=v*SIN(DIR_1*CNVR)
VCONST=v*COS(DIR_1*CNVR)
CLOSE (112)
DO IP=1,NPOIN2
UV(IP)=UCONST
VV(IP)=VCONST
ENDDO
CMB