Opened 10 years ago

Closed 9 years ago

#97 closed Defect (fixed)

FLEXWRF3.1 compiling issue with netcdf4.3.2

Reported by: bzhang Owned by: jbrioude
Priority: major Milestone:
Component: FP coding/compilation Version: FLEXPART-WRF
Keywords: netcdf Cc:

Description

The package was compiled fine with netcdf3.6. I just updated my netcdf lib to 4.3.2 because of a requirement from a software ncview. The netcdf was installed with netcdf4 enable for supporting ncview. After the update, I changed the dir for netcdf and flag for netcdf in the makefile, then it wont compile with the following errors:

gfortran -c -I/home/bzhang3/research/libs/netcdf/include -m64 -mcmodel=medium -fconvert=little-endian -finit-local-zero -fno-range-check write_ncheader.f90
write_ncheader.f90:126.60:

ncret = nf_create(path(1)(1:length(1))ncname, NF_NETCDF4,ncid)

1

Error: Symbol 'nf_netcdf4' at (1) has no IMPLICIT type
write_ncheader.f90:359.10:

ncret = NF_DEF_VAR_deflate(ncid,nclonvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:372.10:

ncret = NF_DEF_VAR_deflate(ncid,nclonvid2, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:383.10:

ncret = NF_DEF_VAR_deflate(ncid,nclatvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:391.10:

ncret = NF_DEF_VAR_deflate(ncid,nclatvid2, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:401.10:

ncret = NF_DEF_VAR_deflate(ncid,nclvlvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:412.10:

ncret = NF_DEF_VAR_deflate(ncid,ncspcvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:420.10:

ncret = NF_DEF_VAR_deflate(ncid,ncagevid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:430.10:

ncret = NF_DEF_VAR_deflate(ncid,ncrecvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:438.10:

ncret = NF_DEF_VAR_deflate(ncid,ncrnvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:448.10:

ncret = NF_DEF_VAR_deflate(ncid,ncrtvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:459.10:

ncret = NF_DEF_VAR_deflate(ncid,ncrxvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:470.10:

ncret = NF_DEF_VAR_deflate(ncid,ncryvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:481.10:

ncret = NF_DEF_VAR_deflate(ncid,ncrzvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:491.10:

ncret = NF_DEF_VAR_deflate(ncid,ncspvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:500.10:

ncret = NF_DEF_VAR_deflate(ncid,ncrmvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:515.10:

ncret = NF_DEF_VAR_deflate(ncid,nctovid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
write_ncheader.f90:528.10:

ncret = NF_DEF_VAR_deflate(ncid,ncarvid, shuffle, 1, deflate_level)

1

Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
make: * [write_ncheader.o] Error 1

Attachments (1)

makefile.mom (6.7 KB) - added by bzhang 9 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 9 years ago by pesei

  • Owner changed from somebody to jbrioude
  • Status changed from new to assigned

comment:2 follow-up: Changed 9 years ago by jbrioude

  • Status changed from assigned to accepted

Hi,
Sorry for the late reply. Can you send the makefile.mom you use to compile the model?
Thanks

Changed 9 years ago by bzhang

comment:3 in reply to: ↑ 2 Changed 9 years ago by bzhang

Replying to jbrioude:

Hi,
Sorry for the late reply. Can you send the makefile.mom you use to compile the model?
Thanks

Hi,

I only changed the netcdf version and directory. Thanks for stepping in.

Bo

comment:4 Changed 9 years ago by bzhang

Somehow, the attachment does not appear in the email. It is attached to the ticket and can be downloaded from the forum.

comment:5 Changed 9 years ago by jbrioude

Okay.
in makefile.mom, can you change at the line of compilation option GNU_LDFLAGS -lnetcdf into -lnetcdff ??
most of the time netcdf version 3 libraries are called libnetcdf.a or libnetcdf.so* while netcdf version 4 libraries are called libnetcdff.a

comment:6 Changed 9 years ago by jbrioude

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.
hosted by ZAMG