NEC-LIST:NEC 4.1 & g77

From: John B. Wood <wood_at_email.domain.hidden>
Date: Tue, 4 Jun 2002 16:33:35 -0400

Hello, all. Just thought I'd bring everyone up-to-date on my efforts
with RH Linux, g77, and NEC 4.1. I never did hear back from Jurgen
Von Hagen but this is the command that I originally used to compile
NEC 4.1 (from my NEC-LIST posting of 11/30/01):

I used the g77 compiler (p/o GCC-2.95) that comes with the Red Hat
Linux 7.1 distribution CDs to compile NEC 4.1D. The g77 compiler
options were those used by Jurgen Von Hagen in compiling NEC 2D (re
ACES Newsletter Nov '98):

        g77 -O3 -fno-emulate-complex -funroll-loops nec41d.f

While the compile process issued a couple of warnings about same name
for global and intrinsic and array size, the compile completed
without error.

The problem was that the output results (antenna driving pt impedance
& average gain) from a modeling run (there were no run time errors)
were not consistent with those obtained with the same model on other
UNIX and Windows platforms.

I am using Red Hat 7.1 on a Panasonic Toughbook CF-27. Now, noticing
a recent posting from Ray Anderson I tried compiling NEC 4.1 with

g77 -O3 -fno-automatic nec41d.f

and this worked. I'm not sure why Jurgen was using the
-fno-emulate-complex instruction but that (not -funroll-loops)
appears to be at the heart of the problem I was encountering.

The only other issue I have to resolve is that I if I compile NEC 4.1
for more than 3500 segments (MAXSEG=3500, MAXMAT=3500) the NEC
executable will cause a segmentation fault/core dump. Any thoughts
in this area would certainly be welcome. Sincerely,

-- 
        __    __     ______       __   John Wood
       /  |\ / /\   / ____ \     / /\  Code 5551
      / | ||/ / /  / /\__/ /|   / / /  U.S. Naval Research Lab
     / /| |/ / /  / /_/_/ / /  / / /   4555 Overlook Avenue, SW
    / / |   / /  / ___   / /  / / /    Washington, DC 20375-5337
   / / /|  / /  / /\_| |\_/  / /_/_    (202) 767-2608
  /_/ / |_/ /  /_/ / |_||   /_____/\   (202) 767-3377 (FAX)
  \_\/  \_\/   \_\/  \_\|   \_____\/   e-mail: wood_at_itd.nrl.navy.mil
                             WWW: http://server5550.itd.nrl.navy.mil
ITS NEVER SAFE TO BE NOSTALGIC ABOUT SOMETHING UNTIL YOU'RE 
ABSOLUTELY CERTAIN THERE'S NO CHANCE OF ITS COMING BACK. - Bill Vaughn
-- 
The NEC-List mailing list <nec-list_at_gweep.ca>
http://www.gweep.ca/mailman/listinfo.cgi/nec-list
Received on Tue Jun 04 2002 - 20:34:57 EDT

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