爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 8932|回复: 9

求教CMAQ5.2 configure文件编译

[复制链接]
发表于 2018-9-28 15:41:09 | 显示全部楼层 |阅读模式

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

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

x

                               
登录/注册后可看大图


新人发帖,求教CMAQ5.2的安装编译过程。

如图所示,上面这一行是什么意思?


密码修改失败请联系微信:mofangbao
 楼主| 发表于 2018-9-28 15:47:14 | 显示全部楼层
为啥图片没有显示==
手打一下:
$ ./configure_cmaq.csh intel
Compiler is set to intel.
0: Event not found.


以下是修改后的configure脚本:
setenv CMAQ_HOME /public/home/xiayan/program/CMAQ-5.2

setenv CMAQ_REPO $CMAQ_HOME

setenv CMAQ_DATA $CMAQ_HOME/data
if ( ! -d $CMAQ_DATA ) mkdir -p $CMAQ_DATA

cd $CMAQ_HOME

# set the conpileroption
if ( $#argv == 1 ) then
setenv compiler $1
    setenv compilerVrsn Empty


密码修改失败请联系微信:mofangbao
 楼主| 发表于 2018-9-28 15:51:04 | 显示全部楼层
# set the conpileroption
if ( $#argv == 1 ) then
    setenv compiler $1
    setenv compilerVrsn Empty
else if ( $#argv == 2 ) then
    setenv compiler $1
    setenv compilerVrsn $2
else if ( $#argv == 0 ) then
if ( ! $?compiler ) then
      echo "Error: 'compiler' should be set either in the"
      echo "       environment or as input to config.cmaq"
      echo "       Example:> ./config.cmaq [compiler]"
      echo "       Options: intel | gcc | pgi"
exit
    else if ( ! $?compilerVrsn ) then
      setenv compilerVrsn Empty
    endif
else
echo "Error: Too many inputs to config.cmaq. This script"
    echo "       is expecting one input (the name of the"
    echo "       desired compiler. In some installations, you "
    echo "       may also be able to specify the compiler version "
    echo "       as the second input, but this is not by default."
    exit
endif
echo "Compiler is set to $compiler"

# Compiler flags and settings
switch ( $compiler )
case intel:

        setenv IOAPI_MOD_DIR   /public/home/lipengfei/lib/ioapi-3.1/  #> I/O API precompiled modules
        setenv IOAPI_INCL_DIR  /public/home/lipengfei/lib/ioapi-3.1/  #> I/O API include header files
        setenv IOAPI_LIB_DIR   /public/home/lipengfei/lib/ioapi-3.1/  #> I/O API libraries
        setenv NETCDF_LIB_DIR  /public/home/lipengfei/lib/netcdf-4.1.3 #> netCDF directory path
        setenv NETCDF_INCL_DIR /public/home/lipengfei/lib/netcdf-4.1.3 #> netCDF directory path
        setenv MPI_LIB_DIR     /public/software/mpi/mvapich2-2.1-intel    #> MPI directory path
  #> Compiler Aliases and Flags
        setenv myFC mpiifort
        setenv myCC icc
        setenv myFSTD "-O3 -fno-alias -mp1 -fp-model source"
        setenv myDBG  "-O0 -g -check bounds -check uninit -fpe0 -fno-alias -ftrapuv -traceback"
        setenv myLINK_FLAG "-openmp"
        setenv myFFLAGS "-fixed -132"
        setenv myFRFLAGS "-free"
        setenv myCFLAGS "-O2"
        setenv extra_lib "-lcurl"
        #setenv extra_lib ""
        setenv mpi_lib "-lmpich"    #> No Library specification needed for mpiifort
                                               #> -lmpich for mvapich
breaksw




密码修改失败请联系微信:mofangbao
发表于 2018-11-6 15:47:32 | 显示全部楼层
我也在安装5.2,请问楼主安装成功了吗?
密码修改失败请联系微信:mofangbao
发表于 2018-12-29 21:04:35 | 显示全部楼层
成功了吗 兄弟 能留个联系方式讨论讨论吗
密码修改失败请联系微信:mofangbao
发表于 2019-3-18 15:32:32 | 显示全部楼层
应该在csh下运行而不是直接在bash下运行,终端输入csh即可。
密码修改失败请联系微信:mofangbao
发表于 2019-3-21 15:09:51 | 显示全部楼层
你自己也看到了是 .csh,所以只能在csh下运行,你目前是在bash下。
直接 csh再输入./configure........即可。
密码修改失败请联系微信:mofangbao
发表于 2019-6-15 11:17:22 | 显示全部楼层
请问您这个问题解决了吗,我也是卡在这无法进行下去了
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-9-13 14:14:45 | 显示全部楼层
这个csh的作用就是产生CMAQ文件下的data和lib文件夹
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2020-12-26 21:15:11 | 显示全部楼层
saisama 发表于 2018-9-28 15:47
为啥图片没有显示==
手打一下:
$ ./configure_cmaq.csh intel

请问后来怎么解决的?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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