NEC-LIST:NEC, g77, and Mac OS X

From: Darryl Holder <darryl_h_at_email.domain.hidden>
Date: Thu, 25 Apr 2002 23:15:42 -0500

All:

For anyone who may be interested, I have successfully compiled NEC-4.1
double-precision version (as a test case) on a Macintosh running Mac OS X. The
process was (suprisingly to me) a very straightfoward use of the OS X Terminal
command-line and the g77 compiler.

A few pointers for anyone who may venture this way:

1 - Use the suggestion of Raymond Anderson's reply in response to a similar
inquiry by John Wood in reguard to g77 and RH Linux. Mr. Anderson suggested the
use of the '-fno-automatic' command line switch at compile time. For my case,
this would make the entry 'g77 nec4d.f -fno-automatic'. After a little
churn-and-burn the compile was completed. The applicaton was tested on the
included examples and produced the expected output - which leads to the next
items.

2 - Be certain to construct your antenna models using SPACES NOT TABS to
seperate items on a line (like GW commands). I had sometimes used tabs for
parameter seperations in the Classic Mac OS version of NEC-4 - won't work here.

3 - Also be certain to use UNIX NOT CLASSIC MAC line endings for your models
(well, duh! - it IS Unix after all, kinda).

I have compiled both the as-supplied NEC-4 and I have modified the NECPAR.INC
file to accomidate larger models. Both compiled correctly (well, a few
apparently non-critical warnings) and it successfully processed a few antenna
models.

If I run into any 'gotchas' I will post those. Also, if anyone knows of other
elephant traps that I may fall into, please post those (I know almost nothing
about Fortran programming and compiling).

Reguards,

Darryl Holder (A.S. Army Aviation and Missile Command)

-- 
The NEC-List mailing list <nec-list_at_gweep.ca>
http://www.gweep.ca/mailman/listinfo.cgi/nec-list
Received on Fri Apr 26 2002 - 04:16:55 EDT

This archive was generated by hypermail 2.2.0 : Sat Oct 02 2010 - 00:10:42 EDT