From:"Bachman, William" 
Subject:[NMusers] NONMEM Tips #14 - January 24, 2003 - A new setup file for installing NONMEM V with Intel Fortran 7.0 for Windows
Date:Fri, 24 Jan 2003 15:28:16 -0500

A new setup file, setup3.bat, for installing NONMEM V with Intel Fortran 7.0
for Windows has been created.
"setup3.bat" can be downloaded from the GloboMax ftp site at:

ftp://ftp.globomaxnm.com/Public/nonmem/intel7/

The file is used in the same manner as the original "setup.bat" file.
Arguments must be specified from the DOS command prompt, e.g.:

setup3 a c nmv ifl y

where
a is the diskette drive
c is the hard drive
nmv is the install directory
ifl is the compiler command (for Intel Fortran)
y is yes for optimization

(setup3.bat can also be used with Compaq/Digital, GNU G77, or MS
Powerstation 4.0, by substituting df, g77 or fl32 for ifl in the above
command line).

The critical changes to the file related to compiler optimizations:

/nologo     - avoids an overwhelming number of version messages 
/nbs        - "no backslash", prevents "\" from being interpreted as as
escape sequence
/w          - avoids numerous F95 warnings
/4Yportlib  - required for modification to flu.for for buffer flushing
/Gs         - disables stack checking
/Ob1gyti    - related to inlining of functions
/Qprec_div  - disables floating point division-to-multiplication
optimization resulting in more accurate division results 

The NONMEM files that must be modified during setup are:

1. BLKDAT.FOR: change "con" to "CONOUT$"
2. FLU.FOR:
change "CALL COMMITQQ(I)"

to "USE IFLPORT
    LOGICAL J
    J = COMMITQQ(I)"
3. OFILES.FOR
comment out the UNIT 34 line, e.g.
"C          OPEN (UN(34),FILE=FNULL(1:I-1))"

References:
1. Email from: Nick Holford [mailto:n.holford@auckland.ac.nz]
Sent: Sunday, December 01, 2002 6:07 AM
To: nmusers
Subject: [NMusers] Intel Fortran 7 Compiler

2. http://wfn.sourceforge.net/g77inst.htm

Acknowledgement:  Kudos to Nick Holford for information shared with nmusers!


Previous tips may be found in the NONMEM Repository@GloboMax: 

ftp://ftp.globomaxnm.com/Public/nonmem/tips/

See the index.txt file for a listing of previous tips.

***************************************************************************
If you have a "tip" or a better way to do things, by all means, feel free to
post them!  One of the reasons for doing this (other than good PR for
GloboMax), is to stimulate discussion.  We at GloboMax can learn from your
experience as well.
Do you have a "tip" you would like to share, but would prefer to remain
anonymous?  If so, you may forward it to us and your identity will be
withheld.  Distribution as a "Tip of the Week" will be at the discretion of
nmconsult@globomaxnm.com.
***************************************************************************

nmconsult@globomaxnm.com
GloboMax LLC
7250 Parkway Drive, Suite 430
Hanover, MD 21076
Voice: (410) 782-2205
FAX: (410) 712-0737
_________________________________________


see Nick Holfords email on Intel 7.0 for windows