Skip to content

Commit

Permalink
tagging version 1.2.2
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://code.matforge.org/fipy/tags/version-1_2_2@2903 d80e17d7-ff13-0410-a124-85740d801063
  • Loading branch information
guyer committed Dec 30, 2008
2 parents 0af8884 + 585efdc commit 74d094b
Show file tree
Hide file tree
Showing 15 changed files with 137 additions and 512 deletions.
75 changes: 31 additions & 44 deletions INSTALLATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,11 @@ It works on all common platforms and produces publication quality hard
copies. Version 0.72.1 or higher is required. `Matplotlib installers
for specific platforms`_ are available |citeMatplotlibDownload|.

.. note::

Matplotlib_ is noticeably slower than Pygist_ or Gnuplot.py_, but
has superior image rendering and plotting functionality.

.. _Matplotlib: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://matplotlib.sourceforge.net
.. _Matplotlib installers for specific platforms: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
.. |citeMatplotlibDownload| raw:: latex
Expand Down Expand Up @@ -308,11 +313,6 @@ Matplotlib_.
The facility to produce hard copies in Pygist_ does not work very well and
may crash the |FiPy| run. "``.eps``" and "``.cgm``" export seem to work.

.. attention::

Pygist_ seems to be unable to make contour plots on x86_64
architectures running Linux.

.. note::

If you experience difficulty building the native Pygist_ viewer on
Expand All @@ -321,26 +321,13 @@ Matplotlib_.

.. note::

Pygist_ can have problems finding color pallets, such as "``heat.gp``"
and "``work.gs``", when installed locally. A fix for this problem is to
copy the required pallets into the local directory. The color
pallets are in "``src/gist/g``" of the base Pygist_ installation.
Pygist_ can have problems finding color pallets, such as "``heat.gp``" and
"``work.gs``", when installed locally. You may need to set the
``GISTPATH`` environment variable to point to the directory containing
these files (you may find it as "``g/``" within the directory you
specified for ``--home``).

.. warning::

If Pygist_ is installed in a local directory a further path may
have to be added to the PYTHONPATH environment variable. For
example, if

$ python setup.py install --home=/some/directory/some/where

then both /some/directory/some/where and
/some/directory/some/where/lib/python/gist are required to be added to
the PYTHONPATH. e.g.

$ set PYTHONPATH=/some/directory/some/where:/some/directory/some/where/lib/python/gist

.. _Pygist: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/python/pygist.html
.. _Pygist: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://hifweb.lbl.gov/public/software/gist/

MayaVi
------
Expand All @@ -351,28 +338,32 @@ MayaVi

http://mayavi.sourceforge.net

The MayaVi_ Data Visualizer is a free, easy to use scientific data
The `MayaVi 1`_ Data Visualizer is a free, easy to use scientific data
visualizer. It displays 1D, 2D and 3D data. It is the only |FiPy|
viewer available for 3D data. Other viewers are probably better for 1D
or 2D viewing. The `Enthon for Windows`_ version of python is
recommended for Windows_ users who wish to use MayaVi_.
or 2D viewing.

.. warning::

MayaVi_ can only display 3D meshes consisting entirely of
tetrahedrons or wedge elements. The ordering of vertices for other
|FiPy| can only use `MayaVi 1`_ to display 3D meshes consisting entirely
of tetrahedrons or wedge elements. The ordering of vertices for other
mesh types may not work.

.. note::

Is is also necessary to install the PyVTK_ package to use the
|FiPy| MayaVi_ viewers.

.. _MayaVi: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://mayavi.sourceforge.net
.. note::

`MayaVi 1`_ is outdated and we hope to have compatilibiltiy with
`MayaVi 2`_ as soon as possible.

.. _MayaVi 1: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://mayavi.sourceforge.net
.. _MayaVi 2: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://code.enthought.com/projects/mayavi
.. _PyVTK: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://cens.ioc.ee/projects/pyvtk/
.. _Enthon for Windows: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=https://www.enthought.com/python/

Recommended Packages
Optional Packages
====================

.. note::
Expand Down Expand Up @@ -423,18 +414,13 @@ It is possible to create irregular meshes with this package.
underlying shell tool, create a shell alias called ``gmsh`` that
corresponds to ``<Gmsh path>/Gmsh.app/Contents/MacOS/Gmsh``.

.. warning::

Version 2.0 of Gmsh does not currently work with |FiPy|. Please use
earlier versions.

----------------
Obtaining |FiPy|
----------------

