Skip to content

Commit

Permalink
Doc tweaks, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 7, 2014
1 parent 7f08a8f commit b785c15
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/index.rst
Expand Up @@ -78,8 +78,8 @@ Contents

installation
tri-tet
geometry
gmsh
geometry
faq

MeshPy has its own `web page <http://mathema.tician.de/software/meshpy>`_, where you
Expand Down
2 changes: 1 addition & 1 deletion meshpy/__init__.py
@@ -1 +1 @@
version = "2013.1.2"
version = "2014.1"
6 changes: 6 additions & 0 deletions meshpy/gmsh.py
Expand Up @@ -33,12 +33,18 @@ def error_clean_up(self):


class LiteralSource(object):
"""
.. versionadded:: 2014.1
"""
def __init__(self, source, extension):
self.source = source
self.extension = extension


class FileSource(object):
"""
.. versionadded:: 2014.1
"""
def __init__(self, filename):
self.filename = filename

Expand Down
2 changes: 2 additions & 0 deletions meshpy/gmsh_reader.py
Expand Up @@ -425,6 +425,7 @@ def generate_gmsh(receiver, source, dimensions, order=None, other_options=[],
extension="geo", gmsh_executable="gmsh", force_dimension=None):
"""Run gmsh and feed the output to *receiver*.
:arg source: an instance of :class:`LiteralSource` or :class:`FileSource`
:param receiver: Implements the :class:`GmshMeshReceiverBase` interface.
"""
from meshpy.gmsh import GmshRunner
Expand All @@ -444,6 +445,7 @@ def generate_gmsh(receiver, source, dimensions, order=None, other_options=[],

def parse_gmsh(receiver, line_iterable, force_dimension=None):
"""
:arg source: an instance of :class:`LiteralSource` or :class:`FileSource`
:arg receiver: This object will be fed the entities encountered in reading the
GMSH file. See :class:`GmshMeshReceiverBase` for the interface this
object needs to conform to.
Expand Down

0 comments on commit b785c15

Please sign in to comment.