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

SCRATCH variable

Hi,
As documented in CCSM 3 slides, I tired to configure the case.
I used generic_linux as the machine name.
But when I tried to configure it, it gave me a warning :
## Warning: SCRATCH not defined in system environment. Set SCRATCH to be /home/yadnyesh
./yadu/case1: No such file or directory.
configure generate_resolved error
I set the SCRATCH variable. I also set it my .cshrc file. And the directory yadu/case1 exists. But still, I am getting the same error. Can you please suggest something?
Thank you,
Yadnyesh.
 

njn01

Member
I don't think this is a fatal error; it looks to be a warning message (and in fact, it is labeled as "warning," not "error."

The script that generates this message contains the block

# -------------------------------------------------------------------------
# General machine specific environment variables - edit before the initial build
# -------------------------------------------------------------------------
if !($?SCRATCH) then
set SCRATCH = $HOME
echo "## Warning: SCRATCH not defined in system environment. Set SCRATCH to be $HOME";
endif

This tests for the existence of $SCRATCH, and if it isn't found, it sets SCRATCH to $HOME and continues, after printing out a message warning you that it has defined $SCRATCH for you.


If I'm right, then the script actually worked, and you should see the directories Buildexe, Buildlib, Buildnml_Prestage, SourceMods, as well as the scripts $case.$machine.build, $case.$machine.l_archive, and $case.$machine.run in your case directory.
 
Top