[MITgcm-support] 来自李志远的邮件
Martin Losch
Martin.Losch at awi.de
Wed Oct 30 13:19:21 EDT 2013
I would do this in a new directory:
cvs co MITgcm -P
cd MITgcm/verification/tutorial_barotropic_gyre/build
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_amd64_g77
# (maybe you can even get away with "../../../tools/genmake2 -mods=../code")
make depend && make
mkdir ../run
cd ../run
cp ../input/* .
../build/mitgcmuv
Only after this works (without modifying anything in the freshly checked out code),
you should start to modiy SIZE.h, and I mean
MITgcm/verification/tutorial_barotropic_gyre/code/SIZE.h to replace
snx=30, sny=30, nsx = 2, nsy = 2 to snx=60, sny=60, nsx = 1, nsy = 1
readBinaryPrec is a runtime parameter in input/data, in tutorial_barotropic_gyre it is set to 64 (meaning double precision). The associated gendata.m uses double precision (accuracy = 'real*8') to generate the input files.
Martin
On Oct 30, 2013, at 5:53 PM, 李志远 <oceanlizy at 163.com> wrote:
> From: allenson3 <oceanlizy at 163.com>
> To: MITgcm <mitgcm-support at mitgcm.org>
> Subject: [MITgcm-support] problems with
> verification/tutorial_barotropic_gyre
> Message-ID: <777342e7.23dc9.14208958ac2.Coremail.oceanlizy at 163.com>
> Content-Type: text/plain; charset="gbk"
>
>
> thanks for your advice,Martin .!
> I think the input files , topog.box and windx.sin_y matched the total gird size in size.h ,but I don't understand the following "Then you have to make sure that you use the approprate "precision" for your input files. If the model expects double precision (readBinaryPrec = 64), a single precision field will be too small (by a factor of 2) " ,
> I want to know where I can find the precision , need I change something in the file ?
> at last , what does it mean by "a clean (unmodified) experiment and then change one thing at a time." can you tell me something in detail ?
> I am eager for your help ,thank you so much !!
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list