Absoft User Forum

Support => Building and Using Additional Software & Libraries => Topic started by: forumadmin on March 14, 2014, 10:54:59 AM

Title: Building NCAR Graphics on Linux and OS X
Post by: forumadmin on March 14, 2014, 10:54:59 AM
This post provides information on building NCAR Graphics on Linux and OS X with Absoft Pro Fortran 2012 (v11.5) and later.

NCAR Graphics is a Fortran and C based software package for scientific visualization. For more information, see http://ngwww.ucar.edu/index.html (http://ngwww.ucar.edu/index.html)

DOWNLOADING THE REQUIRED PACKAGES

The NCAR Graphics package is available as part of the NCAR COMMAND LANGUAGE (NCL) package.  These instructions are based on NCL 6.1.2. Instructions for downloading NCL are available here http://www.ncl.ucar.edu/Download (http://www.ncl.ucar.edu/Download).

Absoft has created configuration files for building NCAR Graphics with Absoft Pro Fortran 2012 and later. These files are available here http://www.absoft.com/electronicdelivery/library/absoft_configs_ncl_ncarg-6.1.2.tar.gz (http://www.absoft.com/electronicdelivery/library/absoft_configs_ncl_ncarg-6.1.2.tar.gz).

At the time this post was created, two minor source modifications are required to build NCAR Graphics on OS X Mavericks. These modified source files are available here  http://www.absoft.com/electronicdelivery/library/absoft_osx_mavericks_ncl_ncarg-6.1.2.tar.gz (http://www.absoft.com/electronicdelivery/library/absoft_osx_mavericks_ncl_ncarg-6.1.2.tar.gz)

CREATING THE NCL SOURCE TREE

The commands below assume that the NCL source package and the additional Absoft packages are in the current working directory.

Extract the NCL source package with following command:

     tar -xzvf ncl_ncarg-6.1.2.tar.gz

This will create a directory named ncl_ncarg-6.1.2 in the current working directory.  This new directory needs to become the current working directory before extracting the Absoft configuration files:

    cd ncl_ncarg-6.1.2
    tar -xzvf ../absoft_configs_ncl_ncarg-6.1.2.tar.gz

If you are building on OS X Mavericks, you will need to install the OS X Mavericks modified source files:

    tar -xzvf ../absoft_osx_mavericks_ncl_ncarg-6.1.2.tar.gz


SELECTING THE APPROPRIATE CONFIGURATION FILE

Before running the NCAR Graphics configure command, select the Absoft specific configuration file for the system you are using and copy it to the appropriate generic name:

Linux 64 bit systems:

    cp config/LINUX.64.ABSOFT  config/LINUX

Linux 32 bit systems:

    cp config/LINUX.ABSOFT  config/LINUX

OS X 64 bit systems:

    cp config/Darwin_Intel.64.absoft  config/Darwin_Intel

OS X 32 bit systems:

    cp config/Darwin_Intel.absoft config/Darwin_Intel

RUNNING THE CONFIGURE COMMAND

Start the NCAR Graphics configuration process by entering:

    ./Configure

FURTHER INFORMATION ON BUILDING NCAR GRAPHICS

The full documentation for building NCAR Graphics and the NCAR Command Language is available here http://www.ncl.ucar.edu/Download/build_from_src.shtml (http://www.ncl.ucar.edu/Download/build_from_src.shtml).