爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 17313|回复: 13

CMAQ5.2 bldmake编译 请教

[复制链接]
发表于 2018-11-23 16:41:14 | 显示全部楼层 |阅读模式

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

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

x
安装CMAQ5.2的时候,在CMAQ/UTIL/bldmake/scripts/bldit_bldmake一直编译不成功,出现BLDER:Undefined variable,(但是实际脚本应该没有修改的地方)有没有大神装过CMAQ5.2,告诉我这里需要编译吗?或者怎么解决这个问题?万分感谢!
密码修改失败请联系微信:mofangbao
发表于 2018-11-25 20:03:14 | 显示全部楼层
自己去github上看吧。
密码修改失败请联系微信:mofangbao
回复 支持 0 反对 1

使用道具 举报

发表于 2018-11-25 20:00:17 | 显示全部楼层
https://github.com/USEPA/CMAQ/blob/5.2.1/DOCS/User_Manual/CMAQ_OGD_ch05_sys_req.md
Compile Bldmake
In CMAQv5.2.1, bldmake is compiled automatically the first time you run any of the CMAQ build scripts. If you prefer to run the build as a separate step, the bldmake build script is in $CMAQ_REPO/UTIL/bldmake/scripts.
Compile the CMAQ programs
Create the model executables for ICON, BCON, MCIP, and CCTM.
ICON and BCON can be configured for different chemical mechanisms and for different kinds of input data. The configuration options for ICON and BCON are discussed in detail in Chapter 7.
Use the following commands to compile ICON and BCON:
cd $CMAQ_HOME/PREP/iconbldit_icon.csh [compiler] [version] |& tee build_icon.logcd $CMAQ_HOME/PREP/bconbldit_bcon.csh  [compiler] [version] |& tee build.bcon.logwhere,[compiler] can be either intel, pgi, or gcc[version] is the version number of the compiler, e.g. 4.8.1
Like the program Bldmake, MCIP is compiled using a Fortran Makefile.
Use the following commands to compile MCIP:
cd $CMAQ_HOME/PREP/mcip/srcsource ../../../config_cmaq.cshmake |& tee make.mcip.log
The CCTM has multiple configuration options that can be changed to optimize model performance for different applications. In addition to selecting the chemical mechanism to model gas-phase chemistry, the user can also select from several different science modules. The science configuration options for CCTM are discussed in detail in Chapter 4 and Chapter 7. The distribution CCTM build script is configured to create a multiprocessor executable for the installation test simulation. For multiprocessor applications, CMAQ uses the message passing interface (MPI) to manage communication between processors in a clustered multiprocessor computing environment. The location of the MPI include and library files on your Linux system are specified in the config_cmaq.csh script.
For single-processor (serial) systems, configure the CCTM build script to create a single-processor executable by commenting out the line that activates the variable “ParOpt” of the CCTM build script. Use the following commands to compile CCTM:
cd $CMAQ_HOME/CCTM/scriptsbldit_cctm.csh [compiler] [version] |& tee build_cctm.log
The programs CHEMMECH and CALMAP are also not needed for the test simulation but can be compiled using Makefiles.

密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

发表于 2018-11-23 19:12:52 | 显示全部楼层
问问题应该把报错的log贴出来。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2018-11-25 15:06:47 | 显示全部楼层
weilin421 发表于 2018-11-23 19:12
问问题应该把报错的log贴出来。

log文件里面只有一行
BLDER: Undifined variable
密码修改失败请联系微信:mofangbao
发表于 2018-11-25 19:44:43 | 显示全部楼层
鱼儿不哭 发表于 2018-11-25 15:06
log文件里面只有一行
BLDER: Undifined variable

我试了下cmaq5.2.1. bldmake不需要单独再进行独立编译了, 你编译ic bc时候会自动检验 如果没有编译过bld模块,自动变异,BLDER也是在编译ic bc的脚本里设定了,所以你只需要编译PREP里面的模块就够了,没必要单独进UTIL下编译bldmake,你是不是编译过之前版本的cmaq。
估计5.2之后版本也有新版的编译说明吧,总体上看还是比5.1及之前版本的编译过程简化了。
密码修改失败请联系微信:mofangbao
发表于 2019-3-14 10:35:31 | 显示全部楼层
你可以试一试用git init
git add .
git comment -m "your github email address"
git branch 就行了
密码修改失败请联系微信:mofangbao
发表于 2019-9-11 13:42:21 | 显示全部楼层
楼主,您好,请问你这个问题解决了吗,我在安CMAQ5.3的时候也遇到了这个问题。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-10-22 20:17:51 | 显示全部楼层
tianxiaolei 发表于 2019-9-11 13:42
楼主,您好,请问你这个问题解决了吗,我在安CMAQ5.3的时候也遇到了这个问题。

你好,能不能跟您交流一下安装的问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-11-8 15:27:18 | 显示全部楼层
Rainzmh 发表于 2019-10-22 20:17
你好,能不能跟您交流一下安装的问题

我也不是很懂,我是在别人的帮助下安装成功的
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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