Hello,
I get the following compilation error, while trying to compile ROMS on a 64 bit linux using gfortran.
Any ideas to sort this out would be appreciated.
Thanks,
Sankar
In file step2d.f90:125
integer, intent(in) :: krhs, kstp, knew
1
Error: Name 'krhs' at (1) is an ambiguous reference to 'krhs' from current program unit
In file step2d.f90:126
integer, intent(in) :: nstp, nnew
1
Error: Name 'nstp' at (1) is an ambiguous reference to 'nstp' from current program unit
In file step2d.f90:217
ptsk=3-kstp
1
Error: Name 'kstp' at (1) is an ambiguous reference to 'kstp' from current program unit
In file step2d.f90:228
Drhs(i,j)=zeta(i,j,krhs)+h(i,j)
1
Error: Name 'krhs' at (1) is an ambiguous reference to 'krhs' from current program unit
In file step2d.f90:233
DUon(i,j)=0.5_r8*(Drhs(i,j)+Drhs(i-1,j))*ubar(i,j,krhs)* &
1
Error: Name 'krhs' at (1) is an ambiguous reference to 'krhs' from current program unit
In file step2d.f90:239
DVom(i,j)=0.5_r8*(Drhs(i,j)+Drhs(i,j-1))*vbar(i,j,krhs)* &
1
Error: Name 'krhs' at (1) is an ambiguous reference to 'krhs' from current program unit
In file step2d.f90:280
Zt_avg1(i,j)=Zt_avg1(i,j)+cff1*zeta(i,j,krhs)
1
Error: Name 'krhs' at (1) is an ambiguous reference to 'krhs' from current program unit
In file step2d.f90:342
zeta_new(i,j)=zeta(i,j,kstp)+ &
1
Error: Name 'kstp' at (1) is an ambiguous reference to 'kstp' from current program unit
In file step2d.f90:355
zwrk(i,j)=0.5_r8*(zeta(i,j,kstp)+zeta_new(i,j))
1
Error: Name 'kstp' at (1) is an ambiguous reference to 'kstp' from current program unit
In file step2d.f90:370
zeta_new(i,j)=zeta(i,j,kstp)+ &
1
Error: Name 'kstp' at (1) is an ambiguous reference to 'kstp' from current program unit
In file step2d.f90:374
zwrk(i,j)=cff5*zeta(i,j,krhs)+ &
1
Error: Name 'krhs' at (1) is an ambiguous reference to 'krhs' from current program unit
In file step2d.f90:397
zeta_new(i,j)=zeta(i,j,kstp)+ &
1
Error: Name 'kstp' at (1) is an ambiguous reference to 'kstp' from current program unit
In file step2d.f90:403
zwrk(i,j)=cff5*zeta_new(i,j)+cff4*zeta(i,j,krhs)
1
Error: Name 'krhs' at (1) is an ambiguous reference to 'krhs' from current program unit
In file step2d.f90:417
zeta(i,j,knew)=zeta_new(i,j)
1
Error: Name 'knew' at (1) is an ambiguous reference to 'knew' from current program unit
In file step2d.f90:432
rzeta(i,j,krhs)=rhs_zeta(i,j)
1
Error: Name 'krhs' at (1) is an ambiguous reference to 'krhs' from current program unit
In file step2d.f90:441
gfortran ambiguous reference compilation error
Re: gfortran ambiguous reference compilation error
I always like having another compiler around for sanity checks on something like this. Is it ROMS or is it the compiler?
If it is ROMS, did an extra "use mod_stepping" creep into step2d_tile? Can you look at step2d.f90 and see any other reason why the compiler might be confused?
If it is ROMS, did an extra "use mod_stepping" creep into step2d_tile? Can you look at step2d.f90 and see any other reason why the compiler might be confused?
Re: gfortran ambiguous reference compilation error
Kate,
Thanks Kate!!! That is it.
Yes, USE mod_stepping had crept into my step2d_tile. I removed it and it solved the problem.
Sankar
Thanks Kate!!! That is it.
Yes, USE mod_stepping had crept into my step2d_tile. I removed it and it solved the problem.
Sankar