爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 14632|回复: 17

CESM 1.2.2 setup问题

[复制链接]

新浪微博达人勋

发表于 2015-12-2 14:03:42 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
作为一个新手小白,找了各种资料,可谓山穷水尽
在create_newcase的时候选择的是userdefined,用户手册上说要修改env_mach_pes.xml
我并不知道这个xml在哪里...
用户手册一笔带过,也没说应该如何修改...
然后硬着头皮./cesm_setup
发现报了如下的错误:
ERROR: must set xml variable OS to generate Macros file
ERROR: must set xml variable NTASKS_CPL to build the model
ERROR: must set xml variable NTASKS_ROF to build the model
ERROR: must set xml variable NTASKS_ICE to build the model
ERROR: must set xml variable CESMSCRATCHROOT to build the model
ERROR: must set xml variable NTASKS_WAV to build the model
ERROR: must set xml variable MPILIB to build the model
ERROR: must set xml variable NTASKS_OCN to build the model
ERROR: must set xml variable NTASKS_GLC to build the model
ERROR: must set xml variable RUNDIR to build the model
ERROR: must set xml variable DIN_LOC_ROOT to build the model
ERROR: must set xml variable COMPILER to build the model
ERROR: must set xml variable EXEROOT to build the model
ERROR: must set xml variable MAX_TASKS_PER_NODE to build the model
ERROR: must set xml variable NTASKS_LND to build the model
ERROR: must set xml variable NTASKS_ATM to build the model
Correct above and issue cesm_setup again

应该是要在xml设置的吧,不过并不知道这些都是什么意思,应该设置成什么样的值...
能否有哪位大神指导下这些应该都设置成什么值,或者链个教程啥的(本人cesm1.2.2),感激不尽~

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-12-2 16:45:49 | 显示全部楼层
lolilukia 发表于 2015-12-2 15:34
嗯嗯我之前看了您的这个帖子,对于那个图2有些疑问,恕我是个新手,图2中让填写run和build的路径,是自己 ...

<machine MACH="intel120">
        <DESC>CESM120,os is Linux, 16 pes/node, batch system is PBS</DESC>     随便写
        <OS>LINUX</OS>           <!-- LINUX,Darwin,CNL,AIX,BGL,BGP --> 写系统提示的之一,大小写跟提示一致
        <COMPILERS>intel</COMPILERS>     <!-- intel,ibm,pgi,pathscale,gnu,cray,lahey -->
        <MPILIBS>mpich</MPILIBS>                <!-- openmpi, mpich, ibm, mpi-serial --> 自己查自己用的什么类型的并行
        <RUNDIR>/model/cesm120/case/$CASE/run</RUNDIR>                       <!-- complete path to the run directory -->      自己随便设
        <EXEROOT>/model/cesm120/case/$CASE</EXEROOT>                     <!-- complete path to the build directory -->    自己随便设
        <DIN_LOC_ROOT>/model/indataCESM/120</DIN_LOC_ROOT>           <!-- complete path to the inputdata directory -->    自己随便设
    <DIN_LOC_ROOT_CLMFORC>/model/indataCESM/120/atm/datm7</DIN_LOC_ROOT_CLMFORC> <!-- path to the optional forcing data for CLM (for CRUNCEP forcing) -->  后边的atm/datm7是固定的,前边随意
        <DOUT_S>TRUE</DOUT_S>                 <!-- logical for short term archiving -->
        <DOUT_S_ROOT>/model/cesm120/archive/$CASE</DOUT_S_ROOT>               <!-- complete path to a short term archiving directory -->  自己随意
        <DOUT_L_MSROOT>UNSET</DOUT_L_MSROOT>           <!-- complete path to a long term archiving directory -->
        <CCSM_BASELINE>UNSET</CCSM_BASELINE>           <!-- where the cesm testing scripts write and read baseline results -->
        <CCSM_CPRNC>/model/cesm120/tools/cprnc</CCSM_CPRNC>                <!-- path to the cprnc tool used to compare netcdf history files in testing -->
        <BATCHQUERY>qstat</BATCHQUERY>   根据自己的作业提交系统来写
        <BATCHSUBMIT>qsub</BATCHSUBMIT>
        <SUPPORTED_BY>xw</SUPPORTED_BY>      随便写            
        <GMAKE_J>2</GMAKE_J>  这个地方是指你编译时候用的核心数,一般写1或2吧
        <PES_PER_NODE>8</PES_PER_NODE> 你用的服务器计算节点上每个CPU的核心数
        <MAX_TASKS_PER_NODE>16</MAX_TASKS_PER_NODE> 每个计算节点上的总核心数(或者线程数?)
