problem while running PORT

hi all,I was running PORT.

During the build stage however I have got the following error.mpif90 -c  -I. -I/home/aketh/cesm1_2_2/models/atm/cam/src/chemistry/pp_none -I/home/aketh/cesm1_2_2/models/atm/cam/src/chemistry/mozart -I/home/aketh/cesm1_2_2/models/atm/cam/src/chemistry/bulk_aero -I/home/aketh/cesm1_2_2/models/atm/cam/src/chemistry/utils -I/home/aketh/cesm1_2_2/models/atm/cam/src/physics/cam -I/home/aketh/cesm1_2_2/models/atm/cam/src/dynamics/fv -I/home/aketh/cesm1_2_2/models/atm/cam/src/cpl_mct -I/home/aketh/cesm1_2_2/models/atm/cam/src/cpl_share -I/home/aketh/cesm1_2_2/models/atm/cam/src/control -I/home/aketh/cesm1_2_2/models/atm/cam/src/utils -I/home/aketh/cesm1_2_2/models/utils/timing -I/home/aketh/cesm1_2_2/models/utils/pio -I/home/aketh/cesm1_2_2/models/utils/esmf_wrf_timemgr -I/home/aketh/cesm1_2_2/models/atm/cam/src/utils/pilgrim -I/home/aketh/cesm1_2_2/models/atm/cam/tools/rad_driver -I/home/aketh/cesm1_2_2/models/drv/shr -I/home/aketh/cesm1_2_2/models/csm_share/shr -I/home/aketh/cesm1_2_2/models/csm_share/dshr -I/storage/softwares/installedsoftware/netcdf_4.4.0/include  -I/storage/softwares/installedsoftware/netcdf_4.4.0/include -I/storage/home/aketh/PortBuild/wrkdir/aketh/PORT/rrpk_rrtmg_bld/mct/mct -I/storage/home/aketh/PortBuild/wrkdir/aketh/PORT/rrpk_rrtmg_bld/mct/mpeu -DNO_SHR_VMATH -DSEQ_MCT -DFORTRANUNDERSCORE -DCO2A -DMAXPATCH_PFT=numpft+1 -DLSMLAT=1 -DLSMLON=1 -DPLON=24 -DPLAT=19 -DPLEV=30 -DPCNST=5 -DPCOLS=16 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSTAGGERED  -D_USEBOX -D_NETCDF   -DSPMD -DLINUX -DCPRINTEL -ftz -convert big_endian -fp-model precise  -check all -check noarg_temp_created -fpe0 -g -traceback  -L/storage/softwares/installedsoftware/netcdf_4.4.0/lib -lnetcdf -lnetcdff  /home/aketh/cesm1_2_2/models/atm/cam/src/chemistry/pp_none/m_spc_id.F90/home/aketh/cesm1_2_2/models/atm/cam/src/physics/cam/ppgrid.F90(34): error #6772: A PARAMETER must not be defined in terms of itself.   [PSUBCOLS]   parameter (psubcols  = PSUBCOLS)--------------------------^compilation aborted for /home/aketh/cesm1_2_2/models/atm/cam/src/physics/cam/ppgrid.F90 (code 1)

I have applied the patch as given in the CAM page.

here is the configure command issued. 
/configure $compile -rad_driver       -phys cam5       -chem none       -rad camrt      -debug       -spmd       -nosmp       -res 10x15       -dyn fv       -ntasks $ntasks      -test      -ice csim4 -fflags '-L/storage/softwares/installedsoftware/netcdf_4.4.0/lib -lnetcdf -lnetcdff '   
 

eaton

CSEG and Liaisons
It appears that the distribution is in an inconsistent state.  The parameter PSUBCOLS is set to 1 by default by CAM's configure.  The error message from the compiler indicates that it's not being set at all.  The mechanism for setting PSUBCOLS is that the corresponding CPP macro must be set, and then the source code gets that value during the preprocessing stage.  The CPP definitions from the compile line do not contain a setting for PSUBCOLS:-DNO_SHR_VMATH -DSEQ_MCT -DFORTRANUNDERSCORE -DCO2A -DMAXPATCH_PFT=numpft+1 -DLSMLAT=1 -DLSMLON=1 -DPLON=24 -DPLAT=19 -DPLEV=30 -DPCNST=5 -DPCOLS=16 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSTAGGERED  -D_USEBOX -D_NETCDF   -DSPMD -DLINUX -DCPRINTELThis points to an older version of configure being used with a newer version of the source code.  This will not work. 
 
Back
Top