-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use RavenHydroFramework from official GitHub source #24
Conversation
# Conflicts: # CMakeLists.txt # pyproject.toml
…, support Raven3.8
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
I've spent way too much time on this today. Here's what I've figured out:
I've been trying to read up on ways of passing the objects from @analytophile am I on the right track here? |
I suspect this is a false lead. Your installation setup works on master, and the code compiles fine using the original cmakelist. I believe there is a quirk related to the source files location introduced in the git fetch mechanism that we need to identify. I'll take a look later this week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to use the same target names and env variables as in the original cmakelist to reduce confusion.
Targets:
- libraven
- ravenbmi
- Raven
option(COMPILE_LIB "If ON, will create a dynamic lib file (default: OFF)" OFF)
option(COMPILE_EXE "If ON, will create a executable file (default: ON)" ON)
option(PYTHON, "If ON, will create a share library for python (default: OFF)" OFF)
for more information, see https://pre-commit.ci
Seems to be working! The only issue I can see is that the model reports a non-fatal error:
@huard any idea what that could be? EDIT: It's nothing. Looks like it's simply the exit code for enum exitcode
{
BAD_DATA, ///< For bad input provided by user (requires immediate exit from program)
BAD_DATA_WARN, ///< For bad input provided by user (requires shutdown prior to simulation)
RUNTIME_ERR, ///< For runtime error (bad programming)
FILE_OPEN_ERR, ///< For bad file open (requires immediate exit)
RAVEN_OPEN_ERR, ///< for bad RavenErrors.txt file open
STUB, ///< Stub function
OUT_OF_MEMORY, ///< When out of memory
SIMULATION_DONE ///< Upon completion of the simulation
}; |
…scm to set version
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Needed to set the fetch-depth for setuptools_scm. See: pypa/setuptools-scm#414 |
Pull Request Checklist:
What kind of change does this PR introduce?
RavenHydroFramework
source files to the official GitHub projecthatch-fancy-pypi-readme
andsetuptools_scm
).scikit-build-core
>=0.8.0Does this PR introduce a breaking change?
Yes. The copied source files have been removed. There is more integration with the actual project source files.