Errors in Linux compilation
Hi all,
I wanted to use the controller with a FAST model of the 10MW but I'm struggling to compile on Linux the version that I downloaded on 28/02/2019. I had to modify a couple of files in the "dtu_we_controller" folder because of some errors when I compiled (see the new files attached). And I could not get the git_version.inc file so for now I'm just using an empty file for now (which may be what is causing the errors afterwards I guess). But now I am getting loads of error when the makefile tries to compile "flap_controller_cyclic_fcns.f90" (see below), and I'm not really sure how to solve them...I've had a look and I believe there is something wrong with the "if" loops in lines 142-145, but I'm not sure what all the "Unclassifiable statement" errors come from.
I don't know if anyone can be of help ? Thanks, Jean-Baptiste
Compiler message:
make -C dtu_we_controller make[1]: Entering directory '/home/h27577/Documents/2-Projet_Offshore/1-Lot_Structure/10-Models_Database/5-DTU10MW/1-Controller/DownloadFromGIT190228/BasicDTUController-master/src/dtu_we_controller' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/h27577/Documents/2-Projet_Offshore/1-Lot_Structure/10-Models_Database/5-DTU10MW/1-Controller/DownloadFromGIT190228/BasicDTUController-master/src/dtu_we_controller' make -C dtu_we_controller_bladed make[1]: Entering directory '/home/h27577/Documents/2-Projet_Offshore/1-Lot_Structure/10-Models_Database/5-DTU10MW/1-Controller/DownloadFromGIT190228/BasicDTUController-master/src/dtu_we_controller_bladed' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/h27577/Documents/2-Projet_Offshore/1-Lot_Structure/10-Models_Database/5-DTU10MW/1-Controller/DownloadFromGIT190228/BasicDTUController-master/src/dtu_we_controller_bladed' make -C flap_controller_cyclic make[1]: Entering directory '/home/h27577/Documents/2-Projet_Offshore/1-Lot_Structure/10-Models_Database/5-DTU10MW/1-Controller/DownloadFromGIT190228/BasicDTUController-master/src/flap_controller_cyclic' gfortran -fPIC -c -O3 -I../dtu_we_controller flap_controller_cyclic_fcns.f90 -o flap_controller_cyclic_fcns.o flap_controller_cyclic_fcns.f90:114.2:
PIDvar.outset1=0 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:115.2:
PIDvar.outres1=0 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:116.2:
PIDvar.error1=0 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:117.2:
PIDvar.error1_old=0.0 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:118.2:
PIDvar.outset1_old=0.0 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:119.2:
PIDvar.outres1_old=0.0 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:122.20:
if (stepno.gt.PIDvar.stepno1) then 1 Error: Syntax error in IF-expression at (1) flap_controller_cyclic_fcns.f90:123.2:
PIDvar.outset1_old=PIDvar.outset1 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:124.2:
PIDvar.outres1_old=PIDvar.outres1 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:125.2:
PIDvar.error1_old=PIDvar.error1 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:126.3:
endif 1 Error: Expecting END FUNCTION statement at (1) flap_controller_cyclic_fcns.f90:128:
PIDvar.outset=PIDvar.outset1_old+0.5d0*(error+PIDvar.error1)*kgain(2)PIDvar.Kintdt 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:130:
PIDvar.outpro=kgain(1)PIDvar.Kpro0.5d0*(error+PIDvar.error1) 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:132:
PIDvar.outdif=kgain(3)PIDvar.Kdif(error-PIDvar.error1_old)/dt 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:134:
PIDvar.outres=PIDvar.outset+PIDvar.outpro+PIDvar.outdif 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:137.2:
PIDvar.outres=PIDvar.outmin 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:139.2:
PIDvar.outres=PIDvar.outmax 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:142.20:
if (PIDvar.velmax.gt.eps) then 1 Error: Syntax error in IF-expression at (1) flap_controller_cyclic_fcns.f90:143.17:
if ((abs(PIDvar.outres-PIDvar.outres1_old)/dt).gt.PIDvar.velmax) then 1 Error: Syntax error in argument list at (1) flap_controller_cyclic_fcns.f90:144.4:
PIDvar.outres=PIDvar.outres1_old+dsign(PIDvar.velmax*dt,PIDvar.outres-PIDvar.outres1_old) 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:145.5:
endif 1 Error: Expecting END FUNCTION statement at (1) flap_controller_cyclic_fcns.f90:146.3:
endif 1 Error: Expecting END FUNCTION statement at (1) flap_controller_cyclic_fcns.f90:148:
PIDvar.outset1 = PIDvar.outres-PIDvar.outpro-PIDvar.outdif ! . makes the integral term react faster 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:149:
PIDvar.outres1 = PIDvar.outres 1 Error: Unclassifiable statement at (1) flap_controller_cyclic_fcns.f90:150:
PIDvar.error1 = error 1 Error: Unclassifiable statement at (1) Fatal Error: Error count reached limit of 25. ../config.mk:5: recipe for target 'flap_controller_cyclic_fcns.o' failed make[1]: *** [flap_controller_cyclic_fcns.o] Error 1 make[1]: Leaving directory '/home/h27577/Documents/2-Projet_Offshore/1-Lot_Structure/10-Models_Database/5-DTU10MW/1-Controller/DownloadFromGIT190228/BasicDTUController-master/src/flap_controller_cyclic' Makefile:19: recipe for target 'flap_controller_cyclic' failed make: *** [flap_controller_cyclic] Error 2