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 change the environmental variables?

Dear all:

I'm trying to build an excutable for a CLM4CN 2000 test run on a generic_linux_pgi machine. After I submit ./.build, I always got this error message:

using NETCDF_PATH from environment
configure: error: netcdf.mod not found in NETCDF_PATH/include
check the environment variable NETCDF_PATH

I tried to set NETCDF_PATH in the file env_mach_specific (I'm sure that the path I entered is right and netcdf.mod can be found under $NETCDF_PATH/include). After that I typed ./configure -cleanmach and ./configure -case again, resubmit ./.build, but I still got the same error.

I think I probably have the wrong order or I modified the wrong file. Could you tell me how to change those environmental variables like NETCDF_PATH, PGI_PATH and MPICH_PATH appropriately? Thanks a lot!

Ming
 
Thanks, Erik. I just find that under the user created case directory, in the file Macros.generic_*, around line 136, there is a definition that will overwrite the user defined NETCDF path:

NETCDF_PATH := /usr/local/netcdf-3.6.3-pgi-hpf-cc-7.2-5

Just commend this out will let me build the model.

Hope this helps.

Ming
 
Dear Erik:

I met another problem when I tried to change the model PE layout as follows:











































I let LND and ATM run parallelly but I don't know if I can only let them run in a sequence?

After I submit the job with the following modifications:
#PBS -l nodes=4pn=1
setenv OMP_NUM_THREADS 1
mpirun -np 4 ./ccsm.exe >&! ccsm.log.$LID

I got this error message:

st_archive.sh: short-term archiving completed successfully
mv: cannot stat `$CASEROOT/timing/ccsm_timing.testcase2000.100713-151545': No such file or directory

I checked the file $CASEROOT/timing/ccsm_timing.testcase2000.100713-15154 and it is there. I'm thinking if this is caused by my PE layout setting.

Thank you ahead of time! I'm looking forward to any suggestions.

Ming
 
Top