I was trying to compile a project which solves the Navier-Stokes on a sphere available here: https://fms.gfdl.noaa.gov/gf/
the default compiler used is ifort, and I wanted to use gfortran, since I want to make it finally available to whoever wishes to use it.
at some points in the code, there are statements like
if (x == y)
,where x and y are both derived types (called domain1d/2d) containing integers, reals and pointers. gfortran complains saying that the comparison is between non numbers and quits.
I then downloaded a trial version of ifort and it compiled without issues.
So, I wanted to know whether this is some kind of ifort shorthand to actual comparison of each member of the type/structure (im more comfortable with the C terminology!) or whether im missing something fundamental, being new to fortran?
I understand comparing derived types makes little sense sometimes, but here it simply seems to be checking whether both carry the same information.
Thanks, Joy