PRODUCTS: NONMEM® USER TIPS

These tips are brought to you as information of interest from experiences in using NONMEM. All tips can also be found in the tips folder on the NONMEM Repository@GloboMax.

Tip # 14 - A new setup file for installing NONMEM V with Intel Fortran 7.0 for Windows:

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!