Instructions for Compiling FAST

Provide feedback, request enhancements, and get help with wind-turbine computer-aided engineering tools.

Moderators: Bonnie.Jonkman, Jason.Jonkman

Marshall.Buhl
Posts: 437
Joined: Fri Oct 21, 2005 10:22 am
Organization: NREL/NWTC
Location: Boulder, CO
Location: Boulder, CO
Contact:

Re: Instructions for Compiling FAST

Postby Marshall.Buhl » Thu Oct 25, 2012 9:19 am

Neelabh,

Your discon.dll must be somewhere the OS can find it. Your screen shot did not show how you started FAST, so it's hard for me to tell. If you somehow specify a path when you execute FAST, the OS may not find the DLL. For instance, if FAST.exe and DISCON.DLL are in C:\FAST and you execute FAST in the C:\MyModel folder by typing C:\FAST\FAST.exe, it will not be able to find the DLL. You have to have the DLL in your current directory when you execute FAST. However, it may be possible that having the C:\FAST folder is in your search path will work too, but I have not tested it.

If someone test it, please let us know if it works.


Marshall
Mr. Marshall L. Buhl Jr.
NWTC-3811
National Renewable Energy Laboratory
Golden, CO 80401 USA
Marshall.Buhl@nrel.gov
Voice: +1 (303) 384-6914
Cell: +1 (303) 915-6623
Fax: +1 (303) 384-7079

Neelabh.Gupta
Posts: 45
Joined: Wed Sep 19, 2012 3:35 am
Organization: MECAL
Location: Netherlands

Re: Instructions for Compiling FAST

Postby Neelabh.Gupta » Thu Oct 25, 2012 9:32 am

FAST_path.PNG
FAST_path.PNG (20.37 KiB) Viewed 5662 times


This is the path to my FAST_1.exe file and DISCON.dll. Both are in Ozan_run folder.

Just to be more clear about my previous post, I compiled FAST using Microsoft Visual Studio (as instructed in manual) and I didn't use Compile_FAST.bat file anywhere. The manual mentions how to generate a FAST_dll using this Compile_FAST.bat file, but am not sure I have to do a similar thing when I use MS Visual Studio to compile FAST.
I got FAST_1.exe after compilation and I am using this for my simulations, when it gives this DISCON.dll error (could be loaded: in previous post)!

I would really appreciate a response on these lines as I want to compile recent version of FAST to get spanwise blade forces.

Thanks a lot in advance,
Neelabh

Bonnie.Jonkman
Posts: 566
Joined: Thu Nov 10, 2005 10:51 am
Organization: Envision Energy USA
Location: Colorado
Location: Boulder, CO
Contact:

Re: Instructions for Compiling FAST

Postby Bonnie.Jonkman » Thu Oct 25, 2012 3:31 pm

Neelabh,

