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

Problem building cesm1_2_1

Dear all, Since a while I am using the cesm1_0_3 model version. Finally I decided to move on to the latest version (1.2.1), also because we are configuring a new 64bit linux workstation in our institute.As a first step I moved the cesm1_0_3 to this new workstation, and managed to compile it with the intel compiler, using the following version: Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.1.106 Build 20131008.I got the 1_0_3 up and running, with environment and compilation options as provided in the files ending with RCS_linux_intel.Then I tried to use svn to switch to the latest version, with the following command: svn switch https://svn-ccsm-models.cgd.ucar.edu/cesm1/release_tags/cesm1_2_1/This did not work, as it resulted in the following error: svn: E170009: Repository UUID 'fe37f545-8307-0410-aea5-b40df96820b5' doesn't match expected UUID '6ec7379f-1bbc-4938-b9b9-58fa9e6a5fe1'Thus I decided to download the cesm1_2_1 and use the settings that worked for me in 1_0_3. Unfortuntaly, I do not manage to get the new model compiling, as now end up having an error with netcdf, as you can see from the error log (cesm.bldlog.140103-102424).I now also provide the files that describe my environment, including the Macros and config.compilers.xml files. These files end in RCS.All files are in the .tar file.I have tried using many different flags for netcdf-3.6.3, but none solved my issues. If someone has any idea on how to solve this, please let me know!Kind regards,Matthias  
 

jedwards

CSEG and Liaisons
Staff member
It looks like you don't have the netcdf library in you link line.   You should have -L /home/rcs/software/intel/netcdf/3.6.3/lib -lnetcdf  in LDFLAGSI also strongly recommend that you consider updating to netcdf 4.3.0,  older versions of netcdf have some known bugs that can result in data corruption or loss.  
 
Hi! Thanks for your suggestion! I indeed put the netcdf library link in the wrong flags. This solved my problem for netcdf-3.6.3.As I already had the netcdf-4.1.3 on this machine, I now compiled with this netcdf version. This works, as long as I add the proper FFLAGS and LDFLAGS, as learned from the nc-config --all output. Thanks for your help! 
 
Top