This version of NEC2 runs on PC-386/486. It is compiled with 32-bit Lahey Fortran. It requires only about 2.4 MByte memory to run (DOS or WINDOWS) Jos (Jozef R. Bergervoet, bergervo@prl.philips.nl) ======================================================== The Lahey compiler required the following changes to the NEC2D FORTRAN source from the netcom ftp-site: 1) IRESRV decreased from 4M to 100k on line 23, set to 2 (as dummy) in rest of file. This influences memory requirement at start-up: IRESRV=100k ==> requires about 2.5 MByte IRESRV=275k ==> requires about 5.2 MByte IRESRV=4M ==> requires about 65 MByte 2) Commented out line 91, uncommented line 90: OPEN (UNIT=2,FILE=INFILE,STATUS='OLD',ACTION='READ',ERR=702) 3) Changed TYPE to PRINT on line 3175: PRINT 1,MSG(IND+2:MSGLEN) 4) Customized cpu-time routine SECONDS on line 8182: C LAHEY ON PC: CALL TIMER(ITICKS) CPUSECS = ITICKS/100 RETURN END ======================================================== To compile with Lahey one should use: F77L3 nec2d.for /Q1 /No /NS 386LINK nec2d -nozui -pack -lib vaxibm3 CFIG386 nec2d -nosignon For a stand-alone executable (linked-in DOS-extender) which in addition uses disk virtual memory the link-command should be: 386LINK nec2d -nozui -pack -lib vaxibm3 -stub runb vmmb This has no effect under Windows (DPMI overtakes Lahey vmm) but it should work under DOS.