Just to be clear: you compiled with a 32-bit version of the compiler? People have had problems when they compiled with a 64-bit compiler and then tried to load a dll created with a 32-bit compiler. (If you got the DLL from Jason's models on the web, it was compiled with a 32-bit compiler.)

Does the DLL load if you use the executable compiled at NREL?
Bonnie Jonkman

Envision Energy USA, 2016-
National Renewable Energy Laboratory, 2003-2016

Neelabh.Gupta
Posts: 45
Joined: Wed Sep 19, 2012 3:35 am
Organization: MECAL
Location: Netherlands

Re: Instructions for Compiling FAST

Postby Neelabh.Gupta » Fri Oct 26, 2012 2:50 am

Dear Bonnie and Marshall,

My system OS is 64-bit.

I tried both the ways: compiling it with 32-bit version and 64-bit version of IVF compiler. When I compile it with 32-bit and give a FAST simulation I get the error which I put in my 1st post:

forrt1error.PNG
forrt1error.PNG (33.94 KiB) Viewed 5656 times


And when I do it with, 64-bit (which I thought was the correct approach due to my OS configuration??), it gives the error: 'The DLL DISCON.dll cannot be loaded'.

I am not really sure, what's the problem. Also, just for information, the executable I generated after compilation is like 9.5 MB, but the one you posted is just 2.6 MB.

But, in any case thanks a lot for the executable file you put here. It loads the DISCON.dll and I am able to fetch blade span-wise forces. I really appreciate it!

Warm Regards,
Neelabh

Ramzan.Luhur
Posts: 10
Joined: Tue Jan 08, 2013 3:30 am
Organization: University of Oldenburg
Location: Germany

Re: Instructions for Compiling FAST

Postby Ramzan.Luhur » Wed Jan 09, 2013 8:05 am

Hi,
I am trying to compile FAST(by command line with Compile_FAST) using Intel(R) Fortran Compiler for running applications on IA32, Version 10.0.025 build environment but compilation aborts with series of errors. The snap shot of errors is herewith. I will be thankful for feedback on errors and guidance to solve this problem.
Screen shot 2013-01-09 at 15.47.50.png
Screen shot 2013-01-09 at 15.47.50.png (59.56 KiB) Viewed 5569 times
Best regards, Ramzan

Mark.Spring
Posts: 45
Joined: Fri Aug 03, 2012 3:45 am
Organization: Lloyd's Register Group
Location: United Kingdom
Location: Bristol, United Kingdom

Re: Instructions for Compiling FAST

Postby Mark.Spring » Wed Jan 09, 2013 8:29 am

This looks like a problem with declaring variables, functions and subroutines. I found that it's critical to get right the order in which the files are passed to the compiler.

1. Therefore I had a lot of errors when I changed the order of the lines in the DOS batch file (see code snippet below). I have defined some different locations for some of my files, because the code is under development and some source files are in BRANCHES rather than the TRUNK. The order should be the same as in your DOS batch file though.

2. Also, if you have added any new subroutines which USE variables, parameters or functions defined elsewhere, it's important that these are defined in a module or file above the file in which they are used.

3. It's worth having a look at the first line of output from the DOS window. It may contain a small error, which you can rectify and which will make all the subsequent errors go away. This is because the subsequent errors arise because one of the files has not been compiled successfully and so the variables, parameters or functions required later are not available. There's limited space in the DOS window and you tend to lose the earlier output when there are a lot of error messages. Try redirecting the output to a text file, which you can open later and scroll back up to the first error returned by DOS. The DOS command might look something like this below (with your path inserted).

C:\wtg_sim\... ...\CMD_Release>Compile_FAST DLL > TemporaryOutputs.txt

Code: Select all

REM ----------------------------------------------------------------------------
REM -------------------- LIST OF ALL SOURCE FILES ------------------------------
REM ----------------------------------------------------------------------------

SET NWTC_Files=
SET NWTC_Files=%NWTC_Files%  "%NWTC_Lib_Loc%\SingPrec.f90"
SET NWTC_Files=%NWTC_Files%  "%NWTC_Lib_Loc%\SysIVF.f90"
SET NWTC_Files=%NWTC_Files%  "%NWTC_Lib_Loc%\NWTC_IO.f90"
SET NWTC_Files=%NWTC_Files%  "%NWTC_Lib_Loc%\NWTC_Num.f90"
SET NWTC_Files=%NWTC_Files%  "%NWTC_Lib_Loc%\NWTC_Aero.f90"
SET NWTC_Files=%NWTC_Files%  "%NWTC_Lib_Loc%\NWTC_Library.f90"


SET Wind_Files=
SET Wind_Files=%Wind_Files%  "%Wind_Loc%\SharedInflowDefs.f90"
SET Wind_Files=%Wind_Files%  "%Wind_Loc%\HHWind.f90"
SET Wind_Files=%Wind_Files%  "%Wind_Loc%\FFWind.f90"
SET Wind_Files=%Wind_Files%  "%Wind_Loc%\HAWCWind.f90"
SET Wind_Files=%Wind_Files%  "%Wind_Loc%\FDWind.f90"
SET Wind_Files=%Wind_Files%  "%Wind_Loc%\CTWind.f90"
SET Wind_Files=%Wind_Files%  "%Wind_Loc%\UserWind.f90"
SET Wind_Files=%Wind_Files%  "%Wind_Loc%\InflowWindMod.f90"


SET AeroDyn_Files=
REM "resource" file (unchanged from trunk)
SET AeroDyn_Files=%AeroDyn_Files%  "%AeroDyn_Loc2%\SharedTypes.f90"
SET AeroDyn_Files=%AeroDyn_Files%  "%AeroDyn_Loc1%\AeroMods.f90"
SET AeroDyn_Files=%AeroDyn_Files%  "%AeroDyn_Loc2%\GenSubs.f90"
SET AeroDyn_Files=%AeroDyn_Files%  "%AeroDyn_Loc1%\AeroSubs.f90"
SET AeroDyn_Files=%AeroDyn_Files%  "%AeroDyn_Loc1%\AeroDyn.f90"


SET FAST_Files=
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\fftpack.f"
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\FFTMod.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC1%\HydroCalc.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC1%\FAST_Mods.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\Noise.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC1%\FAST_IO.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC1%\FAST.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\FAST_Lin.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\FAST2ADAMS.f90"

IF /I "%1"=="DLL" GOTO dllFiles

SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\PitchCntrl_ACH.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\UserSubs.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\UserVSCont_KP.f90"

GOTO endFASTfiles

:dllFiles
SET FAST_Files=%FAST_Files%  "%DLL_Loc%\LRLayerDLLInterface.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\UserSubs_forBladedDLL.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\UserVSCont_KP_forBladedDLL.f90"

REM NOTE: UserSubs_forBladedDLL.f90 is a copy of UserSubs.f90 with SUBROUTINES UserHSSBr() and UserYawCont() commented out
REM       UserVSCont_KP_forBladedDLL.f90 is a copy of UserVSCont_KP.f90 with SUBROUTINE UserVSCont() commented out

SET ROOT_NAME=%ROOT_NAME%_DLL

:endFASTfiles
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\AeroCalc.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\SetVersion.f90"
SET FAST_Files=%FAST_Files%  "%FAST_LOC2%\FAST_Prog.f90"



:ivf
REM ----------------------------------------------------------------------------
REM ---------------- COMPILE WITH INTEL VISUAL FORTRAN -------------------------
REM ----------------------------------------------------------------------------

REM                           compile

ECHO.
ECHO Compiling FAST, AeroDyn, and NWTC_Library routines to create %ROOT_NAME%.exe:

ifort %COMPOPTS% %NWTC_Files% %Wind_Files% %AeroDyn_Files% %FAST_Files% %LINKOPTS% /out:%ROOT_NAME%.exe


I hope this is helpful.

Kind Regards,

Mark

Ramzan.Luhur
Posts: 10
Joined: Tue Jan 08, 2013 3:30 am
Organization: University of Oldenburg
Location: Germany

Re: Instructions for Compiling FAST

Postby Ramzan.Luhur » Thu Jan 10, 2013 3:19 am

Dear Mark,
Thanks for help and suggestions. I tried as per your suggestions but still getting same series of errors.

Screen shot 2013-01-09 at 15.47.50.png
Screen shot 2013-01-09 at 15.47.50.png (59.56 KiB) Viewed 5564 times


My temporaryoutput.txt file looks like:

Intel(R) Fortran Compiler for applications running on IA-32, Version 10.0.025
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.
Compiling FAST, AeroDyn, and NWTC_Library routines to create FAST_DLL.exe:


And my Compile_FAST.bat file looks like:


@ECHO OFF
REM The calling syntax for this script is
REM Compile_FAST [dll]
REM
REM Add the "dll" to the command line to compile FAST for the Bladed-style dll.
REM ----------------------------------------------------------------------------
REM set compiler internal variables
REM ----------------------------------------------------------------------------
REM You can run this bat file from the IVF compiler's command prompt (and not
REM do anything in this section). If you choose not to run from the IVF command
REM prompt, you must call the compiler's script to set internal variables.
REM TIP: Right click on the IVF Compiler's Command Prompt shortcut, click
REM properties, and copy the target (without cmd.exe and/or its switches) here:

