Compile PIO with Netcdf-4

671 views
Skip to first unread message

huangw...@gmail.com

unread,
Apr 15, 2016, 7:21:52 PM4/15/16
to MPAS-Atmosphere Help
Hi, there,

How do we configure PIO 1.9.19.

PIO 1.7.1 there is a configure file.

The newest PIO use cmake.

But now idea how to compile PIO 1.9.19.

I am trying to write MPAS output with NetCDF-4.

Thanks,

Wei

----------------

2) If NetCDF-4 I/O is needed or desirable, try PIO 1.9.19 • Requires recent versions of ‘cmake’, plus standard ‘make’ • Supports NetCDF-3, NetCDF-4 (in parallel via PHDF5), and Parallel-NetCDF I/O • Download: https://github.com/PARALLELIO/ParallelIO/releases/tag/pio1_9_19 PIO versions 2.x are not supported in MPAS v4.0 and earlier! • The 2.x versions introduce changes to APIs that break compatibility with current MPAS release • MPAS may be compatible with PIO 2.x (but no longer 1.x ?) in MPAS v5.0

MPAS-Atmosphere Help

unread,
Apr 15, 2016, 7:34:48 PM4/15/16
to MPAS-Atmosphere Help, huangw...@gmail.com
Hi, Wei.

Assuming you've already installed Parallel-NetCDF and NetCDF-4, here are the steps that you can try to install PIO 1.9.23:

wget https://github.com/NCAR/ParallelIO/archive/pio1_9_23.tar.gz

tar xzvf pio1_9_23.tar.gz

cd ParallelIO-pio1_9_23

cd pio

export PIOSRC=`pwd`

git clone https://github.com/PARALLELIO/genf90.git bin

git clone https://github.com/CESM-Development/CMake_Fortran_utils.git cmake

cd ../..

export FC=mpif90

export CC=mpicc

mkdir pio-1.9.23

cd pio-1.9.23

cmake -DNETCDF_C_DIR=$NETCDF -DNETCDF_Fortran_DIR=$NETCDF -DPNETCDF_DIR=$PNETCDF -DCMAKE_VERBOSE_MAKEFILE=1 $PIOSRC

make

export PIO=`pwd`


Of course, you can change FC and CC to match the MPI Fortran and C compiler wrappers on your system, and you may also need to set the environment variables NETCDF and PNETCDF as well.


Cheers,
Michael

huangw...@gmail.com

unread,
Apr 15, 2016, 10:32:38 PM4/15/16
to MPAS-Atmosphere Help
I followed Michael's instruction, and built PIO 1.9.23 successfully on my system.

Wei

Reply all
Reply to author
Forward
0 new messages