Dear Bjarne,
> Did you guard the test "<= -10." against rounding errors? No matter if the bathy is read from single or double the number "-10" cannot be represented exactly in IEEE floating point arithmetic. As a consequence, you should ensure that "-10+epsi" is also LAND. You could make the test with e.g. -9.999D0 or something similar...
> I don't know how you actually implemented it, just being cautious here. And using the lists to tell people to be cautious regarding these issues.
>
Since the issue was also sent to the users list, indeed I did not
mention all details. The basic implemention is untouched:
where (H .gt. Hland+SMALL) az=1
The only thing I did was to initialise Hland=-10.0 instead of keeping it
uninitialised (luckily most compilers seemed to initialise it then at
least to 0.0).
Knut