ROMS 3.0 on Mac OS X 10.4.9

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
boylanp

ROMS 3.0 on Mac OS X 10.4.9

#1 Unread post by boylanp »

I'm trying to run ROMS 3.0 on a Mac, but when I compile I get this far:
** state_addition_mod === End of Compilation 1 ===
** state_copy_mod === End of Compilation 1 ===
1501-510 Compilation successful for file state_addition.f90.
cd Build; f90 -c -w -g state_initialize.f90
1501-510 Compilation successful for file state_copy.f90.
cd Build; f90 -c -w -g state_scale.f90
** state_initialize_mod === End of Compilation 1 ===
1501-510 Compilation successful for file state_initialize.f90.
** state_scale_mod === End of Compilation 1 ===
cd Build; f90 -c -w -g extract_obs.f90
1501-510 Compilation successful for file state_scale.f90.
cd Build; f90 -c -w -g nrutil.f90

The problem is that it just hangs on this nrutil.f90 command. I don't get any error messages, even after hours of compiling. Any ideas of what is going on here?

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

#2 Unread post by kate »

I see that file contains numerical recipes stuff. Are you using any ROMS options needing the numerical recipes? What happens if you rename nrutil.F to nrutil.F.test? Then it won't be compiled. You may or may not end up with linker errors. Anyway, I'd give that a go and report back here.

Oh, since it is a fairly stand-alone piece of code, you might be able to report it to your compiler vendor too.

User avatar
cvl
Posts: 18
Joined: Tue Jun 03, 2003 7:39 pm

Mac compile... which compiler?

#3 Unread post by cvl »

1. What compiler?

2. Especially after you break out of the make, you should be able to execute:

Code: Select all

f90 -c -w -g nrutil.f90
alone. You might also be able to "gut" it and slowly rebuild it to see where the problem lies.

boylanp

#4 Unread post by boylanp »

I'm not sure which compiler, but it is installed in: "/opt/ibmcmp/xlf/8.1/bin/f90"
if that helps at all

I was able to run it alone in the Build/ directory and it finished just fine in a matter of seconds.

ocean:/Volumes/dusk/ROMS_3.0/Build patrick$ f90 -c -w -g nrutil.f90
** nrutil === End of Compilation 1 ===
1501-510 Compilation successful for file nrutil.f90.

I also ran "grep nrutil ROMS/Utility/*" to see which functions call nrutil.f90

ROMS/Utility/gasdev.F: USE nrutil, ONLY : ran1
ROMS/Utility/gasdev.F: USE nrutil, ONLY : array_copy
ROMS/Utility/nrutil.F: MODULE nrutil
ROMS/Utility/nrutil.F: END MODULE nrutil
ROMS/Utility/ran_state.F: USE nrutil, ONLY : arth, nrerror, reallocate
ROMS/Utility/white_noise.F: USE nrutil, ONLY : gasdev

they all seems to be random number generators, or some variation of that.

the same problem happens at mod_bbl.f90, but when i try to compile it on its own using "f90 -c -w -g mod_bbl.f90" nothing happens and still hangs.

Post Reply