Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self.comm is now set in BaseSolver #37

Merged
merged 3 commits into from
Jan 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyhyp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "2.3.0"
__version__ = "2.3.1"

from .pyHyp import pyHyp, pyHypMulti
16 changes: 8 additions & 8 deletions pyhyp/pyHyp.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,29 +380,29 @@ def __init__(self, comm=None, options=None, debug=False):

name = "pyHyp"
category = "Hyperbolic mesh generator"
informs = {}

# Set the possible MPI Intracomm
if comm is None:
comm = MPI.COMM_WORLD
self.comm = comm

# Default options for hyperbolic generation
defOpts = self._getDefaultOptions()

# Use supplied options
if options is None:
raise Error("The options = keyword argument is *NOT* optional. " "It must always be provided")

# Initialize the inherited BaseSolver
super().__init__(name, category, defaultOptions=defOpts, options=options, comm=comm, informs=informs)

# Import and set the hyp module
curDir = os.path.dirname(os.path.realpath(__file__))
self.hyp = MExt.MExt("hyp", [curDir], debug=debug)._module

# Initialize PETSc and MPI if not already done so:
self.hyp.initpetsc(self.comm.py2f())

# Use supplied options
if options is None:
raise Error("The options = keyword argument is *NOT* optional. " "It must always be provided")

# Initialize the inherited BaseSolver
super().__init__(name, category, defOpts, options)

# Set the fortan options
self._setOptions()
self.gridGenerated = False
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
install_requires=[
"numpy>=1.16",
"mpi4py>=3.0",
"mdolab-baseclasses>=1.2",
"mdolab-baseclasses>=1.3",
],
classifiers=["Operating System :: Linux", "Programming Language :: Python, Fortran"],
)