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

How to run cam3.0(1)

Hi
I want to run cam3.0 on a SGI machine. I have got model code and put it in the directory( /tp951/ybl/cam1/models/atm/cam/bld). The bld contains file or directory as follows:

CAM.pm config_cam_sld_defaults.xml
CAM_config.pm config_waccm_ghg_defaults.xml
CAM_lab.pm config_waccm_mozart_defaults.xml
CAM_namelist.pm configure
CAM_run.pm fvtest.sh
DefaultCAMEXPNamelist.xml lab_default.pm
DefaultCLMEXPNamelist.xml mkDepends
Makefile mkSrcfiles
XML namelist.pm
a resolution_parameters.xml
atmlndnl.pm run-ibm.csh
build-namelist run-lightning.csh
camexp.pm run-pc.csh
clm2exp.pm run-sgi.csh
config_cam_eul_defaults.xml system_defaults.xml
config_cam_fv_defaults.xml

The directory cam contains directorys (bld bld1 src test tools).
The directory models contains directorys (atm csm_share ice lnd utils).

When I made shell command >
and excute it. The responds of the machine is as follows:

Invalid build directory: /tp951/ybl/cam1/models/atm/cam/bld
** The specified build directory is the same as the configuration script
** directory. This is not allowed because the Makefile produced by configure
** would overwrite the standard Makefile. Use a different build directory.

I want to know how to "Use a different build directory" .
 

eaton

CSEG and Liaisons
What is meant by "Use a different build directory" is that /tp951/ybl/cam1/models/atm/cam/bld should not be the current directory at the time you issue the configure command. So just change to a working directory before issuing the configure command. For example, if /scratch/cam-bld is the name of your working directory, then:

% cd /scratch/cam-bld
% /tp951/ybl/cam1/models/atm/cam/bld/configure -test

This command will write a Makefile and other files required by the build in the current directory (as well as run some tests). If you then issue the "make" command CAM will be built in the current directory.
 
Top