fortran错误记录

A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association.   [PCOLS]
    real(r8),            intent(in)    :: taux(pcols)               ! x surface stress  [ N/m2 ]
-----------------------------------------------^

这可能是由于索引中的变量没有定义的原因


 warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value.   [PBLH]

这是由于intent(out)的变量没有计算出值,会警告一下,但是不会报错。


cas-esm 在运行过程中的一些问题

application called MPI_Abort(MPI_COMM_WORLD, 1) - process 801
 ENDRUN:ADDFLD:  USTAR already on list
 ENDRUN:ADDFLD:  USTAR already on list
 

这是因为多次进行addfld()的原因


pbl_iap.F90(56): error #6401: The attributes of this name conflict with those made accessible by a USE statement.   [CPAIR]
        real(r8) :: cpair     ! specific heat of dry air

这是由于use 了别的module 的变量,就不需要再定义了。


pbl_iap.F90(320): error #6417: The dimensions of this array have been defined more than once.   [SLV]
    real(r8) :: slv(pcols,pver)                                 !湿净力能

这是因为多次定义的原因,直接删掉其中一个就好了


pbl_iap.F90(369): error #6366: The shapes of the array expressions do not conform.   [SLV]
     slv(:ncol,:pver) = sl(:ncol,:pver) * ( 1._r8 + zvir*ptend%q(:ncol,:pver,1) ) 

数组表达式的形状不一致


pbl_iap.F90(1969): error #6414: This PARAMETER constant name is invalid in this context.   [CPAIR]
  cpair = cpair_in

由于module中use 了cpair

module中的子程序不能再用同样的变量名字了。


pbl_iap.F90(852): error #6633: The type of the actual argument differs from the type of the dummy argument.
                call proport_adjust(latvals(i),10*3.14/180,5*3.14/180,0.0,latvals(i) )

这个表示实参和虚参的数据类型不一致,不要直接把数字当变量放在实参上这样可能报错.


 call outfld('hsb_coare',    hsb, pcols, lchnk) 

pbl_iap.F90(561): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [FIELD]
pbl_iap.F90(561): error #8284:如果实际参数为标量,则虚拟参数应为标量,除非实际参数为字符类型或非假定形状、指针或多态的数组元素。(场)

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值