summaryrefslogtreecommitdiff
path: root/math/octave-forge-mboct-fem-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'math/octave-forge-mboct-fem-pkg')
-rw-r--r--math/octave-forge-mboct-fem-pkg/Makefile31
-rw-r--r--math/octave-forge-mboct-fem-pkg/distinfo3
-rw-r--r--math/octave-forge-mboct-fem-pkg/files/patch-____mboct__fem__pkg____.cc20
-rw-r--r--math/octave-forge-mboct-fem-pkg/pkg-descr11
4 files changed, 65 insertions, 0 deletions
diff --git a/math/octave-forge-mboct-fem-pkg/Makefile b/math/octave-forge-mboct-fem-pkg/Makefile
new file mode 100644
index 000000000000..f130a4b41741
--- /dev/null
+++ b/math/octave-forge-mboct-fem-pkg/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= octave-forge-mboct-fem-pkg
+DISTVERSION= 0.2.2
+CATEGORIES= math
+
+MAINTAINER= stephen@FreeBSD.org
+COMMENT= Octave-forge package ${OCTAVE_PKGNAME}
+WWW= https://packages.octave.org/
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/../COPYING
+
+USES= octave autoreconf compiler:gcc-c++11-lib
+
+LIB_DEPENDS+= libgtest.so:devel/googletest \
+ libmetis.so:math/metis \
+ libmumps_common_seq.so:math/mumps \
+ libnlopt.so:math/nlopt
+
+RUN_DEPENDS+= ${OCTAVE_TARBALLS_DIR}/mboct-octave-pkg.tar.gz:math/octave-forge-mboct-octave-pkg \
+ ${OCTAVE_TARBALLS_DIR}/mboct-numerical-pkg.tar.gz:math/octave-forge-mboct-numerical-pkg \
+ ${OCTAVE_TARBALLS_DIR}/mboct-mbdyn-pkg.tar.gz:math/octave-forge-mboct-mbdyn-pkg
+
+USE_GITHUB= yes
+GH_ACCOUNT= octave-user
+GH_PROJECT= mboct-fem-pkg
+
+OCTAVE_SRC= ${GH_PROJECT}-${DISTVERSION}
+
+GNU_CONFIGURE= yes
+
+.include <bsd.port.mk>
diff --git a/math/octave-forge-mboct-fem-pkg/distinfo b/math/octave-forge-mboct-fem-pkg/distinfo
new file mode 100644
index 000000000000..31c9964ff6e6
--- /dev/null
+++ b/math/octave-forge-mboct-fem-pkg/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1756178339
+SHA256 (octave-forge/octave-user-mboct-fem-pkg-0.2.2_GH0.tar.gz) = 984b4afb71d78f45617a7ed4e9adc24e4d8ff5524a1a426fbad5e742ee0b9710
+SIZE (octave-forge/octave-user-mboct-fem-pkg-0.2.2_GH0.tar.gz) = 717500
diff --git a/math/octave-forge-mboct-fem-pkg/files/patch-____mboct__fem__pkg____.cc b/math/octave-forge-mboct-fem-pkg/files/patch-____mboct__fem__pkg____.cc
new file mode 100644
index 000000000000..7b3b128ce951
--- /dev/null
+++ b/math/octave-forge-mboct-fem-pkg/files/patch-____mboct__fem__pkg____.cc
@@ -0,0 +1,20 @@
+--- __mboct_fem_pkg__.cc.orig 2025-08-26 05:16:33 UTC
++++ __mboct_fem_pkg__.cc
+@@ -7171,7 +7171,7 @@ class Tet10h: public Element3D (public)
+ static constexpr double w2[N2] = {f2, g2, g2, g2, g2, h2, h2, h2, h2, i2, i2, i2, i2, i2, i2};
+
+ constexpr double a3 = (5. - sqrt(5.)) / 20.;
+- constexpr double b3 = (5. + 3. * sqrt(5)) / 20.;
++ constexpr double b3 = (5. + 3. * sqrt(5.)) / 20.;
+ constexpr double c3 = 1. / 24.;
+ constexpr octave_idx_type N3 = 4;
+
+@@ -8059,7 +8059,7 @@ class Tet20: public Element3D (public)
+ static constexpr double ti3[N3] = {6.461106321354800e-02, 6.461106321354800e-02, 6.461106321354800e-02, 6.461106321354800e-02, 4.651867752656100e-02, 4.651867752656100e-02, 4.651867752656100e-02, 4.651867752656100e-02, 2.291316667641300e-02, 2.291316667641300e-02, 2.291316667641300e-02, 2.291316667641300e-02, 4.820780989426000e-03, 4.820780989426000e-03, 4.820780989426000e-03, 4.820780989426000e-03, 3.070963115311590e-01, 3.070963115311590e-01, 3.070963115311590e-01, 3.070963115311590e-01, 2.211032225007380e-01, 2.211032225007380e-01, 2.211032225007380e-01, 2.211032225007380e-01, 1.089062557068340e-01, 1.089062557068340e-01, 1.089062557068340e-01, 1.089062557068340e-01, 2.291316667641300e-02, 2.291316667641300e-02, 2.291316667641300e-02, 2.291316667641300e-02, 6.234718442658670e-01, 6.234718442658670e-01, 6.234718442658670e-01, 6.234718442658670e-01, 4.488872992916900e-01, 4.488872992916900e-01, 4.488872992916900e-01, 4.488872992916900e-01, 2.211032225007380e-01, 2.211032225007380e-01, 2.211032225007380e-01, 2.211032225007380e-01, 4.651867752656100e-02, 4.651867752656100e-02, 4.651867752656100e-02, 4.651867752656100e-02, 8.659570925834790e-01, 8.659570925834790e-01, 8.659570925834790e-01, 8.659570925834790e-01, 6.234718442658670e-01, 6.234718442658670e-01, 6.234718442658670e-01, 6.234718442658670e-01, 3.070963115311590e-01, 3.070963115311590e-01, 3.070963115311590e-01, 3.070963115311590e-01, 6.461106321354800e-02, 6.461106321354800e-02, 6.461106321354800e-02, 6.461106321354800e-02};
+ static constexpr double wi3[N3] = {1.761084870822600e-06, 1.761084870822600e-06, 3.301615549885100e-06, 3.301615549885100e-06, 1.569257503335800e-05, 1.569257503335800e-05, 2.941984830275260e-05, 2.941984830275260e-05, 3.185931686560010e-05, 3.185931686560010e-05, 5.972864665122530e-05, 5.972864665122530e-05, 2.360313944207820e-05, 2.360313944207820e-05, 4.425027634907300e-05, 4.425027634907300e-05, 7.458679166511140e-05, 7.458679166511140e-05, 1.398325062338110e-04, 1.398325062338110e-04, 6.646237464725280e-04, 6.646237464725280e-04, 1.246011553748000e-03, 1.246011553748000e-03, 1.349329762022000e-03, 1.349329762022000e-03, 2.529672588768000e-03, 2.529672588768000e-03, 9.996579230088670e-04, 9.996579230088670e-04, 1.874121002261000e-03, 1.874121002261000e-03, 3.074301219528830e-04, 3.074301219528830e-04, 5.763584072291740e-04, 5.763584072291740e-04, 2.739430867978000e-03, 2.739430867978000e-03, 5.135781756688000e-03, 5.135781756688000e-03, 5.561636370626000e-03, 5.561636370626000e-03, 1.042674627912200e-02, 1.042674627912200e-02, 4.120367029080000e-03, 4.120367029080000e-03, 7.724708831375000e-03, 7.724708831375000e-03, 3.163437496694650e-04, 3.163437496694650e-04, 5.930693405649470e-04, 5.930693405649470e-04, 2.818857915521000e-03, 2.818857915521000e-03, 5.284688592238000e-03, 5.284688592238000e-03, 5.722890433136000e-03, 5.722890433136000e-03, 1.072905931870600e-02, 1.072905931870600e-02, 4.239832934111000e-03, 4.239832934111000e-03, 7.948679008091999e-03, 7.948679008091999e-03};
+
+- constexpr double a4 = (5. + 3. * sqrt(5)) / 20.;
++ constexpr double a4 = (5. + 3. * sqrt(5.)) / 20.;
+ constexpr double b4 = (5. - sqrt(5.)) / 20.;
+ constexpr double c4 = 1. / 24.;
+ constexpr octave_idx_type N4 = 4;
diff --git a/math/octave-forge-mboct-fem-pkg/pkg-descr b/math/octave-forge-mboct-fem-pkg/pkg-descr
new file mode 100644
index 000000000000..8da9aeb5b19d
--- /dev/null
+++ b/math/octave-forge-mboct-fem-pkg/pkg-descr
@@ -0,0 +1,11 @@
+The octave-forge package is the result of The GNU Octave Repository project,
+which is intended to be a central location for custom scripts, functions and
+extensions for GNU Octave. contains the source for all the functions plus
+build and install scripts.
+
+This is mboct-fem-pkg.
+
+ This package belongs to a suite of packages which can be used for pre- and
+ postprocessing of flexible bodies in MBDyn (www.mbdyn.org) with GNU-Octave.
+ It contains a general purpose structural Finite Element toolkit for linear
+ statics and dynamics, which can be used to generate.