summaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2006-04-24 19:54:02 +0000
committerThierry Thomas <thierry@FreeBSD.org>2006-04-24 19:54:02 +0000
commit4d719d47558df1f0b0205fc034ae7f41ebe2ef88 (patch)
tree369a8ff2e8158135efb986ccde564af2fc1d0433 /science
parentHUTIter library for use in the Elmer FEM package. (diff)
ElmerSolver - the Solution of Partial Differential Equations.
ElmerSolver is thus an independent module that processes the computational mesh and the model input file containing references to the selected equations and model parameters. ElmerSolver makes the equations into a discrete form, handles coupled systems, non-linearities and time-dependences, and provides output data for visualization. Submitted by: Pedro F. Giffuni <giffunip@asme.org>
Diffstat (limited to 'science')
-rw-r--r--science/Makefile1
-rw-r--r--science/elmer-fem/Makefile49
-rw-r--r--science/elmer-fem/distinfo3
-rw-r--r--science/elmer-fem/files/patch-acx_elmer.m411
-rw-r--r--science/elmer-fem/files/patch-configure.in11
-rw-r--r--science/elmer-fem/pkg-descr9
-rw-r--r--science/elmer-fem/pkg-plist96
7 files changed, 180 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 64d1edd5b51b..79ea00261a97 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -18,6 +18,7 @@
SUBDIR += devisor
SUBDIR += dft++
SUBDIR += elmer-eio
+ SUBDIR += elmer-fem
SUBDIR += elmer-hutiter
SUBDIR += elmer-matc
SUBDIR += elmer-meshgen2d
diff --git a/science/elmer-fem/Makefile b/science/elmer-fem/Makefile
new file mode 100644
index 000000000000..caafaef05332
--- /dev/null
+++ b/science/elmer-fem/Makefile
@@ -0,0 +1,49 @@
+# New ports collection makefile for: elmer-fem
+# Date created: 5 Jan 2006
+# Whom: Pedro Giffuni <giffunip@asme.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fem
+PORTVERSION= 5.0.2
+CATEGORIES= science tk84
+MASTER_SITES= ftp://ftp.funet.fi/pub/sci/physics/elmer/
+PKGNAMEPREFIX= elmer-
+
+MAINTAINER= giffunip@asme.org
+COMMENT= FEM solver for use in the ELMER FEM package
+
+BUILD_DEPENDS= ${FC}:${PORTSDIR}/lang/gfortran \
+ ${LOCALBASE}/lib/libmatc.a:${PORTSDIR}/science/elmer-matc \
+ ${LOCALBASE}/lib/libblas.a:${PORTSDIR}/math/elmer-mathlibs \
+ ${LOCALBASE}/lib/liblapack.a:${PORTSDIR}/math/elmer-mathlibs \
+ ${LOCALBASE}/lib/libumfpack.a:${PORTSDIR}/math/elmer-umfpack \
+ ${LOCALBASE}/lib/libeiof.a:${PORTSDIR}/science/elmer-eio \
+ ${LOCALBASE}/lib/libhuti.a:${PORTSDIR}/science/elmer-hutiter
+RUN_DEPENDS= ${MACHINE_ARCH}-portbld-freebsd${OSREL}-ElmerGrid:${PORTSDIR}/science/elmergrid \
+ ${MACHINE_ARCH}-portbld-freebsd${OSREL}-Mesh2D:${PORTSDIR}/science/elmer-meshgen2d
+
+USE_GCC= 4.1+
+WITH_FORTRAN= yes
+FC= ${LOCALBASE}/bin/gfortran41
+F77= ${FC}
+
+USE_AUTOTOOLS= autoconf:259
+GNU_CONFIGURE= yes
+CONFIGURE_ENV+= FC=${FC} F77=${FC} FCFLAGS=${FCFLAGS}
+USE_GMAKE= yes
+ALL_TARGET=
+INSTALLS_SHLIB= yes
+
+DATADIR= ${PREFIX}/share/elmersolver
+PLIST_SUB= ARCH=${MACHINE_ARCH}
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+CFLAGS+= -fPIC
+FCFLAGS+= -fPIC
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/science/elmer-fem/distinfo b/science/elmer-fem/distinfo
new file mode 100644
index 000000000000..2e36a272f9bf
--- /dev/null
+++ b/science/elmer-fem/distinfo
@@ -0,0 +1,3 @@
+MD5 (fem-5.0.2.tar.gz) = 562bb027d64ed049bd874c2da72ee47a
+SHA256 (fem-5.0.2.tar.gz) = 58d1ec237ae46f162543c3981b292f5796a24363c7208064d2b8b283b8dd00ff
+SIZE (fem-5.0.2.tar.gz) = 4142887
diff --git a/science/elmer-fem/files/patch-acx_elmer.m4 b/science/elmer-fem/files/patch-acx_elmer.m4
new file mode 100644
index 000000000000..af022f9aa159
--- /dev/null
+++ b/science/elmer-fem/files/patch-acx_elmer.m4
@@ -0,0 +1,11 @@
+--- acx_elmer.m4.orig Sun Feb 5 18:29:13 2006
++++ acx_elmer.m4 Sun Feb 5 18:31:24 2006
+@@ -1384,7 +1384,7 @@
+ ;;
+ *-*-freebsd*)
+ SH_LD="$CC"
+- SH_LDFLAGS="-shared"
++ SH_LDFLAGS="-shared -fPIC"
+ ;;
+ alpha*-dec-osf*)
+ SH_LDFLAGS="-shared"
diff --git a/science/elmer-fem/files/patch-configure.in b/science/elmer-fem/files/patch-configure.in
new file mode 100644
index 000000000000..3db42222e6a3
--- /dev/null
+++ b/science/elmer-fem/files/patch-configure.in
@@ -0,0 +1,11 @@
+--- configure.in.orig Wed Feb 15 18:56:07 2006
++++ configure.in Wed Feb 15 18:56:45 2006
+@@ -68,7 +68,7 @@
+ FCFLAGS="$FCFLAGS -I."
+ FFLAGS="$FCFLAGS -I."
+ ELMER_HOME="$prefix"
+-FCPPFLAGS="-P $TRADITIONAL_CPP_FLAGS -I. -I$prefix/include -DFULL_INDUCTION -DUSE_ARPACK"
++FCPPFLAGS="-P -traditional -I. -I$prefix/include -DFULL_INDUCTION -DUSE_ARPACK"
+ TESTS_FCFLAGS=""
+
+ ELMER_LIBERRORMSG="wasn't found, make sure it is in the prefix, or CFLAGS and LIBS are correct if they are somewhere else."
diff --git a/science/elmer-fem/pkg-descr b/science/elmer-fem/pkg-descr
new file mode 100644
index 000000000000..e213b4caed4e
--- /dev/null
+++ b/science/elmer-fem/pkg-descr
@@ -0,0 +1,9 @@
+ElmerSolver - the Solution of Partial Differential Equations.
+
+ElmerSolver is thus an independent module that processes the computational
+mesh and the model input file containing references to the selected
+equations and model parameters. ElmerSolver makes the equations into a
+discrete form, handles coupled systems, non-linearities and
+time-dependences, and provides output data for visualization.
+
+WWW: http://www.csc.fi/elmer/elmersolve/
diff --git a/science/elmer-fem/pkg-plist b/science/elmer-fem/pkg-plist
new file mode 100644
index 000000000000..ae2fa2be6831
--- /dev/null
+++ b/science/elmer-fem/pkg-plist
@@ -0,0 +1,96 @@
+bin/%%ARCH%%-portbld-freebsd%%OSREL%%-SC2Elmer
+bin/ElmerSolver
+bin/GebhardtFactors
+bin/ViewFactors
+bin/elmerf90
+lib/libelmersolver.so
+%%DATADIR%%/include/adaptive.mod
+%%DATADIR%%/include/bandmatrix.mod
+%%DATADIR%%/include/bandwidthoptimize.mod
+%%DATADIR%%/include/coordinatesystems.mod
+%%DATADIR%%/include/crsmatrix.mod
+%%DATADIR%%/include/defutils.mod
+%%DATADIR%%/include/differentials.mod
+%%DATADIR%%/include/diffuseconvective.mod
+%%DATADIR%%/include/diffuseconvectivegeneral.mod
+%%DATADIR%%/include/directsolve.mod
+%%DATADIR%%/include/eigensolve.mod
+%%DATADIR%%/include/elementdescription.mod
+%%DATADIR%%/include/elementutils.mod
+%%DATADIR%%/include/freesurface.mod
+%%DATADIR%%/include/gebhardtfactorglobals.mod
+%%DATADIR%%/include/generalutils.mod
+%%DATADIR%%/include/globmat.mod
+%%DATADIR%%/include/hashtable.mod
+%%DATADIR%%/include/integration.mod
+%%DATADIR%%/include/interpolation.mod
+%%DATADIR%%/include/itersolve.mod
+%%DATADIR%%/include/linearalgebra.mod
+%%DATADIR%%/include/lists.mod
+%%DATADIR%%/include/ludecomposition.mod
+%%DATADIR%%/include/mainutils.mod
+%%DATADIR%%/include/materialmodels.mod
+%%DATADIR%%/include/maxwell.mod
+%%DATADIR%%/include/maxwellaxis.mod
+%%DATADIR%%/include/maxwellgeneral.mod
+%%DATADIR%%/include/meshutils.mod
+%%DATADIR%%/include/messages.mod
+%%DATADIR%%/include/modeldescription.mod
+%%DATADIR%%/include/multigrid.mod
+%%DATADIR%%/include/navierstokes.mod
+%%DATADIR%%/include/navierstokescylindrical.mod
+%%DATADIR%%/include/navierstokesgeneral.mod
+%%DATADIR%%/include/paralleleigensolve.mod
+%%DATADIR%%/include/parallelutils.mod
+%%DATADIR%%/include/pelementbase.mod
+%%DATADIR%%/include/pelementmaps.mod
+%%DATADIR%%/include/radiation.mod
+%%DATADIR%%/include/radiationfactorglobals.mod
+%%DATADIR%%/include/solverutils.mod
+%%DATADIR%%/include/sparitercomm.mod
+%%DATADIR%%/include/spariterglobals.mod
+%%DATADIR%%/include/spariterprecond.mod
+%%DATADIR%%/include/sparitersolve.mod
+%%DATADIR%%/include/stressgeneral.mod
+%%DATADIR%%/include/stresslocal.mod
+%%DATADIR%%/include/timeintegrate.mod
+%%DATADIR%%/include/types.mod
+%%DATADIR%%/include/viewfactorglobals.mod
+@dirrm %%DATADIR%%/include
+%%DATADIR%%/lib/AdvectionDiffusion.so
+%%DATADIR%%/lib/ArtificialCompressibility.so
+%%DATADIR%%/lib/DCRComplexSolve.so
+%%DATADIR%%/lib/ElasticSolve.so
+%%DATADIR%%/lib/ElectricForce.so
+%%DATADIR%%/lib/Electrokinetics.so
+%%DATADIR%%/lib/EliminateDirichlet.so
+%%DATADIR%%/lib/EliminatePeriodic.so
+%%DATADIR%%/lib/EnergyRelease.so
+%%DATADIR%%/lib/FDiffusion.so
+%%DATADIR%%/lib/FDiffusion3D.so
+%%DATADIR%%/lib/FluidicForce.so
+%%DATADIR%%/lib/FreeSurfaceReduced.so
+%%DATADIR%%/lib/FreeSurfaceSolver.so
+%%DATADIR%%/lib/HelmholtzBEM.so
+%%DATADIR%%/lib/HelmholtzSolve.so
+%%DATADIR%%/lib/KESolver.so
+%%DATADIR%%/lib/MagneticSolve.so
+%%DATADIR%%/lib/PoissonBEM.so
+%%DATADIR%%/lib/PoissonBoltzmannSolve.so
+%%DATADIR%%/lib/RateOfChange.so
+%%DATADIR%%/lib/ReloadInput.so
+%%DATADIR%%/lib/ResultOutputSolve.so
+%%DATADIR%%/lib/RigidBodyReduction.so
+%%DATADIR%%/lib/SOLVER.KEYWORDS
+%%DATADIR%%/lib/SaveData.so
+%%DATADIR%%/lib/Smitc.so
+%%DATADIR%%/lib/StatCurrentSolve.so
+%%DATADIR%%/lib/StatElecSolve.so
+%%DATADIR%%/lib/Stokes.so
+%%DATADIR%%/lib/StreamSolver.so
+%%DATADIR%%/lib/StressSolve.so
+%%DATADIR%%/lib/TransportEquation.so
+%%DATADIR%%/lib/elements.def
+%%DATADIR%%/lib/libelmersolver.so
+@dirrm %%DATADIR%%/lib
+@dirrm %%DATADIR%%