Changed array sizes to be able to compile with mcmodel=medium and produce statically linked binary. Max rge points 500, max layers 60 and max elements per layer 12.

This commit is contained in:
2023-01-26 22:18:59 +01:00
parent b18ec1c5fe
commit d2ff626c8c
3 changed files with 5 additions and 5 deletions

View File

@@ -14,8 +14,8 @@ WARN = # -Wall -Wextra
DIALECT = -std=gnu
prefix = /usr/local
# OPS = -c $(DIALECT) $(WARN) $(DEBUG)
FCFLAGS = $(DIALECT) $(WARN) $(DEBUG) -O3 -mcmodel=large
#FCFLAGS = $(DIALECT) $(WARN) $(DEBUG) -O3 -mcmodel=medium
#FCFLAGS = $(DIALECT) $(WARN) $(DEBUG) -O3 -mcmodel=large
FCFLAGS = $(DIALECT) $(WARN) $(DEBUG) -O3 -mcmodel=medium
all : trimspNL

View File

@@ -55,10 +55,10 @@ C and maximum number of points in the depth distribution MAXD
C This is the only point where the number of layers and depth
C profile are changed. All other parameters should be changed
C accordingly.
PARAMETER (MAXD=1000)
PARAMETER (MAXNL=100)
PARAMETER (MAXD=500)
PARAMETER (MAXNL=60)
C Maximum number of elements in each layer, was limited to 5.
PARAMETER (MAXEL=10)
PARAMETER (MAXEL=12)
PARAMETER (MAXD1=MAXD+1)
PARAMETER (MAXD2=MAXD+2)
PARAMETER (MAXD5=MAXD*MAXEL)

BIN
trimspNL

Binary file not shown.