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

update to heyoka5 #59

Merged
merged 4 commits into from
Jul 10, 2024
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
92 changes: 46 additions & 46 deletions .github/workflows/gha_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,52 +26,52 @@ jobs:
fetch-depth: 2
- name: Build
run: bash tools/gha_conda_coverage.sh
manylinux228-py311:
runs-on: ubuntu-latest
container:
image: pagmo2/manylinux228_x86_64_with_deps:latest
env:
CASCADE_PY_BUILD_TYPE: "Python311"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Build
run: bash tools/gha_manylinux.sh
manylinux228-py310:
runs-on: ubuntu-latest
container:
image: pagmo2/manylinux228_x86_64_with_deps:latest
env:
CASCADE_PY_BUILD_TYPE: "Python310"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Build
run: bash tools/gha_manylinux.sh
manylinux228-py39:
runs-on: ubuntu-latest
container:
image: pagmo2/manylinux228_x86_64_with_deps:latest
env:
CASCADE_PY_BUILD_TYPE: "Python39"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Build
run: bash tools/gha_manylinux.sh
manylinux228-py38:
runs-on: ubuntu-latest
container:
image: pagmo2/manylinux228_x86_64_with_deps:latest
env:
CASCADE_PY_BUILD_TYPE: "Python38"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Build
run: bash tools/gha_manylinux.sh
#manylinux228-py311:
# runs-on: ubuntu-latest
# container:
# image: pagmo2/manylinux228_x86_64_with_deps:latest
# env:
# CASCADE_PY_BUILD_TYPE: "Python311"
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# steps:
# - uses: actions/checkout@v3
# - name: Build
# run: bash tools/gha_manylinux.sh
#manylinux228-py310:
# runs-on: ubuntu-latest
# container:
# image: pagmo2/manylinux228_x86_64_with_deps:latest
# env:
# CASCADE_PY_BUILD_TYPE: "Python310"
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# steps:
# - uses: actions/checkout@v3
# - name: Build
# run: bash tools/gha_manylinux.sh
#manylinux228-py39:
# runs-on: ubuntu-latest
# container:
# image: pagmo2/manylinux228_x86_64_with_deps:latest
# env:
# CASCADE_PY_BUILD_TYPE: "Python39"
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# steps:
# - uses: actions/checkout@v3
# - name: Build
# run: bash tools/gha_manylinux.sh
#manylinux228-py38:
# runs-on: ubuntu-latest
# container:
# image: pagmo2/manylinux228_x86_64_with_deps:latest
# env:
# CASCADE_PY_BUILD_TYPE: "Python38"
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# steps:
# - uses: actions/checkout@v3
# - name: Build
# run: bash tools/gha_manylinux.sh
windows_2019:
runs-on: windows-2019
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
Expand All @@ -89,7 +89,7 @@ jobs:
run: |
mkdir build
cd build
cmake ../ -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX=C:\Miniconda\envs\cascade_devel\Library -DCASCADE_BUILD_TESTS=yes -DBoost_NO_BOOST_CMAKE=ON -DCASCADE_BUILD_PYTHON_BINDINGS=yes
cmake ../ -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=C:\Miniconda\envs\cascade_devel\Library -DCASCADE_BUILD_TESTS=yes -DBoost_NO_BOOST_CMAKE=ON -DCASCADE_BUILD_PYTHON_BINDINGS=yes
cmake --build . -j4 --config Release --target install
ctest -j4 -V -C Release
cd c:\
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ find_package(fmt REQUIRED CONFIG)
target_link_libraries(cascade PUBLIC fmt::fmt)

# heyoka.
find_package(heyoka 3.0.0 REQUIRED CONFIG)
find_package(heyoka 5 REQUIRED CONFIG)
target_link_libraries(cascade PUBLIC heyoka::heyoka)

# spdlog.
Expand Down
10 changes: 6 additions & 4 deletions cascade.py/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_kepler_equivalence(self):
def test_perturbation_magnitudes(self):
from .dynamics import simple_earth, kepler
import numpy as np
from heyoka import make_cfunc
from heyoka import cfunc, make_vars

dynkep = simple_earth(
J2=False,
Expand Down Expand Up @@ -90,9 +90,11 @@ def test_perturbation_magnitudes(self):
drag=False,
)

dynkep_c = make_cfunc([dynkep[i][1] for i in [3, 4, 5]])
dynJ2_c = make_cfunc([dynJ2[i][1] for i in [3, 4, 5]])
dynJ3_c = make_cfunc([dynJ3[i][1] for i in [3, 4, 5]])
# Dynamical variables.
x, y, z, vx, vy, vz = make_vars("x", "y", "z", "vx", "vy", "vz")
dynkep_c = cfunc([dynkep[i][1] for i in [3, 4, 5]], vars=[x,y,z])
dynJ2_c = cfunc([dynJ2[i][1] for i in [3, 4, 5]], vars=[x,y,z])
dynJ3_c = cfunc([dynJ3[i][1] for i in [3, 4, 5]], vars=[x,y,z])

# We compute the various acceleration magnitudes at 7000 km
pos = np.array([7000000.0, 0.0, 0.0])
Expand Down
4 changes: 2 additions & 2 deletions cascade_devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ dependencies:
- tbb
- boost-cpp >=1.73
- fmt
- heyoka =3.0.*
- heyoka.py =3.0.*
- heyoka =5*
- heyoka.py =5*
- spdlog
- pybind11 >=2.10
- xtensor
Expand Down
197 changes: 0 additions & 197 deletions src/mdspan/__p0009_bits/compressed_pair.hpp

This file was deleted.

Loading
Loading