My Suggestion to arango!

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
zhzsh3985zq
Posts: 9
Joined: Thu Jan 14, 2010 6:21 pm
Location: Shanghai Ocean University,China

My Suggestion to arango!

#1 Unread post by zhzsh3985zq »

i am a new roms's user. But i have never find any installation instruction.
:oops: Now i am installing this big softwere by myself. it took me a long time to install it.sometime it works and sometime it failed just because of the version of compilers. I am very confused about which is the stable version compiler for ROMS. ROMs depends on so many other packages(MCT,mpich2,,netcdf4 ,hdf5) which needs different version compilers. But if i use these compilers, ROMS fails!!!!
Now i use the same complier(GUN 4.3.4) for ROMS. MCT,mpich2 netcdf4, hdf5 work OK!
but ROMS fails again!!

/opt/roms/netcdf4/lib/libnetcdf.a(netcdf4.o): In function `nf90_inq_libvers':
/home/zszheng/software/netcdf-4.0.1/f90/netcdf_file.f90:5: undefined reference to `nf_inq_libvers_'
/opt/roms/netcdf4/lib/libnetcdf.a(netcdf4.o): In function `nf90_strerror':
/home/zszheng/software/netcdf-4.0.1/f90/netcdf_file.f90:12: undefined reference to `nf_strerror_'
I know that the error comes due to the different compiler version for F90
BUT i configure netcdf with FC=mpif90(or gfortran) CXX=mpicxx CC=mpicc CPPFLAGS="-Df2cFortran" ./configure --enable-netcdf-4 --prefix=/opt/roms/netcdf4 --with-hdf5=/opt/roms/hdf5 --disable-shared
and in roms the IFORT=gfortran
HOW do there errors come?????

zhzsh3985zq
Posts: 9
Joined: Thu Jan 14, 2010 6:21 pm
Location: Shanghai Ocean University,China

Re: My Suggestion to arango!

#2 Unread post by zhzsh3985zq »

sorry,i should present my issues clearly!
that is NOT netcdf4 error BUT parallel I/O error,i think!
i found arango's instruction to parallel I/O viewtopic.php?f=13&t=1181
i just follow this instruction.
i build zlib, HDF5(with parallel,mpich2),netcdf4(with enable-netcdf4,mpich2)
all the things are fine!
i noticed the i should active both PARALLEL_IO and NETCDF4. how can do this?
i wonder if i do this in PROJECTNAME.h like #define PARALLEL #define NETCDF4??

zhzsh3985zq
Posts: 9
Joined: Thu Jan 14, 2010 6:21 pm
Location: Shanghai Ocean University,China

Re: My Suggestion to arango!

#3 Unread post by zhzsh3985zq »

sorry,i should present my issues clearly!
that is NOT netcdf4 error BUT parallel I/O error,i think!
i found arango's instruction to parallel I/O viewtopic.php?f=13&t=1181
i just follow this instruction.
i build zlib, HDF5(with parallel,mpich2),netcdf4(with enable-netcdf4,mpich2)
all the things are fine!
i noticed the i should active both PARALLEL_IO and NETCDF4. how can do this?
i wonder if i do this in PROJECTNAME.h like #define PARALLEL #define NETCDF4??

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: My Suggestion to arango!

#4 Unread post by kate »

It's a NetCDF error, not a ROMS error. I've never built netcdf in parallel, but I would set not just FC, but also F77 and F90.

Post Reply