REM CALL "C:\Program Files (x86)\Intel\ComposerXE-2011\bin\ipsxe-comp-vars.bat" ia32 vs2008

CALL "C:\Program Files\Intel\Compiler\Fortran\10.0.025\IA32\Bin\ifortvars.bat" ia32

REM IF "%INTEL_SHARED%"=="" CALL "C:\Program Files\Intel\Compiler\Fortran\10.0.025\IA32\Bin\ifortvars.bat"

REM ----------------------------------------------------------------------------
REM -------------------- LOCAL VARIABLES ---------------------------------------
REM ----------------------------------------------------------------------------


SET ROOT_NAME=FAST

SET COMPOPTS=/threads/O2/inline:speed/traceback/Qzero/Qsave/real_size:32/assume:byterecl

rem SET LINKOPTS=/link /stack:64000000
SET LINKOPTS=/link


REM ----------------------------------------------------------------------------
REM ------------------------- LOCAL PATHS --------------------------------------
REM ----------------------------------------------------------------------------
REM -- USERS WILL NEED TO EDIT THESE PATHS TO POINT TO FOLDERS ON THEIR LOCAL --
REM ------- NOTE: do not use quotation marks around the path names!!!! ---------
REM ----------------------------------------------------------------------------
REM NWTC_Lib_Loc is the location of the NWTC subroutine library files
REM AeroDyn_Loc is the location of the AeroDyn source files
REM Wind_Loc is the location of the AeroDyn wind inflow source files
REM FAST_LOC is the location of the FAST source files
REM ----------------------------------------------------------------------------

