Nvfortran: Lowering Error

Hi,

I get the following error when compiling some fortran code with nvfortran (23.7)
Lowering Error: symbol vol$sd is an inconsistent array descriptor
NVFORTRAN-F-0000-Internal compiler error. Errors in Lowering 1 (geom_mod.F90: 1083)
NVFORTRAN/x86-64 Linux 23.7-0: compilation aborted

Any help would be appreciated.

Cheers,
Jyoti

Hi Jyoti,

Thanks for the report. Would you be able to provide a minimal example that reproduces the error?

The error itself is a generic compiler issue so I’ll need a way reproduce it so I can file a report and possibly get you a work around.

-Mat

Hi Mat,

I appreciate your prompt response.

I worked on it further. Here is what throws the error statement:
CALL linfit(x=[(z0+REAL(i-1,KIND=dp)*dz,i=1,iz)], y=vol(1:iz,NINT((xMS-x0)/dx)+1,1), a=a, b=b)
iz is some integer, linfit is a subroutine that does a linear fitting to some data in x and y arrays.

However, when I replace the above x and y arrays with predefined arrays, compilation error disappears:
ALLOCATE(xVec(iz), yVec(iz))
xVec = [(z0+REAL(i-1,KIND=dp)*dz,i=1,iz)]
yVec = vol(1:iz,NINT((xMS-x0)/dx)+1,1)
CALL linfit(x=xVec, y=yVec, a=a, b=b)
DEALLOCATE(xVec, yVec)

Let me know if you would still prefer to have a full code.

Cheers,
Jyoti

Hi Jyoti,

Unfortunately there not enough information here to reproduce the error. Ideally you can provide a small stand-alone reproducing example, but if that’s not possible, access to the full code will work. I can then strip it down to an example that I can send to engineering.

-Mat