Re: NEC-LIST: NEC4 in a Linux environment

From: John B. Wood <wood_at_email.domain.hidden>
Date: Thu, 4 Mar 2004 16:23:04 -0800 (PST)

>Hello all,
>
>I was just wondering if anyone had ever tried to compile NEC4 in a Linux
>environment, and if so what compiler flags did you use. Also, if you have
>ever used Portland Group compilers to compile NEC-4 what flags did you use.
>I would need to know for the double precision version of NEC-4 not the
>single precision version.
>
>Thanks,
>Justin McKinnerney

Hello. I ran a thread on this subject a while back. NEC 4.1 can be
somewhat optimized to run on a Linux box by compiling with g77 as
follows:

g77 nec41.f -O3 -fno-automatic

where nec41.f is the NEC 4.1 f77 source code file. The default
executable filename will be nec41.o. The above gave me results
consistent with those I had obained on an old HPUX workstation. You
might also try

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

This version of the compile was published in the Nov. '98 ACES
newletter but I never could get the executable to run reliably on the
laptop I was using (Panasonic Toughbook CF-27). Sincerely,

-- 
John Wood                               (202) 767-2608
Code 5550                               (202) 767-3377 (FAX)
U.S. Naval Research Laboratory          e-mail: wood_at_itd.nrl.navy.mil
4555 Overlook Avenue, SW                WWW: http://server5550.itd.nrl.navy.mil
Washington, DC 20375-5337
-- 
The NEC-List mailing list <nec-list_at_gweep.ca>
http://www.gweep.ca/mailman/listinfo.cgi/nec-list
Received on Fri Mar 05 2004 - 00:23:16 EST

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