Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170989 - [science overlay] sci-physics/meep-0.10 new package
Summary: [science overlay] sci-physics/meep-0.10 new package
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Science Physics related packages
URL: http://ab-initio.mit.edu/wiki/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-15 02:59 UTC by Ben Schwartz
Modified: 2008-02-07 14:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for Meep (meep-0.10.ebuild,744 bytes, text/plain)
2007-03-16 19:20 UTC, Ben Schwartz
Details
new ebuild for meep-0.10 (meep-0.10.ebuild,926 bytes, text/plain)
2007-05-08 00:46 UTC, Ben Schwartz
Details
ebuild for sci-mathematics/harminv-1.3.1 (harminv-1.3.1.ebuild,581 bytes, text/plain)
2007-05-08 01:14 UTC, Ben Schwartz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Schwartz 2007-03-15 02:59:27 UTC
I attach an ebuild for Meep.

Meep is a Maxwell's Equations simulator.  It is research-grade fast and accurate, easy to use, and supports distributed-memory supercomputers.  It also produces pretty pictures; check out the website (I am not affiliated with the developers).

I have tested this ebuild, and it works perfectly.  It also passes all of its own self-tests when run with FEATURES="test".

Possible issues (all very minor):
1. The ebuild has use-flags for guile and hdf5.  Without these dependencies the program is essentially only usable as a library.  Unfortunately, there is no way to make them "on by default".

2. The ebuild has use-flags for gsl and fftw.  If these programs are installed but the flags are not set, they will not be listed as dependencies, but they will still be detected by the ./configure and linked in.  If they are later removed from the system, there will be a linking inconsistency requiring a revdep-rebuild.
2a. There may be a bug causing the program to link in LAPACK and BLAS if they are available, even though they are not used.

3. The website claims to support side-by-side installation of MPI and non-MPI versions of the program.  This feature is not made available in this ebuild.
Comment 1 Ben Schwartz 2007-03-15 17:57:05 UTC
I should mention that this is a sort of sister program to sci-physics/mpb, which is in the tree.
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2007-03-16 09:51:01 UTC
(In reply to comment #0)
> I attach an ebuild for Meep.

Did you forget something?

Sébastien
Comment 3 Ben Schwartz 2007-03-16 19:20:25 UTC
Created attachment 113490 [details]
ebuild for Meep

I guess so.  I could've sworn...
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2007-05-03 17:26:11 UTC
Hi Ben,

Thanks for your ebuild. I gave a quick look. Here are a few things you could improve:
- fftw: it is a slotted package. which version >=3 or =2.1* ?
- gsl: is it really an option (fftw as well?) to make it a use flag?
- give honour to the doc and examples by installing at least the few ascii files, more with a "doc" and/or an "examples" use flags.
- syntax: year in header, missing a space in DEPENDS
- libctl/guile: according to the installation web page, they are strongly recommended dep. May be you could just drop the USE flag, and force the dep on libctl.

It also looks like it could greatly benefit from the harminv package from the same guys, but it is not in the tree.

Sébastien

Comment 5 Ben Schwartz 2007-05-07 22:25:03 UTC
I have been trying to improve this ebuild (but I also need to spend most of my time actually using the program for a class project).  I can answer some of your questions:

fftw and gsl are actually soft dependencies.  fftw adds extracting the spectrum of the time-series of a field-component at a single location, and gsl adds the ability to use a bessel function in your initial conditions.  I know that I have no use for either function.

libctl+guile is more interesting, I think.  You're right that they're strongly recommended, but definitely optional.  My instinct is to have a "no_guile" useflag, but I'm told that this is considered harmful.

I'm trying to learn how to implement "doc" and "examples" flags.
Comment 6 Ben Schwartz 2007-05-08 00:46:28 UTC
Created attachment 118514 [details]
new ebuild for meep-0.10

This new ebuild includes baseline docs, with useflags for additional (somewhat obsolete) docs and examples.  It also fixes syntax details.

Behavior of libctl useflag is not yet changed.
Comment 7 Ben Schwartz 2007-05-08 01:14:16 UTC
Created attachment 118515 [details]
ebuild for sci-mathematics/harminv-1.3.1

Harminv is a program that is potentially useful for analyzing the simulation output of Meep.  If Harminv is present, Meep provides Guile functions to access Harminv's algorithm through Meep's interface.

It is not yet clear to me whether Harminv must be installed before Meep to be accessible through Meep.
Comment 8 Sébastien Fabbro (RETIRED) gentoo-dev 2007-05-11 14:07:12 UTC
Hi Ben,

I took a deeper look at your ebuilds, and put in the gentooscience overlay. I had to put a newer version of libctl to make them work on my amd64 box. Test them as much as you can. I changed a few things, so please give it a look as well.  
The easiest way to get the gentooscience overlay is to use layman -a science

Sébastien
Comment 9 Sébastien Fabbro (RETIRED) gentoo-dev 2007-11-14 15:29:34 UTC
Vote of CC yourself if you would like to see it in the tree.
Comment 10 Sébastien Fabbro (RETIRED) gentoo-dev 2008-02-07 14:23:04 UTC
meep-0.10.1 now in cvs.