Has anyone tried to run roms on 64-bit platform. Usually it works under 32-bit platform with intel ifort compiler. Now I am trying to move them on the 64-bit platform, which is a supercomputer: NEC with redhat linux system. I can't make them compile because I haven't got a netcdf library of 64-bit platform. Compiling errors like following:
ld: fort-attio.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./netcdf_ifc/libnetcdf.a(fort-attio.o)
ld: fort-control.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./netcdf_ifc/libnetcdf.a(fort-control.o)
I'm not a root. so has anyone has compiled that library? wanna share?
I was able to install the 64-bit netcdf libraries for the mac os x using absoft fortran 9.2. With this installed, I successfully compiled and ran the upwelling test case.
To install the netcdf libraries, I used the script provided by John Tanski at:
When compiling ROMS, I had to remove -YEXT_NAMES=LCS -YEXT_SFX=_ -YCFRL=1 from FFLAGS. I used FFLAGS := -N11 -m64 -w and it seemed to work. Hope that helps.
netcdf.inc is a text file, completely portable. The library is binary and needs to be recompiled for each architecture. You can compile it and put it in your own directories and you don't need to be root to do it.
I used to have access to such a system, but I can't now find any of the Makefiles I had for it then (before the Compilers directory update). I do recall that it gave more warnings than any other compiler I've ever seen and some were useful. I also recall that it took so long to compile that we got a cross-compiler running on some other system. For your needs, find out the compile command, look at the existing files in the Compilers directory, and give it a try. Let us know if you run into specific issues.
This is my Linux-necsx.mk File for a NEC SX-6 at the DKRZ, Germany.
We use a cross compiler environment on a Linux-driven front end causing the file name to be Linux-necsx.mk. This file is based on the Linux-ifort.mk file. If you have a similar setup, copy the file into the directory Compilers and adjust the FORT variable in your Makefile.
I have not started to explore further optimization switches, because the model was sufficiently fast. Its parallelizations percentage was about 97% and vector length of some 124. Since I have not used the SWAN component, the corresponding FFLAGS at the end might need some adjustments if you want to use SWAN.
Please check the library's paths before using it. Hope it helps.