|FiPy| is freely available for download via Subversion_ or as a `compressed
archive`_ |citeFiPyDownload|. To obtain |FiPy| via anonymous Subversion, issue the following
command::
archive`_ |citeFiPyDownload|. To obtain |FiPy| via anonymous Subversion,
issue the following command::

$ svn checkout http://matforge.org/svn/fipy/tags/CURRENT

Expand Down Expand Up @@ -492,7 +478,7 @@ executing::

$ python setup.py test

Depending on the packages you chose to install in `Recommended Packages`_,
Depending on the packages you chose to install in `Optional Packages`_,
be sure to set the appropriate environment variables. You can expect a few
errors if you did not install all of the recommended packages.

Expand Down Expand Up @@ -520,11 +506,12 @@ removing key``" in |the FAQ|).

.. attention::

You can expect three test failures in
``fipy.variables.variable.Variable.__array__`` with the message::
Depending on your operating system and version of gmsh_ you may get
failures in ``examples.levelSet.electroChem.inputGold`` and
``examples.levelSet.electroChem.inputLeveler``. These are caused by the
test being overly strict and are not cause for concern. The models are
solved accurately.

ValueError: setting an array element with a sequence.

-----------------
Installing |FiPy|
-----------------
Expand Down
51 changes: 34 additions & 17 deletions MACOSX-INSTALLATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ Binary Installation

.. note::

If you wish to run the superfill examples, you will require the
MayaVi_ viewer, which is best installed via Fink_, so you should
follow the `Fink Installation`_ instructions.
If you wish to view 3D models, the MayaVi_ viewer is required, which
is best installed via Fink_, so you should follow the `Fink
Installation`_ instructions.

Pre-built binaries for many of the required packages are available at
http://pythonmac.org/packages/py24-fat/.
Expand All @@ -67,7 +67,12 @@ installation will not be harmed.
.. note::

Another option is ActivePython_, which probably is the most heavily
supported installation on the Mac, but seems to lack `readline` support.
supported installation on the Mac, but seems to lack `readline` support,
but these instructions

http://www.friday.com/bbum/2006/03/06/python-mac-os-x-and-readline/

worked for us.

.. _ActivePython: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.activestate.com/Products/ActivePython/

Expand Down Expand Up @@ -189,7 +194,7 @@ Ensure that Fink_ is installed and up to date for your OS.
unstable tree
~~~~~~~~~~~~~

Follow the directions at http://fink.sourceforge.net/faq/usage-fink.php#unstable
Follow the directions at http://www.finkproject.org/faq/usage-fink.php#unstable

.. note::

Expand All @@ -207,8 +212,14 @@ Remaining Fink packages
Execute the following commands from Terminal application (you can use
``xterm`` or any other terminal application of your choosing)::

$ sudo apt-get install python
$ fink --use-binary-dist install matplotlib-py24
$ fink --use-binary-dist install python

Take note of the version of Python that gets installed (`python
--version`). Many other packages, indicated by a "`-pyXX`" suffix, require
you substitute the Python version. E.g., Python 2.4 takes "`-py24`", Python
2.5 takes "`-py25`", and so on.

$ fink --use-binary-dist install matplotlib-pyXX

.. attention::

Expand All @@ -219,7 +230,7 @@ Execute the following commands from Terminal application (you can use

.. note::

If the installation of matplotlib-py24 fails for some reason, we
If the installation of matplotlib-pyXX fails for some reason, we
recommend you execute the ``install`` command again.

A few changes are needed to allow matplotlib_ to run::
Expand All @@ -235,7 +246,7 @@ You may now choose to either edit the "backend" configuration in

or you can install wxPython with::

$ fink --use-binary-dist install wxpython-py24
$ fink --use-binary-dist install wxpython-pyXX

(the second choice takes awhile, as it needs to build things).

Expand Down Expand Up @@ -293,19 +304,25 @@ points to ``<Gmsh path>/Gmsh.app/Contents/MacOS/Gmsh``.
MayaVi
------

This is one package that is probably much easier to install via Fink_ than
by hand. You might attempt to follow the instructions at
http://mayavi.sourceforge.net/mwiki/BuildingVTKOnOSX but they are quite
out of date and did not work for us.
`MayaVi 1`_ is a requirement if you wish to view 3D problems or improve the
viewing capabilities of the superfill examples. This is one package that is
probably much easier to install via Fink_ than by hand. You might attempt
to follow the instructions at
http://mayavi.sourceforge.net/mwiki/BuildingVTKOnOSX but they are quite out
of date and did not work for us.

If you have already followed the `Fink Installation`_ instructions, then
you can go to the command line and type::

$ sudo apt-get install mayavi-py24
$ sudo apt-get install mayavi-pyXX

.. note::

This is a required step for superfill examples.
`MayaVi 1`_ is outdated and we hope to have compatilibiltiy with
`MayaVi 2`_ as soon as possible.

.. _MayaVi 1: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://mayavi.sourceforge.net
.. _MayaVi 2: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://code.enthought.com/projects/mayavi

SciPy
-----
Expand Down Expand Up @@ -341,7 +358,7 @@ is not present:
* If you followed the `Fink Installation`_ procedure, then you should be
able to type::

$ sudo apt-get install scipy-py24
$ sudo apt-get install scipy-pyXX


.. _ScipySuperpack: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://trichech.us/?page_id=4
Expand Down Expand Up @@ -415,7 +432,7 @@ commands in the Python Shell:
>>> from examples.levelSet.electroChem.inputGold import runGold
>>> runGold(numberOfSteps = 100)

If you have installed the optional packages, a MayaVi_ viewer should
If you have installed the optional packages, a viewer should
appear with a trench filling simulation.

.. _IDLE: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.python.org/idle/
Expand Down
Loading

0 comments on commit 74d094b

Please sign in to comment.