-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from PrincetonUniversity/issue-170
Issue 170
- Loading branch information
Showing
8 changed files
with
318 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
[tool.poetry] | ||
name = "SPECFEMPP" | ||
[build-system] | ||
requires = ["scikit-build-core>=0.10", "pybind11"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
[project] | ||
name = "specfempp_core" | ||
version = "0.1.0" | ||
description = "Kokkos implementation of SpecFEM2D code" | ||
authors = ["Your Name <[email protected]>"] | ||
readme = "README.md" | ||
authors = [ | ||
{ name = "Rohit R Kakodkar", email = "[email protected]" }, | ||
{ name = "Lucas Sawade", email = "[email protected]" }, | ||
{ name = "Congyue Cui", email = "[email protected]" } | ||
] | ||
requires-python = ">=3.9" | ||
|
||
[tool.scikit-build] | ||
cmake.define.CMAKE_BUILD_TYPE = "Release" | ||
cmake.define.BUILD_TESTS = "ON" | ||
cmake.define.SPECFEMPP_USE_SKBUILD = "ON" | ||
cmake.define.SPECFEMPP_ENABLE_PYTHON = "ON" | ||
build-dir = "./build" | ||
|
||
[tool.poetry] | ||
package-mode = false | ||
|
||
[tool.poetry.dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from __future__ import annotations | ||
|
||
from ._core import __doc__, __version__, _run | ||
|
||
__all__ = ["__doc__", "__version__", "_run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
SPECFEM++ Python | ||
----------------------- | ||
.. currentmodule:: specfempp | ||
.. autosummary:: | ||
:toctree: _generate | ||
_run | ||
subtract | ||
""" | ||
|
||
def _run(argv: list[str]) -> int: | ||
""" | ||
Run main specfem workflow | ||
Args: | ||
argv: list of command line arguments for initializing MPI and Kokkos | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters