Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Issues with PIO Makefile in porting CESM1.2.1

mailes

Maile
New Member
Hello! I'm currently trying to port CESM1.2.1 to a university machine, and I'm running into issues in the case building step.

So far, I've been able to successfully create a case (with ./create_newcase -case test1 -res f45_g37 -compset X -mach userdefined) and set it up with ./cesm_setup.

I've edited the xml files, too, with the following variables in env_build.xml, env_run.xml, and env_mach_pes.xml.
OS - LINUX
MPILIB - openmpi
COMPILER - intel
EXEROOT - $HOME/a/CESM_DATA/CESM_EXE_ROOT
MAX_TASKS_PER_NODE - 8
RUNDIR - $HOME/a/CESM_DATA/run
DIN_LOC_ROOT - $HOME/a/CESM_DATA/CESM_INPUT_DATA

I also set up a .modules7 file to set up these libraries when I log in.
module load intel/intel-15.0.3
module load intel/hdf5-1.10.6-intel-15.0.3
module load intel/netcdf4-4.7.4-intel-15.0.3
module load intel/openmpi-4.1.2-intel-15.0.3

In Macros, the only edits I made were to these two variables:
NETCDF_PATH:= /sw/netcdf4-4.7.4-intel-15.0.3
MPI_PATH:= /sw/openmpi-4.1.2-intel-15.0.3

Running ./test1.build then incurs this error:
... - Build Libraries: mct gptl pio csm_share
Tue Oct 11 12:00:33 CDT 2022 /data/keeling/a/mailes2/a/CESM_DATA/CESM_EXE_ROOT/mct/mct.bldlog.221011-120032
Tue Oct 11 12:01:10 CDT 2022 /data/keeling/a/mailes2/a/CESM_DATA/CESM_EXE_ROOT/gptl/gptl.bldlog.221011-120032
Tue Oct 11 12:01:13 CDT 2022 /data/keeling/a/mailes2/a/CESM_DATA/CESM_EXE_ROOT/pio/pio.bldlog.221011-120032
ERROR: buildlib.pio failed, see /data/keeling/a/mailes2/a/CESM_DATA/CESM_EXE_ROOT/pio/pio.bldlog.221011-120032
ERROR: cat /data/keeling/a/mailes2/a/CESM_DATA/CESM_EXE_ROOT/pio/pio.bldlog.221011-120032

I've attached the PIO build log to this post. I also noticed that in my cesm1_2_1/models directory, the pio directory seems to be completely missing. Could the error possibly be with setting up Macros incorrectly? I also made no edits to the env_mach_specific file.

Sorry if this post is very long, but I would appreciate any help! I would also be happy to provide any additional details.

Sincerely, Maile
 

Attachments

  • pio.bldlog.221011-120032.txt
    2.6 KB · Views: 6

mailes

Maile
New Member
Hi jedwards, thanks for your response! It was really helpful but unfortunately it didn't quite work. Here's what we did and it worked out:

We had to replace genf90 in /cesm1_2_1/tools/cprnc/SVN_EXTERNAL_DIRECTORIES as "genf90 https://github.com/PARALLELIO/genf90/tags/genf90_140121"
Ran
svn propset svn:externals -F SVN_EXTERNAL_DIRECTORIES .
svn update

Then we replaced the pio entry in /cesm1_2_1/SVN_EXTERNAL_DIRECTORIES with "models/utils/pio https://github.com/NCAR/ParallelIO.git/tags/pio1_7_2/pio"
And ran this again:
svn propset svn:externals -F SVN_EXTERNAL_DIRECTORIES .
svn update

Also I needed to replace SLIBS in Macros as "SLIBS+=$(shell $(NETCDF_PATH)/bin/nc-config --flibs)"
 
Top