zhaol04@gmail_com
New Member
Dear all,
I am now running a multi-instances case with cesm1.1.1. By default it uses "netcdf" for history/restart file input/output, which is relative slow. Thus I wish to enable "pnetcdf" for parallel I/O. I searched online and find following instructions (http://www.cesm.ucar.edu/models/cesm1.0/cesm/cesm_doc_1_0_4/x3036.html). But still not familiar with these settings, could someone help me on this?
Many thanks!
"
CESM1 uses the serial netcdf implementation of PIO and pnetcdf is turned off in PIO by default. To use pnetcdf, a pnetcdf library (like netcdf) must be available on the local machine and PIO pnetcdf support must be turned on when PIO is built. This is done as follows:
1. Locate the local copy of pnetcdf. It must be version 1.1.1 or newer library
2. Set LIB_PNETCDF in the Macros file to the directory of the pnetcdf library (eg. /contrib/pnetcdf1.1.1/lib).
3. Add PNETCDF_PIO to the pio CONFIG_ARGS variable in the Macros file, and set it to the directory of the top level of a standard pnetcdf installation (eg /contrib/pnetcdf1.1.1).
4. Run the clean_build script if the model has already been built.
5. Run the build script to rebuilt pio and the full CESM1 system.
6. Change IO namelist settings to pnetcdf and set appropriate IO tasks and layout.
The PNETCDF_PIO variable tells pio to build with pnetcdf support turned on. The LIB_PNETCDF variable tells the CESM Makefile to link in the pnetcdf library at the link step of the CESM1 build.
"
I am now running a multi-instances case with cesm1.1.1. By default it uses "netcdf" for history/restart file input/output, which is relative slow. Thus I wish to enable "pnetcdf" for parallel I/O. I searched online and find following instructions (http://www.cesm.ucar.edu/models/cesm1.0/cesm/cesm_doc_1_0_4/x3036.html). But still not familiar with these settings, could someone help me on this?
Many thanks!
"
CESM1 uses the serial netcdf implementation of PIO and pnetcdf is turned off in PIO by default. To use pnetcdf, a pnetcdf library (like netcdf) must be available on the local machine and PIO pnetcdf support must be turned on when PIO is built. This is done as follows:
1. Locate the local copy of pnetcdf. It must be version 1.1.1 or newer library
2. Set LIB_PNETCDF in the Macros file to the directory of the pnetcdf library (eg. /contrib/pnetcdf1.1.1/lib).
3. Add PNETCDF_PIO to the pio CONFIG_ARGS variable in the Macros file, and set it to the directory of the top level of a standard pnetcdf installation (eg /contrib/pnetcdf1.1.1).
4. Run the clean_build script if the model has already been built.
5. Run the build script to rebuilt pio and the full CESM1 system.
6. Change IO namelist settings to pnetcdf and set appropriate IO tasks and layout.
The PNETCDF_PIO variable tells pio to build with pnetcdf support turned on. The LIB_PNETCDF variable tells the CESM Makefile to link in the pnetcdf library at the link step of the CESM1 build.
"