SET NWTC_Lib_Loc=C:\Documents and Settings\Dr Ramzan\Desktop\NTWC_Library\Source
SET Wind_Loc=C:\Documents and Settings\Dr Ramzan\Desktop\AeroDyn\Source\InflowWind\Source
SET AeroDyn_Loc=C:\Documents and Settings\Dr Ramzan\Desktop\AeroDyn\Source
SET FAST_Loc=C:\Documents and Settings\Dr Ramzan\Desktop\FAST\Source


REM SET NWTC_Lib_Loc=C:\Documents and Settings\Dr Ramzan\Desktop\NTWC_Library\Source
REM SET AeroDyn_Loc=D:\DATA\DesignCodes\simulators\AeroDyn\SVNdirectory\trunk\Source
REM SET Wind_Loc=D:\DATA\DesignCodes\simulators\AeroDyn\SVNdirectory\trunk\Source\InflowWind\Source
REM SET FAST_Loc=D:\DATA\DesignCodes\simulators\FAST\SVNdirectory\trunk\Source


REM ----------------------------------------------------------------------------
REM -------------------- LIST OF ALL SOURCE FILES ------------------------------
REM ----------------------------------------------------------------------------

SET NWTC_Files=
SET NWTC_Files=%NWTC_Files% "%NWTC_Lib_Loc%\SingPrec.f90"
SET NWTC_Files=%NWTC_Files% "%NWTC_Lib_Loc%\SysIVF.f90"
SET NWTC_Files=%NWTC_Files% "%NWTC_Lib_Loc%\NWTC_IO.f90"
SET NWTC_Files=%NWTC_Files% "%NWTC_Lib_Loc%\NWTC_Num.f90"
SET NWTC_Files=%NWTC_Files% "%NWTC_Lib_Loc%\NWTC_Aero.f90"
SET NWTC_Files=%NWTC_Files% "%NWTC_Lib_Loc%\NWTC_Library.f90"

