My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
FDS_Compilation  
Compiling FDS
Featured
Updated Today (12 hours ago) by gfor...@gmail.com

Preliminaries

This page describes how to build FDS using command line tools that come with the Intel Fortran compiler.

  • Install (or update to the most recent revision) the FDS-Smokeview SVN repository (See this Wiki for more details.)
  • Install the Intel Fortran compiler.
  • Define the IFORT_COMPILER environment variable to point to where your compiler resides. For example for the bash shell place the following line:
  • export IFORT_COMPILER=/opt/intel/composerxe

in your .bash_profile start up file. For the tcsh shell, place the following line:

setenv IFORT_COMPILER /opt/intel/composerxe

in your .tcsh start up file. (Of course put in your own compiler location)

Building FDS

There is a general purpose makefile for FDS compilation in the FDS/SVN repository directory called FDS_Compilation. To compile FDS for your particular OS, do the following:

  • Open a command shell and cd to the FDS_Compilation\intel_win_32 directory within the FDS-Smokeview repository. If you are working under linux or OSX, 32 or 64 bit, choose the appropriate folder.
  • Type make_fds.bat or make_fds.sh, depending on your OS.

Alternatively on a Windows PC you may

  • Open the directory FDS_Compilation\intel_win_32 directory within the FDS-Smokeview repository using the Windows Explorer interface
  • Double-click on the make_fds.bat batch file

If you get stuck, take a look at the make_fds script to better understand what is actually happening. Chances are that there a different path name or compiler version number installed on your machine.

Profiling FDS

Steps to determine where FDS spends its time executing.

  1. build FDS: cd into FDS_Compilation/intel_linux_32_profile and type:
  2. ./make_fds.csh
  3. run FDS:
  4. fds5_intel_32_profile casename.fds
  5. generate profiling results:
  6. gprof fds5_intel_32_profile > profile.out

Notes:

  • the intel_linux_32_profile makefile entry is essentially the same as intel_linux_32, ie it is not a debug version. The-O3 option was changed to -O2 and the -p profiling option was added.

That is it. The profiling results may now be viewed in the file profile.out

Powered by Google Project Hosting