</machine>

点评

谢谢,有帮助!  发表于 2016-3-25 10:43
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

新浪微博达人勋

发表于 2015-12-2 14:21:39 | 显示全部楼层
http://bbs.06climate.com/forum.php?mod=viewthread&tid=35950 看看是否有帮助,注意帖子中链接的其他帖子,也很重要
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-12-2 15:34:14 | 显示全部楼层
lhaikun@163.com 发表于 2015-12-2 14:21
http://bbs.06climate.com/forum.php?mod=viewthread&tid=35950 看看是否有帮助,注意帖子中链接的其他帖子 ...

嗯嗯我之前看了您的这个帖子,对于那个图2有些疑问,恕我是个新手,图2中让填写run和build的路径,是自己定义的吗还是系统中有特定目录?(后面的路径我也有类似的疑问),还有每个节点的核心数目,不知推荐填几?抱歉不知您方便把这一部分的参数贴上来参考一下吗
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-12-2 19:02:33 | 显示全部楼层
lhaikun@163.com 发表于 2015-12-2 16:45
CESM120,os is Linux, 16 pes/node, batch system is PBS     随便写
        LINUX          ...

太感谢了!!!虽然还有些问题,但是你帮了大忙了!!!感激不尽!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-12-2 19:05:58 | 显示全部楼层
lhaikun@163.com 发表于 2015-12-2 16:45
CESM120,os is Linux, 16 pes/node, batch system is PBS     随便写
        LINUX          ...

请问是在哪个单位上的机器上编译成功的呀
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-12-4 21:00:02 | 显示全部楼层
lhaikun@163.com 发表于 2015-12-2 16:45
CESM120,os is Linux, 16 pes/node, batch system is PBS     随便写
        LINUX          ...

感谢您的帮助,终于到了run的时候了,我现在用的是单机,没有集群
我执行case.run之后,得到的结果是这样的:
[root@localhost case]# ./case.run
PBS: Command not found.
PBS: Command not found.
PBS: Command not found.
PBS: Command not found.
PBS: Command not found.
PBS: Command not found.
PBS: Command not found.
BSUB: Command not found.
BSUB: Command not found.
BSUB: Command not found.
BSUB: Command not found.
BSUB: Command not found.
-------------------------------------------------------------------------
CESM BUILDNML SCRIPT STARTING
- To prestage restarts, untar a restart.tar file into /cesm/cesm1_2_0/case/run
infile is /cesm/cesm1_2_0/case/Buildconf/cplconf/cesm_namelist
CESM BUILDNML SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
CESM PRESTAGE SCRIPT STARTING
- Case input data directory, DIN_LOC_ROOT, is /cesm/cesm1_2_0/inputdata
- Checking the existence of input datasets in DIN_LOC_ROOT
CESM PRESTAGE SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
2015年 12月 04日 星期五 20:50:37 CST -- CSM EXECUTION BEGINS HERE
2015年 12月 04日 星期五 20:54:14 CST -- CSM EXECUTION HAS FINISHED
(seq_mct_drv): ===============       SUCCESSFUL TERMINATION OF CPL7-CCSM ===============
cp: No match.
Archiving ccsm output to /cesm/cesm1_2_0/archive/case
Calling the short-term archiving script st_archive.sh

st_archive.sh: start of short-term archiving
mv: 无法获取"/cesm/cesm1_2_0/archive/case/*" 的文件状态(stat): 没有那个文件或目录
st_archive.sh: restart files from end of run will be saved,
               interim restart files will be deleted
st_archive.sh: short-term archiving completed successfully
[root@localhost case]#

请问一下这是算是运行成功了吗?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-12-4 22:45:29 | 显示全部楼层
lolilukia 发表于 2015-12-4 21:00
感谢您的帮助,终于到了run的时候了,我现在用的是单机,没有集群
我执行case.run之后,得到的结果是这 ...

应该是成功了
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-12-5 18:54:08 | 显示全部楼层

好哒~谢谢噜~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-6-2 15:58:31 | 显示全部楼层
lhaikun@163.com 发表于 2015-12-2 16:45
CESM120,os is Linux, 16 pes/node, batch system is PBS     随便写
        LINUX          ...

你好,在config_machines.xml文件里面,有一个<CESMSCRATCHROOT>的目录设置,请问这个是用来干什么的?我在自己机器上应该怎么设呢?
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表