From cbb00356c00e87a00e609e217c03bfd985b37c7c Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Tue, 6 Jan 2004 04:42:35 +0000 Subject: [PATCH] Add math/itl, the Iterative Template Library. It carries solver and preconditioners for solving equations. It is required by some FEM packages on the net like Felyx and IMOOSE. ITL is said to work especially fast with gcc-3.3. PR: ports/55717 Submitted by: Pedro F. Giffuni --- math/itl/Makefile | 35 ++++++++++++++++++++++++++++++++ math/itl/distinfo | 1 + math/itl/files/patch-test+iohb_c | 10 +++++++++ math/itl/files/patch-test+mmio_c | 11 ++++++++++ math/itl/pkg-descr | 15 ++++++++++++++ math/itl/pkg-plist | 12 +++++++++++ 6 files changed, 84 insertions(+) create mode 100644 math/itl/Makefile create mode 100644 math/itl/distinfo create mode 100644 math/itl/files/patch-test+iohb_c create mode 100644 math/itl/files/patch-test+mmio_c create mode 100644 math/itl/pkg-descr create mode 100644 math/itl/pkg-plist diff --git a/math/itl/Makefile b/math/itl/Makefile new file mode 100644 index 000000000000..81d69208ec41 --- /dev/null +++ b/math/itl/Makefile @@ -0,0 +1,35 @@ +# Ports collection makefile for: itl +# Date created: Mar 15, 2003 +# Whom: Pedro F. Giffuni +# +# $FreeBSD$ +# + +PORTNAME= itl +PORTVERSION= 4.0.0.1 +CATEGORIES= math devel +MASTER_SITES= http://www.osl.iu.edu/download/research/itl/ +DISTNAME= ${PORTNAME}-4.0.0-1 + +MAINTAINER= ports@FreeBSD.org +COMMENT= Iterative Template Library (based on MTL) + +BUILD_DEPENDS= ${LOCALBASE}/include/mtl/mtl.h:${PORTSDIR}/math/mtl \ + ${LOCALBASE}/include/blitz/blitz.h:${PORTSDIR}/math/blitz++ +RUN_DEPENDS= ${LOCALBASE}/include/mtl/mtl.h:${PORTSDIR}/math/mtl \ + ${LOCALBASE}/lib/libblitz.a:${PORTSDIR}/math/blitz++ + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-mtl=${LOCALBASE}/include \ + --with-blitz=${LOCALBASE}/include +NO_BUILD= yes + +.include + +.if defined(WANT_MPI) || exists(${LOCALBASE}/bin/hcp) +BUILD_DEPENDS+= ${LOCALBASE}/bin/hcp:${PORTSDIR}/parallel/lam +RUN_DEPENDS+= ${LOCALBASE}/bin/hcp:${PORTSDIR}/parallel/lam +CONFIGURE_ARGS+= --with-mpi=lam +.endif + +.include diff --git a/math/itl/distinfo b/math/itl/distinfo new file mode 100644 index 000000000000..ca4ad3883989 --- /dev/null +++ b/math/itl/distinfo @@ -0,0 +1 @@ +MD5 (itl-4.0.0-1.tar.gz) = cb8b11de45e5b1bb80b17123adc93190 diff --git a/math/itl/files/patch-test+iohb_c b/math/itl/files/patch-test+iohb_c new file mode 100644 index 000000000000..1b72702a66bd --- /dev/null +++ b/math/itl/files/patch-test+iohb_c @@ -0,0 +1,10 @@ +--- test/iohb.c.orig Mon Aug 18 22:04:00 2003 ++++ test/iohb.c Mon Aug 18 22:04:22 2003 +@@ -219,7 +219,6 @@ + #include + #include + #include +-#include + + char* substr(const char* S, const int pos, const int len); + void upcase(char* S); diff --git a/math/itl/files/patch-test+mmio_c b/math/itl/files/patch-test+mmio_c new file mode 100644 index 000000000000..6b6723532abe --- /dev/null +++ b/math/itl/files/patch-test+mmio_c @@ -0,0 +1,11 @@ +--- test/mmio.c.orig Mon Aug 18 22:04:50 2003 ++++ test/mmio.c Mon Aug 18 22:05:10 2003 +@@ -9,7 +9,7 @@ + + #include + #include +-#include ++#include + #include + + #include "mmio.h" diff --git a/math/itl/pkg-descr b/math/itl/pkg-descr new file mode 100644 index 000000000000..d64b6cfd5e10 --- /dev/null +++ b/math/itl/pkg-descr @@ -0,0 +1,15 @@ + The Iterative Template Library Alpha Release + +The Iterative Template Library (ITL) has two parts, iterative solvers +and preconditioners. ITL provides a collection of sophisticated Krylov +subspace iterative solvers that use basic linear algebra packages such +as the Matrix Template Library or Blitz++ for its basic linear algebra +operations. The ITL has extended many of the ideas of the Iterative +Methods Library (IML++), to make the library more flexible. The +"interface" is to specify basic linear algebra operations. See next +bullet for details. On the other hand, ITL also provides a set of +preconditioners which are designed for Matrix Template Library. + +The latest documentation for ITL can be found on our website: + +WWW: http://www.osl.iu.edu/research/itl diff --git a/math/itl/pkg-plist b/math/itl/pkg-plist new file mode 100644 index 000000000000..a3c16d8d738c --- /dev/null +++ b/math/itl/pkg-plist @@ -0,0 +1,12 @@ +include/itl/Iteration_concept.h +include/itl/Preconditioner_concept.h +include/itl/Matrix_concept.h +include/itl/givens_rotation.h +include/itl/itl.h +include/itl/itl_utils.h +include/itl/itl_tags.h +include/itl/modified_gram_schmidt.h +include/itl/matrix_free_operator.h +include/itl/number_traits.h +@dirrm include/itl +