SET Wind_Files=
SET Wind_Files=%Wind_Files% "%Wind_Loc%\SharedInflowDefs.f90"
SET Wind_Files=%Wind_Files% "%Wind_Loc%\HHWind.f90"
SET Wind_Files=%Wind_Files% "%Wind_Loc%\FFWind.f90"
SET Wind_Files=%Wind_Files% "%Wind_Loc%\HAWCWind.f90"
SET Wind_Files=%Wind_Files% "%Wind_Loc%\FDWind.f90"
SET Wind_Files=%Wind_Files% "%Wind_Loc%\CTWind.f90"
SET Wind_Files=%Wind_Files% "%Wind_Loc%\UserWind.f90"
SET Wind_Files=%Wind_Files% "%Wind_Loc%\InflowWindMod.f90"


SET AeroDyn_Files=
SET AeroDyn_Files=%AeroDyn_Files% "%AeroDyn_Loc%\SharedTypes.f90"
SET AeroDyn_Files=%AeroDyn_Files% "%AeroDyn_Loc%\AeroMods.f90"
SET AeroDyn_Files=%AeroDyn_Files% "%AeroDyn_Loc%\GenSubs.f90"
SET AeroDyn_Files=%AeroDyn_Files% "%AeroDyn_Loc%\AeroSubs.f90"
SET AeroDyn_Files=%AeroDyn_Files% "%AeroDyn_Loc%\AeroDyn.f90"


SET FAST_Files=
SET FAST_Files=%FAST_Files% "%FAST_Loc%\fftpack.f"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\FFTMod.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\HydroCalc.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\FAST_Mods.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\Noise.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\FAST_IO.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\FAST.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\FAST_Lin.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\FAST2ADAMS.f90"

IF /I "%1"=="DLL" GOTO dllFiles

SET FAST_Files=%FAST_Files% "%FAST_Loc%\PitchCntrl_ACH.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\UserSubs.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\UserVSCont_KP.f90"

GOTO endFASTfiles

:dllFiles
SET FAST_Files=%FAST_Files% "%FAST_Loc%\BladedDLLInterface.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\UserSubs_forBladedDLL.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\UserVSCont_KP_forBladedDLL.f90"

REM NOTE: UserSubs_forBladedDLL.f90 is a copy of UserSubs.f90 with SUBROUTINES UserHSSBr() and UserYawCont() commented out
REM UserVSCont_KP_forBladedDLL.f90 is a copy of UserVSCont_KP.f90 with SUBROUTINE UserVSCont() commented out

SET ROOT_NAME=%ROOT_NAME%_DLL

:endFASTfiles
SET FAST_Files=%FAST_Files% "%FAST_Loc%\AeroCalc.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\SetVersion.f90"
SET FAST_Files=%FAST_Files% "%FAST_Loc%\FAST_Prog.f90"


:ivf

REM ----------------------------------------------------------------------------
REM ---------------- COMPILE WITH INTEL VISUAL FORTRAN -------------------------
REM ----------------------------------------------------------------------------

REM compile


ECHO.
ECHO Compiling FAST, AeroDyn, and NWTC_Library routines to create %ROOT_NAME%.exe:

ifort %COMPOPTS% %NWTC_Files% %Wind_Files% %AeroDyn_Files% %FAST_Files% %LINKOPTS% /out:%ROOT_NAME%.exe


:end

REM ----------------------------------------------------------------------------
REM ------------------------- CLEAR MEMORY -------------------------------------
REM ------------- and delete all .mod and .obj files ---------------------------
REM -------
---------------------------------------------------------------------
ECHO.

DEL *.mod
DEL *.obj

SET ROOT_NAME=
SET COPTS=

SET NWTC_Files=
SET Wind_Files=
SET AeroDyn_Files=
SET FAST_Files=
SET A2AD_Files=
SET Fixed_Files=

SET NWTC_Lib_Loc=
SET Wind_Loc=
SET AeroDyn_Loc=
SET A2AD_Loc=
SET FAST_Loc=

SET COMPOPTS=
SET LINKOPTS=



I would highly appreciate for any guidance regarding this.

