You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the intrinsic function atan has only one argument, but it is used with two here. This is causing an error in the nvhpc compiler. I'm not sure why the other compilers do not complain?
The text was updated successfully, but these errors were encountered:
Using atan2 appears to work. This was tested with nvhpc/24.3 and nvhpc/24.9 using test:
program test_atan2
real(4) :: x = 1.e0_4, y = 0.5e0_4
real(4) :: z
z = atan(y,x)
print *,'atan(',y,',',x,') =',z
z = atan2(y,x)
print *,'atan2(',y,',',x,') =',z
end program test_atan2
nvfortran test_atan.F90
/usr/bin/ld: /glade/derecho/scratch/cesmrt/tmp/nvfortranYcyvwwAdBk4T.o: in function MAIN_': /glade/u/home/cesmrt/test_atan.F90:4: undefined reference to atan_'
the intrinsic function atan has only one argument, but it is used with two here. This is causing an error in the nvhpc compiler. I'm not sure why the other compilers do not complain?
The text was updated successfully, but these errors were encountered: