follow the dry core procedure, the first problem we meet is
#error: unknown fpp directive.
vi /global/home/groups/co_aiolos/models/spec_moist_idl_gfdl_model/src/shared/include/fms_platform.h
and give two space before the first _, done.
Next, the model was compiled smoothly, when it hit the link process, throw a problem
atmos_model.o: In function `atmos_model_init':
/global/home/groups/co_aiolos/models/spec_moist_idl_gfdl_model/src/atmos_solo/atmos_model.F90:290: undefined reference to `omp_set_num_threads_'
compared with dry core, comment corresponding lines
vi /global/home/groups/co_aiolos/models/spec_moist_idl_gfdl_model/src/atmos_solo/atmos_model.F90
IT WORKS!
如果采用shell嵌套调用的方式执行一个复杂的自动化脚步,比如编译运行model,编译的过程很容易出错,那么外层脚本应考虑到这个问题并且在编译出错的情况下退出程序。这时上一条命令的状态码就派上用场了。
if [ $? -eq 0 ] [$? 就是上一条命令执行的状态码] then echo $i fi
发现conda下缺少一些pip包,其实用conda自己的pip安装就可以。
anaconda2-4.1.1/bin/pip
也可以把之前版本python的pip包复制过来
/lib/python2.7/site-packages