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?
ROMS 3.0 on Mac OS X 10.4.9
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.
Oh, since it is a fairly stand-alone piece of code, you might be able to report it to your compiler vendor too.
Mac compile... which compiler?
1. What compiler?
2. Especially after you break out of the make, you should be able to execute:
alone. You might also be able to "gut" it and slowly rebuild it to see where the problem lies.
2. Especially after you break out of the make, you should be able to execute:
Code: Select all
f90 -c -w -g nrutil.f90
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.
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.