NONMEM 7.1.0 Known Problems - Update 01OCT09
With gfortran on Linux the SETUP7 script on the NONMEM 7.1.0
distribution CD does not provide optimization as the default or when it
is requested. However, the SETUP7 script can be edited to provide an
installation with optimization. (NOTE: The SETUP7.bat batch file for
installation of NONMEM 7.1.0 on Windows does provide optimization as the
default and if requested. No changes are needed to this file.)
1) Copy the contents of the NONMEM 7.1.0 distribution CD to a directory,
e.g. nm7CD, and change to that directory.
2) Edit the SETUP7 script by adding the statements between #***'s to the
section of SETUP7 code shown below.
# options for compile
op=" "
if [[ $o == y ]]; then
#*** Change IDS#1 30 Sept 2009
if [[ $ftail == gfortran ]]; then
op="-O3 -ffast-math "
fi
#***
if [[ $os == Darwin && $ftail == ifort ]]; then
op="-Gs -nologo -nbs -w -Ob1gyti -Qprec_div -4Yportlib -traceback
-vec-report0"
fi
if [[ $os != Darwin && $ftail == ifort ]]; then
op="-static -Gs -nologo -nbs -w -Ob1gyti -Qprec_div -4Yportlib
-traceback -vec-report0"
fi
if [[ $ftail == g95 && $os != "SunOS" ]]; then
op="-O3 -ffast-math -fsloppy-char"
fi
fi
3) Save the modified SETUP7 script.
4) Make a new directory, e.g. ../nm7.
5) Use the following or a similar command, depending upon other options
that are chosen, to perform the installation.
/bin/bash SETUP7 <path>/nm7CD <path>/nm7 gfortran y ar
This will install into nm7 and preserve the nm7CD directory as an image
of the CD but with the edited SETUP7 file.