# -*- coding: UTF-8 -*-
#
# Copyright (c) 2008, Yung-Yu Chen <yyc@solvcon.net>
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# - Redistributions of source code must retain the above copyright notice, this
#   list of conditions and the following disclaimer.
# - Redistributions in binary form must reproduce the above copyright notice,
#   this list of conditions and the following disclaimer in the documentation
#   and/or other materials provided with the distribution.
# - Neither the name of the copyright holder nor the names of its contributors
#   may be used to endorse or promote products derived from this software
#   without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

"""
SOLVCON is a collection of `Python <http://www.python.org>`__-based
conservation-law solvers that use the space-time `Conservation Element and
Solution Element (CESE) method <http://www.grc.nasa.gov/WWW/microbus/>`__.
SOLVCON targets at solving problems that can be formulated as a system of
first-order, linear or non-linear partial differential equations (PDEs).
"""


__docformat__ = 'restructuredtext en'

__version__ = '0.1.4+'

__description__ = "SOLVCON: Solvers of conservation laws"

__all__ = [
    # module: dependency
    'import_module_may_fail', 'import_name',
    # module: cmdutil
    'go', 'Command',
    # module: conf
    'env',
    # module: block
    'Block',
    # module: march
    'Table',
    # module: solver
    'MeshSolver',
    # module: case
    'MeshCase',
    # module: anchor
    'MeshAnchor', 'MeshAnchorList',
    # module: hook
    'MeshHook',
    # module: boundcond
    'BC', 'bctregy',
    # module: domain
    'Domain', 'Collective', 'Distributed',
    # module: helper
    'helper', 'Gmsh',
    # module: io
    'io',
    # module: parcel
    'parcel',
    # module: exception
    'exception',
    # module: N/A
    'test',
    # module: vis
    'vis',
]

from .dependency import import_module_may_fail, import_name
from .cmdutil import Command, go
from .conf import env
from .block import Block
import_name('Table', '.march', may_fail=True)
from .solver import MeshSolver
from .case import MeshCase
from .anchor import MeshAnchor, MeshAnchorList
from .hook import MeshHook
from .boundcond import BC, bctregy
from .domain import Domain, Collective, Distributed
from . import helper
from .helper import Gmsh
from . import parcel
from . import exception
from . import vis

def test():
    """
    Run everything in :py:mod:`solvcon.tests` and :py:mod:`solvcon.io.tests`.
    """
    import sys
    import os
    from nose import run_exit
    from . import tests
    from .io import tests as iotests
    paths = [os.path.dirname(mod.__file__) for mod in (tests, iotests)]
    cmds = ['nosetests'] + paths
    sys.argv = cmds
    sys.exit(run_exit())

if __name__ == '__main__':
    go()

@@ -2750,37 +2750,8 @@
 t',%0A
-    # module: vis%0A    'vis',%0A
 %5D%0A%0Af
@@ -3248,26 +3248,8 @@
 tion
-%0Afrom . import vis
 %0A%0Ade

Remove vis from solvcon namespace