Best regards,
Ramzan
Last edited by Ramzan.Luhur on Thu Jan 10, 2013 4:00 am, edited 1 time in total.

Mark.Spring
Posts: 45
Joined: Fri Aug 03, 2012 3:45 am
Organization: Lloyd's Register Group
Location: United Kingdom
Location: Bristol, United Kingdom

Re: Instructions for Compiling FAST

Postby Mark.Spring » Thu Jan 10, 2013 3:44 am

Dear Ramzan,

Your output file does not contain all the output. I think this is the case because it only contains a few lines and also you included a screen-shot of the command window (black with white text). What did you type at the command line?

It ought to look something like this.

> compile_fast > TemporaryOutputs.txt

Then all the output should be in the text file and the command window should have nothing output to it. The DOS command window will wait a few seconds and then return control to the prompt (once the batch process has crashed).

Please can you try again and send me the text file with the outputs. The clue should be near the top, when the first error was reported by the compiler.

Kind Regards,

Mark

Ramzan.Luhur
Posts: 10
Joined: Tue Jan 08, 2013 3:30 am
Organization: University of Oldenburg
Location: Germany

Re: Instructions for Compiling FAST

Postby Ramzan.Luhur » Thu Jan 10, 2013 4:32 am

Dear Mark,

Thanks for the swift reply. I am using command like you suggested:

>Compile_FAST DLL>TemporaryOutputs.txt
also
>Compile_FAST>TemporaryOutputs.txt

Once again I repeated right now but still same three lines in text file and same series of errors in commmad window (in black and white).

Best regards,
Ramzan

Mark.Spring
Posts: 45
Joined: Fri Aug 03, 2012 3:45 am
Organization: Lloyd's Register Group
Location: United Kingdom
Location: Bristol, United Kingdom

Re: Instructions for Compiling FAST

Postby Mark.Spring » Thu Jan 10, 2013 4:51 am

Dear Ramzan,

Could you try putting spaces around the right arrow > when you type at the prompt?

You could also try changing the line in the DOS batch file which calls the compiler so that it redirects all output to the text file.

ifort %COMPOPTS% %NWTC_Files% %Wind_Files% %AeroDyn_Files% %FAST_Files% %LINKOPTS% /out:%ROOT_NAME%.exe > TempOuts.TXT

Kind Regards,

Mark

Ramzan.Luhur
Posts: 10
Joined: Tue Jan 08, 2013 3:30 am
Organization: University of Oldenburg
Location: Germany

Re: Instructions for Compiling FAST

Postby Ramzan.Luhur » Thu Jan 10, 2013 5:24 am

Dear Mark,

1) Same results by playing with spaces around > prompt
2) Same series of errors with empty TempOuts.txt file using
ifort %COMPOPTS% %NWTC_Files% %Wind_Files% %AeroDyn_Files% %FAST_Files% %LINKOPTS% /out:%ROOT_NAME%.exe > TempOuts.txt

Best Regards,
Ramzan

Mark.Spring
Posts: 45
Joined: Fri Aug 03, 2012 3:45 am
Organization: Lloyd's Register Group
Location: United Kingdom
Location: Bristol, United Kingdom

Re: Instructions for Compiling FAST

Postby Mark.Spring » Thu Jan 10, 2013 5:40 am

I have just found a setting for the DOS command window which controls "screen buffer size". Could you try to increase the "height" and see if the window can be made big enough for all the output?

1. Right click with the mouse on the blue ribbon at the top of the DOS command window
2. select properties or defaults
3. select "layouts" tab
4. adjust the height parameter in the screen buffer size group (mine was set to 300, how about asking for 3000 or 10000 or more?)

Kind Regards,

Mark

Mark.Spring
Posts: 45
Joined: Fri Aug 03, 2012 3:45 am
Organization: Lloyd's Register Group
Location: United Kingdom
Location: Bristol, United Kingdom

Re: Instructions for Compiling FAST

Postby Mark.Spring » Thu Jan 10, 2013 5:52 am

Dear Ramzan,

