MITgcm

【转载请注明出处: http://blog.csdn.net/lzl124631x

Massachusetts Institute of Technology (MIT) 麻省理工学院

EE & CS : http://www.eecs.mit.edu/

MITgcm ( M.I.T General  Circulation  Model) :  http://mitgcm.org/

Novel Aspects:
  • it can be used to study both atmospheric and oceanic phenomena; one hydrodynamical kernel is used to drive forward both atmospheric and oceanic models.
  • it has a non-hydrostatic capability and so can be used to study both small-scale and large scale processes.
  • finite volume techniques are employed yielding an intuitive discretization and support for the treatment of irregular geometries using orthogonal curvilinear grids and shaved cells.
  • tangent linear and adjoint counterparts are automatically maintained along with the forward model, permitting sensitivity and optimization studies.
  • the model is developed to perform efficiently on a wide variety of computational platforms.


Environment:
Ubuntu

Download Source: 
Visit  http://mitgcm.org/public/source_code.html. Three alternative ways are provided for downloading the source.

Download User Manual:

Build The Code:
Follow the instructions in section  3.4 Building the code.
% cd verification/exp2/build
% ../../../tools/genmake2 -mods=../code
Here I bumped into my first obstacle -- a puzzling error message. It's like that I should manually specify the optfile but finally I figured out that the problem was merely due to lack of a fortran compiler.
% sudo apt-get install gfortran
Now the corresponding optfile is  ../../../tools/build_options/linux_ia32_gfortran. Actually genmake2 can determine the optfile automatically now.
% ../../../tools/genmake2 -mods=../code
You can specify the opt-file with command line parameter -of=path_to_optfile
% make depend
% make
If compilation finished succesfully then an executable called mitgcmuvwill now exist in the local directory.

Run The Model:
% cd ../run
% cp ../input/* ./
% cp ../build/mitgcmuv ./
% ./mitgcmuv > output.txt

Install Matlab For Linux:

Read And Visualize Output in Matlab:
% /opt/matlab2009/bin/matlab
>> cd ~/MITgcm/utils/matlab
>> H=rdmds(’../../verification/exp2/run/Depth’);
>> contourf(H’);colorbar;
>> title(’Depth of fluid as used by model’);

>> eta=rdmds(’../../verification/exp4/run/Eta’,10);
>> imagesc(eta’);axis ij;colorbar;
>> title(’Surface height at iter=10’);

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值