$SIZES

Array sizes for NONMEM and PREDPP.

1
2
3
4
 $SIZES  [constant=value] [constant=value] ...

;# EXAMPLE
 $SIZES LIM1=30000 MAXFCN=2000000 NO=500

Discussion

$SIZES is optional. If present, it must precede the first $PROBLEM or $SUPER record.

Certain constants are used in NM-TRAN, NONMEM and PREDPP. With NONMEM 7.2 and higher, the user may override many of the constants with the $SIZES record.

See the discusion of sizes for a discussion of how these constants are determined, and how they are communicated to NONMEM and PREDPP. (See SIZES,FSIZES,PRSIZES)

Any non-zero value (0 values are ignored) specified on the $SIZES record overrides both the default and the value that NM-TRAN would have specified. As of NONMEM 7.3, as an alternative to modifying sizes.f90 to very large maximum sizes, you can tell NMTRAN the maximum size that may be needed by specifying a $SIZES constant as a negative value. Thus, a user can give NMTRAN permission to deal with all problems that have data input files that have up to 1000 data items, and up to 150 ETAs and EPSILONs, and up to 200 THETAs, by the following:

1
$SIZES PD=-1000 LVR=-150 LTH=-200

but the values of these constants when the NONMEM executable is constructed will be only what is needed for the particular problem. In contrast,

1
$SIZES PD=1000 LVR=150 LTH=200

will result in sizing the NONMEM executable with these values, and won't make a "tailor fit". This would result in a very large executable regardless of the model size. Thus,

1
$SIZES PD=-1000

tells NMTRAN that you may need as many as 1000 data items in a data file, whereas

1
$SIZES PD=1000

tells NMTRAN that you need exactly that size.

List of $SIZES Record Options and Their Default Values

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
    LTH=100
    LVR=30
    LVR2=20
    NO=250
    MMX=10
    LNP4=4000
    LSUPP=4050
    LIM7=2
    LWS3=9000
    MAXIDS=10000
    LIM1=10000
    LIM2=100000
    LIM3=10000
    LIM4=1000
    LIM5=200
    LIM6=400
    LIM8=200
    LIM11=25
    LIM13=1000
    LIM15=1000
    LIM16=400
    MAXRECID=200
    PC=30
    PCT=30
    PIR=700
    PD=50
    PDT=50
    PAL=50
    MAXFCN=1000000
    DIMTMP=500
    DIMCNS=500
    DIMNEW=1000
    DIMVRB=200
    PL=10
    NPOPMIXMAX=10
    MAXOMEG=70
    MAXPTHETA=90
    MAXITER=210
    ISAMPLEMAX=10
    MAXSIDL=0
    PNM_MAXNODES=100
    MAXNRDS=PC
    PAST_SIZE=4000

See resource/SIZES.f90 for additional constants that may be set with $SIZES.

(See SIZES, FSIZES, PRSIZES).