[SciPy-user] Incorporating SUNDIALS in SciPy
Jan-Jan van der Vyver
janjan at ini.phys.ethz.ch
Mon Dec 13 03:13:29 EST 2004
If you recompile lam-mpi, with the attached ebuild, and fortran keyword
enabled, then everything compiles like a dream :-)
Jan-Jan
On Fri, 2004-12-10 at 13:57 +0100, Jan-Jan van der Vyver wrote:
> I had no problems with the installation. (That is it compiled and gave
> no errors).
>
> I used the following flags
> $ ./configure F77=g77 --enable-shared
>
> I am on a Gentoo system (I'll create and upload an ebuild if people want
> one). I also have the lam-mpi package installed, which at the moment has
> the --without-fc directive (hence no fortran on mpi). I'll see if I can
> work around that.
>
> Jan-Jan
>
>
>
> On Fri, 2004-12-10 at 03:03 -0800, Robert Kern wrote:
> > Jan-Jan van der Vyver wrote:
> > > Dear SciPy-community,
> > >
> > > The latest package of SUNDAILS (SUite of Nonlinear and
> > > DIfferential/ALgebraic equation Solvers) have just been released (BSD
> > > license). Would it make sense to integrate this in SciPy? If not, why
> > > not? (The major reason I'm still using Matlab is easy to use ode
> > > solvers.)
> >
> > I don't see any showstopper reason not to. There are a handful of
> > nitpicky reasons, however:
> >
> > It *is* a relatively large package; the source is about 3 MiB unpacked
> > sans-docs. I'm not sure how many large packages Scipy can depend on.
> > This one may be worth it, however, particularly if you can get it to
> > work with sparse arrays.
> >
> > There is a bug in its build process such that "make install" doesn't
> > work as expected on my machine (Mac OS X 10.3). It's easily worked
> > around, however.
> >
> > F77 support (which would be the ideal route to a first pass via f2py)
> > fails to configure with my setup (Fink g77 3.4.2). This is probably an
> > error with my setup.
> >
> > I think this would be a great addition to Scipy. I would suggest getting
> > it running outside of Scipy first (though depending *on* Scipy for
> > scipy_distutils, sparse arrays, etc.). Then, when it's usable, we can
> > integrate it into the Scipy hierarchy.
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
-------------- next part --------------
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/lam-mpi/lam-mpi-7.0.6.ebuild,v 1.5 2004/10/04 23:07:18 fmccor Exp $
IUSE="crypt fortran"
MY_P=${P/-mpi}
S=${WORKDIR}/${MY_P}
DESCRIPTION="the LAM MPI parallel computing environment"
SRC_URI="http://www.lam-mpi.org/download/files/${MY_P}.tar.bz2"
HOMEPAGE="http://www.lam-mpi.org"
DEPEND="virtual/libc"
# we need ssh if we want to use it instead of rsh
RDEPEND="${DEPEND}
crypt? ( net-misc/openssh )
!crypt? ( net-misc/netkit-rsh )
!sys-cluster/mpich"
SLOT="6"
KEYWORDS="x86 ppc sparc"
LICENSE="as-is"
src_unpack() {
unpack ${A}
cd ${S}/romio/util/
sed -i "s|docdir=\"\$datadir/lam/doc\"|docdir=\"${D}/usr/share/doc/${PF}\"|" romioinstall.in
}
src_compile() {
local myconf
if use crypt; then
myconf="--with-rsh=ssh"
else
myconf="--with-rsh=rsh"
fi
if use fortran; then
fconf="--with-fc=g77"
else
fconf="--without-fc"
fi
econf \
--sysconfdir=/etc/lam-mpi \
--enable-shared \
--enable-long-long \
--enable-threads=posix \
--enable-languages=c,c++,f77 \
--disable-checking \
--enable-cstdio=stdio \
--with-system-zlib \
${fconf} || \
${myconf} || die
# sometimes emake doesn't finish since it gets ahead of itself :)
make || die
}
src_install () {
make DESTDIR="${D}" install || die
#need to correct the produced absolute symlink
cd ${D}/usr/include
rm mpi++.h
ln -sf mpi2c++/mpi++.h mpi++.h
# There are a bunch more tex docs we could make and install too,
# but they might be replicated in the pdf.
dodoc README HISTORY LICENSE VERSION
cd ${S}/doc
dodoc {user,install}.pdf
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20041213/acceddd2/attachment.sig>
More information about the SciPy-User
mailing list