Skip to content

Commit

Permalink
calculix: enable pastix solver (#22872)
Browse files Browse the repository at this point in the history
  • Loading branch information
3rav authored Dec 26, 2024
1 parent 4586523 commit e828aca
Show file tree
Hide file tree
Showing 3 changed files with 1,608 additions and 11 deletions.
21 changes: 13 additions & 8 deletions mingw-w64-calculix-ccx/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Maintainer: Rafał Brzegowy <rafal.brzegowy@yahoo.com>
# Maintainer: Rafał Brzegowy <rafal.brzegowy@yahoo.com>

_realname=calculix-ccx
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.22
pkgrel=2
pkgrel=3
pkgdesc="CalculiX: 3D Structural Finite Element Program - Solver (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
Expand All @@ -16,19 +16,23 @@ depends=("${MINGW_PACKAGE_PREFIX}-arpack"
"${MINGW_PACKAGE_PREFIX}-omp"
"${MINGW_PACKAGE_PREFIX}-openblas"
"${MINGW_PACKAGE_PREFIX}-openblas64"
"${MINGW_PACKAGE_PREFIX}-pastix"
$([[ ${MINGW_PACKAGE_PREFIX} == *-clang-* ]] || echo "${MINGW_PACKAGE_PREFIX}-gcc-libgfortran"))
makedepends=("${MINGW_PACKAGE_PREFIX}-fc"
"${MINGW_PACKAGE_PREFIX}-spooles")
"${MINGW_PACKAGE_PREFIX}-spooles"
"${MINGW_PACKAGE_PREFIX}-pkgconf")
source=("http://www.dhondt.de/ccx_${pkgver}.src.tar.bz2"
"http://www.dhondt.de/gpl-2.0.txt"
"ccx_mingw.patch"
"ccx_ooc.patch"
"ccx_numeric_format.patch")
"ccx_numeric_format.patch"
"ccx_adapt_main_pastix.patch")
sha256sums=('3a94dcc775a31f570229734b341d6b06301ebdc759863df901c8b9bf1854c0bc'
'8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643'
'b9273f018257aeb1e99b23d0776d8b385f168cb22a9626778691d3d1405109f2'
'd85b176778749afa352c926d0c788906dc7d75bb0fa9dd977d5f23bfbe6812b0'
'dd81df3de137a05b45e39fe61830337e6405ec566148598dab2828a6d9780e8a'
'48323c6fb59b4af34b75be23819848b782fc1cb0428189d9545ed66d6a1bc10e')
'48323c6fb59b4af34b75be23819848b782fc1cb0428189d9545ed66d6a1bc10e'
'04db3443e3f199162cdfa4458a190dd660831a573b39a049bfe1156cca0be404')

apply_patch_with_msg() {
for _patch in "$@"
Expand All @@ -43,14 +47,15 @@ prepare() {
apply_patch_with_msg \
ccx_mingw.patch \
ccx_ooc.patch \
ccx_numeric_format.patch
ccx_numeric_format.patch \
ccx_adapt_main_pastix.patch
}

build() {
cd "${srcdir}/CalculiX/ccx_${pkgver}/src"

if [[ ${MINGW_PACKAGE_PREFIX} != *-clang-* ]]; then
CFLAGS+=" -fopenmp -Wno-incompatible-pointer-types"
CFLAGS+=" -fopenmp -Wno-incompatible-pointer-types -Wno-implicit-function-declaration"
FC=gfortran
export FFLAGS="-fallow-argument-mismatch -fopenmp -O2"
export OMP_LIBS="-lgomp -lquadmath"
Expand Down
Loading

0 comments on commit e828aca

Please sign in to comment.