cad/calculix-ccx: Re-enable multithreading with spooles.

Clarify further the pkg-messager.

PR:	249351
Approved by:	thierry (mentor, implicit)
This commit is contained in:
Pedro F. Giffuni 2020-09-22 17:31:28 +00:00
parent 9c5d8b9aed
commit 96805d662c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549613
3 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= ccx
PORTVERSION= 2.17
PORTREVISION= 1
CATEGORIES= cad
MASTER_SITES= http://www.dhondt.de/
PKGNAMEPREFIX= CalculiX-

View File

@ -4,7 +4,7 @@
-CFLAGS = -Wall -O2 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DNETWORKOUT
-FFLAGS = -Wall -O2
+CFLAGS += -O2 -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/spooles -DARCH="FreeBSD" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DNETWORKOUT
+CFLAGS += -O2 -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/spooles -DARCH="FreeBSD" -DSPOOLES -DARPACK -DUSE_MT=1 -DMATRIXSTORAGE -DNETWORKOUT
+FFLAGS += -O2
-CC=cc

View File

@ -2,8 +2,8 @@
{ type: install
message: <<EOM
Spooles: by default the single-threaded solver is used unless you set the
CCX_NPROC_EQUATION_SOLVER environment variable with the number of
cores you want to use.
CCX_NPROC_EQUATION_SOLVER or the OMP_NUM_THREADS environment variables with
the number of cores you want to use.
EOM
}
]