最近在学FVCOM,希望有什么问题大家留言互相讨论!谢谢!
FVCOM在官网上可以下载到的,申请一下过几天就会发邮件告知你可以下载的。我下载的是最新的FVCOM4.1
1 准备工作,确定这些是否安装。
[gq@localhost ~]$ su root
密码:
[root@localhost gq]# which icc
/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64/icc
[root@localhost gq]# which ifort
/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64/ifort
[root@localhost gq]# which icpc
/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64/icpc
[root@localhost gq]# which mpicc
/opt/openmpi/1.6.5/intel/bin/mpicc
[root@localhost gq]# which mpif90
/opt/openmpi/1.6.5/intel/bin/mpif90
2 创建一个工作目录放入FVCOM文件并且解压缩(解压缩文件这位大神解释的很清楚 https://www.jianshu.com/p/3d9effeef575)
[root@localhost gq]# cd ~
[root@localhost ~]# mkdir work
[root@localhost ~]# cd work
[root@localhost work]# dir
fvcom-4.1.tar.gz
[root@localhost work]# tar -xvf fvcom-4.1.tar.gz
3 进入FVCOM文件夹
[root@localhost work]# dir
FVCOM4.1 fvcom-4.1.tar.gz
[root@localhost work]# cd FVCOM4.1
[root@localhost FVCOM4.1]# dir
Configure FVCOM_offlines GOTM_source Pre-processing
Doc FVCOM_source METIS_source User-contributed-programs
Examples GOTM_inputs Post-processing
[root@localhost FVCOM4.1]# ll
总用量 12
drwxr-xr-x. 3 root root 62 12月 20 15:22 Configure
drwxr-xr-x. 2 root root 92 12月 20 15:22 Doc
drwxr-xr-x. 11 root root 157 12月 20 15:22 Examples
drwxr-xr-x. 6 root root 64 12月 20 15:22 FVCOM_offlines
drwxr-xr-x. 8 root root 8192 12月 20 15:22 FVCOM_source
drwxr-xr-x. 2 root root 55 12月 20 15:22 GOTM_inputs
drwxr-xr-x. 2 root root 40 12月 20 15:22 GOTM_source
drwxr-xr-x. 2 root root 23 12月 20 15:22 METIS_source
drwxr-xr-x. 3 root root 28 12月 20 15:22 Post-processing
drwxr-xr-x. 6 root root 134 12月 20 15:23 Pre-processing
drwxr-xr-x. 3 root root 20 12月 20 15:23 User-contributed-programs
[root@localhost FVCOM4.1]#
4 进入河口案例的make.inc,可以看看,这个案例已经写好的了
[root@localhost FVCOM4.1]# ls Examples/
cohesive_bed Estuary Inlets Lock-Exchange Sea ice
dike_groyne fluid_mud KFs River plume
[root@localhost FVCOM4.1]# cd Estuary
bash: cd: Estuary: 没有那个文件或目录
[root@localhost FVCOM4.1]# cd Examples/Estuary
[root@localhost Estuary]# ll