Ok Cheers XWB, over that hurdle and have all the libraries installed.
I'm basically learning Linux and fortran as I go so am running into a few stumbling blocks but am making slow progress and learning as I go.
Here is a simple bacio makefile that I can't get to work..
------------------------------
SHELL=/bin/sh
CC=xlc
FC=xlf
LIB=libbacio.a
INC=clib.h
FFLAGS= -O3 -qnosave -qarch=auto
AFLAGS= -X64
CFLAGS=-O3 -qarch=auto
$(LIB): $(LIB)( bacio.v1.3.o baciof.o )
$(LIB)(bacio.v1.3.o): bacio.v1.3.c...
Ok thanks for your help xwb, I figured out the problem.
When calling the compile instruction 'gfortran' I wasn't specifying correctly where the 'mod' directory was so now that's sorted its all working and compiling.
But now I have a seperate problem.
I'm trying to install wgrib2 and bacio...
Cheers for your continued help xwb, but I don't think renaming the files is an option, as there at least 15 .ftn files and I believe the program is setup to work with the /ftn files.
So where i'm at at the moment is this.
I try to compile one of the program ww3_grid with the w3_make file...
I've nearly tried everything but still getting the same error. Am I supposed to pre-process any files with 'w3adc' at all before I try and compile??
Cheers, Craig
The thing is is that 'w3servmd.mod' has been generated and is sitting in the 'mod' folder but for some reason the program gets stuck.
I just tried those commands above and it comes up with the error..
gfortran: w3servmd.ftn:linker input file unused because linking not done
I think the problem...
Thanks XWB, but i've already tried to compile 'w3gdatmd.ftn' and I get the samer error as I did when i tried to compile 'w3servmd.ftn;.
:? Maybe there is a problem with the compiler call?
Here is what I have for the compiler ponter....
gfortran -c $name.$fext >$name.out 2>$name.err
OK="$?"...
Thanks xwb, but I just tried to compile w3servmd.ftn by itself but this error comes up..
usr/bin/ld:w3servmd.ftn: file format not recognised; treating as linker script
usr/bin/ld:w3servmd.ftn:1: syntax error
collect2: ld returned 1 exit status
So that didn't help :?
Hi Guys and Gals,
I have a bit of a problem.
I've unpacked the ww3 3.14 model onto a linux machine and compiled the test case and thats all fine and working.
Then i tried the next step which is compling one of the modules WW3_Grid and I got this error message...
Processing ww3_grid...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.