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 with Building and Running

Hi, Past Few weeks i'm frying to build CAM in standalone mode, facing few problems while doing it,Here i'm writing the procedure i followedUsing CESM1_2_0#######################################################################################################################################################################cd /moes/home/karumuriashok/cesm1_2_0/models/atm/cam/bld./configure -fc mpiifort -fc_type intel -cc mpiicc -dyn fv -hgrid 10x15 -ntasks 16 -nosmp -test -nc_inc /gpfs1/home/Libs/INTEL/NETCDF4/netcdf-4.1.3/include -nc_lib /gpfs1/home/Libs/INTEL/NETCDF4/netcdf-4.1.3/lib -mpi_inc /gpfs1/opt/intel/icsxe/impi/4.1.3.048/intel64/include -mpi_lib /gpfs1/opt/intel/icsxe/impi/4.1.3.048/intel64/libgmake 2>&1 | tee LOG-gmake./build-namelist -test -config /moes/home/karumuriashok/1_charan/cam_1/models/atm/cam/bld/config_cache.xml -csmdata /iitm2/cccr-res/karumuri/ccsm/inputdata./cam 2>&1 | tee LOG#######################################################################################################################################################################When i'm giving a job getting errorsAttached log files, namelist and job script and error files Previously i'm getting a error Read in dyn_fv_inparm namelist from: atm_in Read in spmd_fv_inparm namelist from: atm_in npr_y =            4   npr_z =            4 nprxy_x =            4   nprxy_y =            4 npes =            1   npes_yz=           16   npes_xy =           16(shr_sys_abort) ERROR: SPMD_DYN_SET : incorrect yz domain decomposition - aborting(shr_sys_abort) WARNING: calling shr_mpi_abort() and stoppingapplication called MPI_Abort(MPI_COMM_WORLD, 1001) - process 0 in this case i just added "ntasks 16" to buildnamelist command./build-namelist -test -ntasks 16 -config /moes/home/karumuriashok/1_charan/cam_1/models/atm/cam/bld/config_cache.xml -csmdata /iitm2/cccr-res/karumuri/ccsm/inputdata attached log file for this with npr extentions Please help me to build CAM in stand alone mode  Thank you
 

eaton

CSEG and Liaisons
The problem appears to be with how you are launching the mpi job.  The log output in LOG_npr.txt shows at the very top that CAM is only running in 1 task, e.g.,
Code:
(seq_comm_setcomm)  initialize ID (  1 GLOBAL          ) pelist   =     0     0     1 ( npes =     1) ( nthreads =  1)<br /><br />This is not consistent with the namelist setting npr_yz=4,4,4,4<br /><br />Figure out how to launch the job using 16 tasks.  The local systems experts for the machine you are using<br /> should be able to help.<br /><br />
 

eaton

CSEG and Liaisons
npes is determined when cam is being initialized (see the spmdinit routine in spmd_utils.F90) by asking mpi how many tasks have been assigned.  That is set by how the job is launched in an mpi environment, and it is system dependent.  A common way to do this is with a command like (assuming 16 tasks are requested):mpirun -np 16 cam > cam.log 
 
Top