Introduction
This guide is intended to help Intel® C++ Compiler and Intel® Fortran Compiler customers build the NCAR Graphics* library. NCAR Graphics is an open source library for drawing maps, graphs, and plots. More information about NCAR Graphics can be found at http://ngwww.ucar.edu
Version information
NCAR Graphics 6.1.0
Intel® C++ Compiler for Linux* Update 1
Intel® Fortran Compiler for Linux* Update 1
Obtaining the Source Code
The source code for NCAR Graphics can be found at: http://www.ncl.ucar.edu/Download/.
Obtaining the Latest Version of the Intel® compilers
Licensed users of the Intel® compilers may download the most recent versions of the compiler from the Intel® Software Development Products Registration Center. Evaluation versions of the Intel® compilers may be found at the Intel® Software Evaluation Center.
Prerequisites
Additional software packages may be required when building NCAR Graphics. Please check the NCAR Graphics website for more information.
Configuration and Setup Information
In order to use this guide, you will need to have the Intel® C++ Compiler for Linux and the Intel® Fortran Compiler for Linux installed on your build system. After installing the compilers, you will need to execute one of the following commands below, depending on your architecture, to set the environment variables.
source <compiler_install_dir>/bin/compilervars.sh ia32source <compiler_install_dir>/bin/compilervars.sh intel64
Source Code Changes
None required.
Building NCAR Graphics*
To build NCAR Graphics, first choose a directory where it will be installed. If that directory does not exist, you will need to create it. Then execute the following commands from the directory where decompressed the source code. Replace <install_dir> with the directory where you would like to install NCAR Graphics. The configuration script is interactive. It will ask questions about where and how to install NCAR Graphics. After the configuration script is finished, verify that the configuration options are correct and then build the software.
mkdir <install_dir>cd ncarg-6.1.0cp config/LINUX.64.INTEL config/LINUX$./Configuremake Infomake Everything
When the build has completed successfully, you should see a message that says:
Finished making and Installing <Everything>.
Note:If you would like to include HDF support, the following document about building HDF5 with the Intel compilers may be useful, Building HDF5* with Intel® compilers.
Running NCAR graphics
Before using NCAR Graphics, you will need to set the NCAR_ROOT environment variable to the installation directory (use the full absolute path) and add the executable files directory to the PATH variable.
export NCARG_ROOT=<install_dir>export PATH=$NCARG_ROOT/bin:$PATHexport MANPATH=$NCARG_ROOT/man:$MANPATH
The following commands will run an example program that uses NCAR Graphics:
ncargex cpex08ctrans -d X11 cpex08.ncgm
The first of the two commands above compiles and executes the example, which writes its results to a graphics metafile. The second command reads that metafile and displays it in an X11 window. You should see a blank window. If you click in the window, you will see the first frame, which is a contour plot overlaid on a world map. Clicking again will display the second (last) frame, which looks similar to the first one. Clicking a third time will close the window.
Verifying Correctness
NCAR Graphics has no built-in test for correctness, but you may verify that it is working correctly by running one of the example programs described in the section above.
Known Issues and Limitations
At this time, there are no known issues with using the Intel compilers to build NCAR Graphics. Please see the NCAR Graphics website for all known issues and limitations.


Comments
Hello,
Could someone explain what the statement above means:
cp config/LINUX.INTEL config/LINUX$ ./Configure
It does not make too much sense. The original idea is to somehow tell the Configure what architecture
one is using but unfortunately the statement above is not quite helpful.
Has someone figure out how to install NCAR graphics and the NCL as well with intel compilers?
Thanks
This is what i did for install ncl_ncar graphics on xeon quad core system running ubuntu9.04 server:
ncl_ncarg-5.1.1.Linux_x86_64_gcc432.tar.gz
cd /usr/local/
# Do not forget to source your intel compilers
tar -zxvf ncl_ncarg-'version'
nano ~/.bashrc
#ADDED
export NCARG_ROOT=/usr/local
export PATH=/usr/local/bin:$PATH
source ~/.bashrc
apt-get install csh # OPTIONAL
# These extra programs are required
apt-get install libx11-dev libxaw7 libxaw7-dev libxext-dev libxmu-dev libxt-dev libxau-dev libxcb1-dev libxdmcp-dev libxmu-headers libxmu6 libxpm-dev libxpm4 x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xtrans-dev libice-dev libpthread-stubs0 libpthread-stubs0-dev libsm-dev
# TEST NCL
ng4ex gsun01n
ncl gsun01n.ncl
# Result: Finished running 'ncl < gsun01n'...
ncargex cpex08
# Result: Metafile file is named cpex08.ncgm.
# Display file
ctrans -d X11 cpex08.ncgm
$ cd ncarg-4.4.2
$ cp config/LINUX.INTEL config/LINUX$ ./Configure
It is suppose to be
$ cd ncarg-4.4.2
$ cp config/LINUX.INTEL config/LINUX
$ ./Configure