Installing CFL3Dv6


CONTENTS

The "executive summary" summarizes the basic installation procedure and may be all you really want to know



INSTALLATION

To install CFL3v6 on a particular machine, you must have the following file:

Make sure that:

STEP 1)

Type:

gunzip cfl3dv6.tar.DATE.gz
tar -xvf cfl3dv6.tar.DATE

You should end up with the following directory structure:


                            cfl3dv6 directory structure:

                                   CFL3DV6
                                      |
                             -------------------
                             |        |        |
                           SOURCE   BUILD   HEADER
                             |
      --------------------------------------------
      |       |         |      |         |       |
    CFL3D  PRECFL3D  RONNIE  MAGGIE  SPLITTER  TOOLS 
      |
   -------
   |     |
  DIST  LIBS


                          build directory structure:

                                    BUILD
                                      |
        ----------------------------------------------------------------
        |             |        |      |      |    |     |      |       |
       CFL        CFLCMPLX  PRECFL  PRERON  RON  MAG  TOOLS  SPLIT SPLITCMPLX
        |             |        |      |      |    |     |      |       |
    ---------    ----------    |      |      |    |     |      |       |
    |   |   |    |    |   |    |      |      |    |     |      |       |
  LIBS SEQ MPI  LIBS SEQ MPI  SEQ    SEQ    SEQ  SEQ   SEQ    SEQ     SEQ

The cfl3dv6 directory will reside one directory level below the one in which you executed the packitup script. The source directory and its associated subdirectories hold the source code for CFL3D and its supporting codes. The build directory is used to create execuatbles from the code in the source directories. Some pieces of source code get copied into the build directories, while other pieces of source code get soft-linked to the build directories. Thus, source code appears visible in the build directories; however, if the user desires to make any permanent changes to the source code, the changes need to be made an the source code directory level, not the build directory level.

The cfl3dv6 directory will have a README file which contains most of the installation information included here, though you may want to check for additional or late-breaking information. Next, cd to the build directory. Make sure the script file Install has execute permission.

STEP 2)

Type:

Install [options]

Where [options] may be one or more of the following:

-no_opt
create executables with little optimization but fast compilation

-single
create single precision executables

-noredirect
disallow redirected input file; often needed for SP2 and for Linux with MPI (generally recommended for MPI - see note below)

-mpichdir=dir1
use MPICH on a workstation cluster; dir1 is the directory where mpich is located - not used on MPP machines

-purify
fortran memory checker: need 3rd party license for this

-fastio
fast I/O option when using MPI: creates cfl3d.out.reass file (in place of standard output file)... this option may help speed up some very large MPI runs by writing output to local files then reassembling at the end, rather than sending the output back to the master for writing-on-the-fly (acknowledgment: Robert Bergeron, NASA Ames)

-cgnsdir=dir2
allow the use of CGNS files instead of the standard grid/restart files; dir2 is the directory where the CGNS libraries are located; the directory should contain the file cgnslib_f.h as well as the subdirectory appropriate to the system you are running on (for example subdirectory LINUX/) with the library file libcgns.a in it

-linux_compiler_flags=flag
sets up to compile using special compiler flags for use on Linux operating systems only; flag is currently Intel, PG, Lahey, or Alpha (Intel is currently the default)

-help
print out the Install options

Note: the directory paths for either the mpichdir or cgnsdir options should be either absolute paths or paths relative to the installation directory; the use of ~ to denote a home directory is not allowed.

Standard installation on all MPPs (except for the SP2), Cray C90, and stand-alone workstations would simply be:

Install

This will create a makefile set up for optimized compilation, double precision, using native MPI libraries when needed. Note: the install script assumes some very basic locations for the MPI directories - you may need to alter these for your own particular system.

Standard installation on a workstation cluster would be:

Install -mpichdir=/some_appropriate_path/mpich

This will create a makefile set up for optimzed compilation, double precision, using the MPI routines contained in the MPICH libraries when needed.

The Install script works by querying the current machine for its' achitecture, then sets up the various compilation flags based on the architecture, and creates a file called makefile by edititing the Makefile.in file and inserting the proper compiler flags. This eliminates the need for multiple makefiles that are typical of other versions of CFL3D.

At this point CFL3Dv6 has been installed on your machine and you should have a makefile suited to the particular machine on which you are running. At the end of the install script, several messages are written out, indicating which platform it thinks you are using, where it assumes the mpi directories are, etc. The script will also suggest you type make to see a description of the various make options. The next step is to build the executables you want Building Executables.

Return To Top


SOME SUGGESTED ALIASES

Once you have CFL3Dv6 installed on your machine, you may want to make an alias to the build directory, since compilation of the various executables will always be done in that directory. If you tend to edit the source code frequently, you may want to make a similar alias to the source directory. Such aliases will relieve you from having to type or remember the whole path. Some examples include:

alias build "cd ~myhome/cfl3dv6/build"
alias code "cd ~myhome/cfl3dv6/source/cfl3d/dist"

Return To Top


EXECUTIVE SUMMARY

To install the CFL3Dv6 system:

gunzip cfl3dv6.tar.DATE.gz

tar -xvf cfl3dv6.tar.DATE

cd cfl3dv6/build

Install [options]

Return To Top


NEXT, SEE:

Building Executables

Return To Top


Page Curator and NASA Responsible Official: Christopher L. Rumsey

Last Updated: February 20, 2008

Privacy Statement

LMS Feedback Form