I have just checked and you are right, if you try to redirect the output from the DOS batch file, you only get the first few lines and then the rest are sent to the DOS command windows as per usual. However, if I change the call to ifort within the DOS batch file, the output lines are all redirected to the temporary text file. An example is attached (successful compile).

Kind Regards,

Mark

TempOuts.txt
Temporary outputs from ifort
(1.06 KiB) Downloaded 579 times

Mark.Spring
Posts: 45
Joined: Fri Aug 03, 2012 3:45 am
Organization: Lloyd's Register Group
Location: United Kingdom
Location: Bristol, United Kingdom

Re: Instructions for Compiling FAST

Postby Mark.Spring » Thu Jan 10, 2013 5:57 am

you could also try

1. editing the DOS batch file and deleting all the lines below (and including) the call to ifort.
2. submit the call to ifort directly from the DOS command prompt
(a) you would copy the whole line (as below) from a text file containing the DOS batch file (or copy from this posting)
(b) make sure the "focus" of the desktop is on the DOS command window (try hitting return a few times and make sure the cursor moves down the window)
(c) paste the contents of the clipboard into the DOS command window (right click on the blue ribbon, select "edit" and "paste")

ifort %COMPOPTS% %NWTC_Files% %Wind_Files% %AeroDyn_Files% %FAST_Files% %LINKOPTS% /out:%ROOT_NAME%.exe > TempOuts.TXT

Kind Regards,

Mark

Ramzan.Luhur
Posts: 10
Joined: Tue Jan 08, 2013 3:30 am
Organization: University of Oldenburg
Location: Germany

Re: Instructions for Compiling FAST

Postby Ramzan.Luhur » Thu Jan 10, 2013 6:18 am

Dear Mark,
Here are the starting lines, the hight setting worked. I guess the problem is in red lines:


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Ramzan\Desktop\FAST>cd FAST
The system cannot find the path specified.

C:\Documents and Settings\Ramzan\Desktop\FAST>Compile_FAST

Intel(R) Fortran Compiler for applications running on IA-32, Version 10.0.025
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.



Compiling FAST, AeroDyn, and NWTC_Library routines to create FAST.exe:
Intel(R) Visual Fortran Compiler for applications running on IA-32, Version 10.0
Build 20070426 Package ID: W_FC_P_10.0.025
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.
ifort: command line warning #10006: ignoring unknown option '/threads/O2/inline:
speed/traceback/Qzero/Qsave/real_size:32/assume:byterecl'


C:\Documents and Settings\Ramzan\Desktop\NTWC_Library\Source\SysIVF.f90(552)
: Error: Not a valid value for the char-expr in this connect-spec. ['STREAM']
OPEN( Un, FILE=TRIM( OutFile ), STATUS='UNKNOWN', FORM='UNFORMATTED' , ACCESS
='STREAM', IOSTAT=IOS )
--------------------------------------------------------------------------------
-^
C:\Documents and Settings\Ramzan\Desktop\NTWC_Library\Source\SysIVF.f90(594)
: Error: Not a valid value for the char-expr in this connect-spec. ['STREAM']
OPEN( Un, FILE=TRIM( InFile ), STATUS='OLD', FORM='UNFORMATTED', ACCESS='STRE
AM', IOSTAT=IOS, ACTION='READ' )
---------------------------------------------------------------------------^
compilation aborted for C:\Documents and Settings\Ramzan\Desktop\NTWC_Library
\Source\SysIVF.f90 (code 1)
C:\Documents and Settings\Ramzan\Desktop\NTWC_Library\Source\NWTC_IO.f90(88)
: Error: Error in opening the compiled module file. Check INCLUDE paths. [SYS
SUBS]
USE SysSubs
xt ) 'DEACTIVATE/MOTION, ID = '//TRIM(Int2LStr( 10000*K
))
---------------------------------------------------------------^



Best Regards,
Ramzan


Return to “Computer-Aided Engineering Software Tools”

Who is online

Users browsing this forum: No registered users and 1 guest