outm_netcdf.F:154:48:
135 | status=nf_def_var(ncid,'longitude',nf_real,1,nlon1id,nlongit1id)
| 2
......
154 | status=nf_def_var(ncid,'temp',nf_double,3,dim1pass,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
以上是程序出错的部分,154:48位置的参数是dim1pass,dim1pass定义代码如下:
dim1pass(1)=nlon1id
dim1pass(2)=nlat1id
dim1pass(3)=ndep1id
nlon1id定义如下:
integer nlon1id,nlongit1id,ndep1id,nlat1id,nlatit1id,ndepth1id
integer nrecsid,ioffsetid
nf_def_var定义如下:
integer nf_def_var
! (integer ncid,
! character(*) name,
! integer datatype,
! integer ndims,
! integer dimids(1),
! integer varid)
external nf_def_var