RadioBanter

RadioBanter (https://www.radiobanter.com/)
-   Antenna (https://www.radiobanter.com/antenna/)
-   -   NEC-1.2 compile error with g77 FORTRAN (https://www.radiobanter.com/antenna/107818-nec-1-2-compile-error-g77-fortran.html)

WaveMaker October 24th 06 08:01 PM

NEC-1.2 compile error with g77 FORTRAN
 
I downloaded the NEC source code from http://www.qsl.net/m5aiq/nec.html

My compiler is GNU FORTRAN (g77).

The compile error is: "Reference to intrinsic function 'SECNDS' as if
it were a subroutine at (^)"

My FORTRAN is a bit rusty, before I go climb that hill, can a wise old
coder offer a fix?


Brian Howie October 24th 06 09:23 PM

NEC-1.2 compile error with g77 FORTRAN
 
In message om,
WaveMaker writes
I downloaded the NEC source code from http://www.qsl.net/m5aiq/nec.html

My compiler is GNU FORTRAN (g77).

The compile error is: "Reference to intrinsic function 'SECNDS' as if
it were a subroutine at (^)"

My FORTRAN is a bit rusty, before I go climb that hill, can a wise old
coder offer a fix?

It's used to work out execution time

There is a call to a subroutine SECNDS . SECNDS is a built in function
in gnu FORTRAN that interrogates the computer clock

http://gcc.gnu.org/onlinedocs/gcc-4....an/SECNDS.html

remove the "CALL" and it should work


Brian GM4DIJ
--
Brian Howie

Arie October 24th 06 09:37 PM

NEC-1.2 compile error with g77 FORTRAN
 
WaveMaker schreef:

I downloaded the NEC source code from http://www.qsl.net/m5aiq/nec.html

My compiler is GNU FORTRAN (g77).

The compile error is: "Reference to intrinsic function 'SECNDS' as if
it were a subroutine at (^)"

My FORTRAN is a bit rusty, before I go climb that hill, can a wise old
coder offer a fix?


You could download my slightly modiefied Nec2 source code at
http://home.ict.nl/~arivoors/Nec2dXS_src.zip

I once encountered similar problems. You could compare both sources to
see what I changed to overcome the error message.

Arie.



All times are GMT +1. The time now is 02:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
RadioBanter.com