Opened 15 years ago

Closed 15 years ago

#249 closed upgrade (Done)

Updated plotting package make configuration files

Reported by: arango Owned by: arango
Priority: major Milestone: Plotting Package
Component: Plotting Version: 3.2
Keywords: Cc:

Description

Changed the plotting package make configuration files (plot/Compilers/*.mk) to allow compiling with the NetCDF4/HDF5 library. Notice that the NetCDF-4/HDF5 libraries are backwards compatible with the NetCDF classic format file. Therefore, when compiled with the NetCDF-4/HDF5 libraries the ROMS plotting package can plot both NetCDF format files.

There are serial and parallel NetCDF-4 and HDF5 libraries. The parallel libraries also requires the MPI library. The plotting package is serial but it can be also compiled with the parallel libraries. In order to allow compiling with both serial and parallel libraries, the NCAR's library loader script ncargf90 is not longer used in the make configuration files. The required plotting libraries are specified explicitly as:

             LIBS := -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c
             LIBS += -L/usr/X11R6/lib64 -lX11

To compile with the NetCDF-4/HDF5, activate the following macro in the makefile:

  USE_NETCDF4 ?= on

If compiling with a parallel NetCDF4 and HDF5, activate the following macro in the makefile to include the MPI library:

ifdef USE_NETCDF4
   USE_MPIF90 ?=
endif

Recall, that all the make configuration files are templates and the user needs to fine tune the path for all these libraries.

This is working very nicely for me. I was able to plot both NetCDF-4 and classical NetCDF-3 with the same executable.

Change History (1)

comment:1 by arango, 15 years ago

Resolution: Done
Status: newclosed
Note: See TracTickets for help on using tickets.