[Mitgcm-support] FW: SunOS5.7
mitgcm-support at dev.mitgcm.org
mitgcm-support at dev.mitgcm.org
Wed Jul 9 15:56:02 EDT 2003
> -----Original Message-----
> From: Martin Losch [mailto:mlosch at awi-bremerhaven.de]
> Sent: Wednesday, April 16, 2003 7:29 AM
> To: Mark Inall
> Cc: Chris Hill
> Subject: Re: SunOS5.7
>
>
> Hi Mark,
> I am not sure whether or not you got the following email, it does not
> show at the support newsgroup, so I'll send it to you again.
> Sorry for
> multiple mails.
>
> Martin
>
> original message:
>
> Mark,
>
> the MITgcm runs on SunOS quite nicely, if you can put up with long
> compile times and slow execution (o: Seriously, it should work, but I
> don't know if you are doing yourself a favour with that old Sparc10. I
> worked on a SunBlade 1000 and going from there to Linux P4
> was really an
> enormous speed-up, especially the compile time. I would try to get a
> linux box, but until you get one:
>
> As far as I can see, the OS version doesn't matter but the compiler
> version. I always used the SUN WORKSHOP compilers and they seem to be
> okay (at least the recent versions >5).
> CPP: you can probably ignore this, but I am guessing that it
> stems from
> the xmakedepend that is called on SunOS instead of makedepend (Sun
> Makedepend does not work!). Make sure that your defaults cpp is
> /opt/sfw/bin/cpp and the problem should go away.
> Fortran: In $ROOTDIR/tools/genmake, edit (DON'T copy) the following
> block of paths and compiler option to include your cpp and fortran
> options (e.g. depending on the compiler version -xtypemap=..., which
> turns all REALs into REAL*8 should be replaced by -r8 -i4,
> and just drop
> -xarch=..., please check with the fortran man pages, what
> might be good
> to have. I think the -fast option is a good guess, unless you want to
> use the adjoint):
>
> case SunOS:
> set LN = ( '/usr/bin/ln -s' )
> set CPP = ( '/usr/ccs/lib/cpp -P' )
> set MAKEDEPEND = ( ${TOOLSDIR}/xmakedepend )
> set DEFINES = ( ${DEFINES} '-DTARGET_SUN
> -DWORDLENGTH=4 -D_d=E' )
> set FFLAGS = ( '-stackvar -explicitpar -vpara -e -u
> -noautopar \
> -xtypemap=real:64,double:64,integer:32 -fsimple=0' )
> set FOPTIM = ( '-dalign -O3 -xarch=v9' )
> set CFLAGS = ( '-dalign -O3 -xarch=v9' )
> set NOOPTFLAGS = ( '-dalign -O0 -xarch=v9' )
> set NOOPTFILES = ( 'barrier.F different_multiple.F \
> external_fields_load.F ini_vertical_grid.F
> ini_spherical_polar_grid.F \
> ini_cori.F mon_printstats_rl.F mon_printstats_rs.F aim_aim2dyn.F \
> aim_dyn2aim.F aim_aim2dyn_exchanges.F aim_external_fields_load.F \
> aim_calc_diags.F aim_external_forcing.F aim_do_atmos_physics.F \
> aim_write_diags.F aim_do_inphys.F ')
> breaksw
>
> then redo the genmake-make depend-make sequence and let me
> know if there
> are any further problems. You should also consider Chris's
> advice about
> using CVS.
>
> Good luck,
>
> Martin
>
> PS. This comes without warranty, but you could try and instead of
> editing INSERT a new case block after the SunOS block that
> looks like this:
> case SunOS5.7:
> set LN = ( '/usr/bin/ln -s' )
> set CPP = ( '/usr/ccs/lib/cpp -P' )
> set MAKEDEPEND = ( ${TOOLSDIR}/xmakedepend )
> set DEFINES = ( ${DEFINES} '-DTARGET_SUN -DWORDLENGTH=4 ' )
> set FFLAGS = ( '-e -u -r8 -i4' )
> set FOPTIM = ( '-dalign -O4' )
> set CFLAGS = ( '-dalign -O4' )
> set NOOPTFLAGS = ( '-dalign -O0' )
> set NOOPTFILES = ( 'barrier.F different_multiple.F \
> external_fields_load.F ini_vertical_grid.F \
> ini_spherical_polar_grid.F ini_cori.F \
> mon_printstats_rl.F mon_printstats_rs.F aim_aim2dyn.F aim_dyn2aim.F \
> aim_aim2dyn_exchanges.F aim_external_fields_load.F aim_calc_diags.F \
> aim_external_forcing.F aim_do_atmos_physics.F aim_write_diags.F \
> aim_do_inphys.F ')
> breaksw
>
> and then run $ROOTDIR/tools/genmake -platform=SunOS5.7 ...
>
>
> Mark Inall wrote:
> > Hi, I've just downloaded MITgcm in the zipped tar form.
> My interest is
> > in fjordic flows of salinity stratified water over steep
> topographic
> > sills, and the generation of internal jumps, bores etc and also
> > propagating internal waves. We are predominantly an observational
> > group, however I was motivated by Sonia Legg's talk at
> EGS/AGU last
> > week about internal tide/wave generation on a corrugated
> slope - and
> > discussion thereafter with and old friend Tom Haine
> convinced me to
> > have a go with the MITgcm! So I'm trying it out on the
> only unix machine
> > I have to hand right now, an old Sun sparc 10 running
> SunOS5.7. Am I
> > wasting my time? Should I get myself a linux machine?
> I've tried to
> > compile for a few of the verification expts - the
> following problems
> > are encountered each time. Any help you can give would be hugely
> > appreciated. Thanks in anticipation.
> >
> > Mark.
> >
> > Trying to compile for exp4 the problems so far on the
> Sun have been
> > 1) make depend .......... load of fortran files then
> write_state.F
> > ./mdep22933a: cpp: not found (repeated hundreds of times)
> 2) make f77
> > illegal options -xtypemap and -xarch ld: fatal: symbol referenceing
> > errors
> >
> > Dr Mark Inall
> > Lecturer in Marine Physics
> > Scottish Association for Marine Science
> > Dunstaffnage Marine Laboratory
> > Oban PA34 4AD
> >
> > email: mei at dml.ac.uk
> >
> >
> >
> >
>
>
> --
> Martin Losch
> Alfred Wegener Institute for Polar and Marine Research
> Postfach 120161, 27515 Bremerhaven, Germany;
> Tel./Fax: ++49(0471)4831-1872/1797
>
>
>
More information about the MITgcm-support
mailing list