Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

SECNDS broken?

dbruceg
Beginner
1,560 Views

You might have a look at the SECNDS routine. The intrinsic function gives different results than the IFPORT version, and it appears that BOTH of them are broken.

Bruce

0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,560 Views
Exactly what do you see? I see this:

- The intrinsic returns a correct value (with an exception noted later) to hundredths of seconds
- The ifport routine always returns an integer valued result (no hundredths)
- If the intrinsic would return zero after subtracting the argument, it returns 86400 instead - the ifport routine doesn't.

The latter two I'll agree are wrong and I'll report that.
0 Kudos
dbruceg
Beginner
1,560 Views

I haven't got the stuff in front of me, but that looks just like what I was getting last night. I got the 86400's, though I didn't notice the correlationwith a returned zero. Could very well be, though, and that gives me a workaround. I noticed that the IFPORT routine returned no hundredths, but I also suspected that the integral value was wrong, since things that should have clocked a few seconds (I think) reported zero ET. That, however, is only a suspicion.

Bruce

0 Kudos
Steven_L_Intel1
Employee
1,560 Views
The integral value was just fine in my tests. Truncated, but otherwise correct. I have reported these to the developers.
0 Kudos
Reply