Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

compiling prep_chem_sources 1.5 (solved)

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

quwj0228

New member
Dear colleagues,

I am compiling prep_chem_sources, but got the following error.

Could you please give some clue on this issue?

Thanks a lot in advance.


Wenjun


###########################################################################################################################
login1(1007)$ make OPT=intel CHEM=RADM_WRF_FIM
cp -f ../../src/gocart_background.f90 gocart_background.f90
ifort -c -fpp -DRADM_WRF_FIM -O3 -I../../aux_src/utils/include -I/scratchin/grupos/catt-brams/shared/libs/intel/netcdf-4.1.3/include -I/scratchin/grupos/catt-brams/shared/libs/intel/hdf5-1.8.13-serial/include gocart_background.f90
gocart_background.f90(132): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [NETCDF]
use netcdf
----^
gocart_background.f90(212): error #6404: This name does not have a type, and must have an explicit type. [NF90_OPEN]
call check( nf90_open(TRIM(filename(ispc)), NF90_NOWRITE, ncid) )
----------------^
gocart_background.f90(217): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQ_VARID]
call check( nf90_inq_varid(ncid, trim(netcdf_spc_name(ispc)), var_id) )
----------------^
gocart_background.f90(221): error #6404: This name does not have a type, and must have an explicit type. [NF90_GET_VAR]
call check( nf90_get_var(ncid, var_id, src_dust ) )
------------------^
gocart_background.f90(251): error #6404: This name does not have a type, and must have an explicit type. [NF90_CLOSE]
call check( nf90_close(ncid) )
------------------^
compilation aborted for gocart_background.f90 (code 1)
make: *** [gocart_background.o] Error 1
###########################################################################################################################
 
Hi Wenjun,

Can it be that your NetCDF distribution is incorrectly linked in?

You can change this by using "export NETCDF=.." (on command line in bash terminal). From your email, I gather it is currently set at:
/scratchin/grupos/catt-brams/shared/libs/intel/netcdf-4.1.3

which is probably the default but not necessarily the right path for you.

Nick
 
Hi, Nick

Thank you so much for your kind reply.

Yes, the error was really caused by the incorrect path of the NetCDF. When I correct it, the compiling continues.

Moreover, the content of http://www.wrfforum.com/viewtopic.php?f=39&=27898 about the bug fixing (see below) from Lugwaa is also very helpful.
"adding ! in before "use chem1_list" to "!use chem1_list" in convert_edgar_to_RELACS_REAC.f90 in src folder"

Thank you guys for helping me learning.


Wenjun
 
Top