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

Error in CLM4.5 Interpinic gmake

Hi everyone,     Currently, I want to interpolate my finidat in order to get my irrigation model run. I followed the instruction in http://www.cesm.ucar.edu/models/cesm1.2/clm/models/lnd/clm/doc/UsersGuide/x11704.html and finished the first step (get a template file for interpinic to interpolate to). However, I got the following error when I proceed to the second step. I am not sure how to deal with it and any help will be appreciated.Thanks in advance.Jacky s1155033628@aves:~/CESM/cesm1_2_2/models/lnd/clm/tools/clm4_5/interpinic/src> gmake OPT=TRUE SMP=TRUEgmake: /usr/local/lib/../bin/nf-config: Command not foundifort  -ftz -g -fp-model precise -convert big_endian -assume byterecl -traceback -FR -O2 -openmp -c -I/usr/local/include -DOPT -DLINUX -DFORTRANUNDERSCORE -I. -I. -I/usr/local/include -I/usr/local/lib   interpinic.F90ifort: command line warning #10212: -fp-model precise evaluates in source precision with Fortran.interpinic.F90(98): error #5102: Cannot open include file 'netcdf.inc'    include 'netcdf.inc'------------^interpinic.F90(1069): error #5102: Cannot open include file 'netcdf.inc'    include 'netcdf.inc'------------^interpinic.F90(1178): error #5102: Cannot open include file 'netcdf.inc'    include 'netcdf.inc'------------^interpinic.F90(1343): error #5102: Cannot open include file 'netcdf.inc'    include 'netcdf.inc'------------^interpinic.F90(1473): error #5102: Cannot open include file 'netcdf.inc'    include 'netcdf.inc'------------^interpinic.F90(1576): error #5102: Cannot open include file 'netcdf.inc'    include 'netcdf.inc'------------^interpinic.F90(1588): error #5102: Cannot open include file 'netcdf.inc'    include 'netcdf.inc'------------^interpinic.F90(94): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]    use netcdf--------^interpinic.F90(554): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]    use netcdf--------^interpinic.F90(749): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]    use netcdf--------^interpinic.F90(921): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]    use netcdf--------^interpinic.F90(1067): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]    use netcdf--------^interpinic.F90(1174): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]    use netcdf--------^interpinic.F90(1341): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]    use netcdf--------^interpinic.F90(144): error #6404: This name does not have a type, and must have an explicit type.   [NF90_NOWRITE]    call check_ret (nf90_open(fin,  NF90_NOWRITE, ncidi ))------------------------------------^interpinic.F90(144): error #6404: This name does not have a type, and must have an explicit type.   [NF90_OPEN]    call check_ret (nf90_open(fin,  NF90_NOWRITE, ncidi ))--------------------^interpinic.F90(146): error #6404: This name does not have a type, and must have an explicit type.   [NF_INQ_FORMAT]    call check_ret (nf_inq_format( ncido, ncformat ))--------------------^interpinic.F90(147): error #6404: This name does not have a type, and must have an explicit type.   [NF_FORMAT_64BIT]    if ( ncformat /= NF_FORMAT_64BIT )then---------------------^interpinic.F90(152): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQ_DIMID]    call check_ret (nf90_inq_dimid(ncidi, "column", dimidcols ))--------------------^interpinic.F90(153): error #6632: Keyword arguments are invalid without an explicit interface.   [LEN]    call check_ret (nf90_inquire_dimension(ncidi, dimidcols, len=numcols))-------------------------------------------------------------^interpinic.F90(153): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQUIRE_DIMENSION]    call check_ret (nf90_inquire_dimension(ncidi, dimidcols, len=numcols))--------------------^interpinic.F90(155): error #6632: Keyword arguments are invalid without an explicit interface.   [LEN]    call check_ret (nf90_inquire_dimension(ncido, dimid, len=numcolso))---------------------------------------------------------^interpinic.F90(159): error #6632: Keyword arguments are invalid without an explicit interface.   [LEN]    call check_ret (nf90_inquire_dimension(ncidi, dimidpft, len=numpfts))------------------------------------------------------------^interpinic.F90(161): error #6632: Keyword arguments are invalid without an explicit interface.   [LEN]    call check_ret (nf90_inquire_dimension(ncido, dimid, len=numpftso))---------------------------------------------------------^interpinic.F90(166): error #6632: Keyword arguments are invalid without an explicit interface.   [LEN]    call check_ret (nf90_inquire_dimension(ncidi, dimidldu, len=numldus))------------------------------------------------------------^interpinic.F90(168): error #6632: Keyword arguments are invalid without an explicit interface.   [LEN]    call check_ret (nf90_inquire_dimension(ncido, dimid, len=numlduso))---------------------------------------------------------^interpinic.F90(172): error #6632: Keyword arguments are invalid without an explicit interface.   [LEN]    call check_ret (nf90_inquire_dimension(ncidi, dimidsno, len=nlevsno))------------------------------------------------------------^interpinic.F90(174): error #6632: Keyword arguments are invalid without an explicit interface.   [LEN]    call check_ret (nf90_inquire_dimension(ncido, dimid, len=dimlen))---------------------------------------------------------^interpinic.F90(182): error #6404: This name does not have a type, and must have an explicit type.   [NF90_NOERR]    if (ret == NF90_NOERR) then---------------^interpinic.F90(183): error #6632: Keyword arguments are invalid without an explicit interface.   [LEN]       call check_ret (nf90_inquire_dimension(ncidi, dimidsno1, len=nlevsno1))----------------------------------------------------------------^/tmp/ifortOYxFB9.i90(1595): catastrophic error: Too many errors, exitingcompilation aborted for interpinic.F90 (code 1) gmake: *** [interpinic.o] Error 1
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
Hi Jacky When you build, you need to point to the location of the NetCDF library on your system using the environment variables INC_NETCDF and LIB_NETCDF. See more information on the environment variables needed for the build of the tools here... http://www.cesm.ucar.edu/models/cesm1.2/clm/models/lnd/clm/doc/UsersGuide/c11242.html#tool_build
 
Top