-
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
Convert files to proper Julia Package format #3
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
630111c
Shuffling stuff around
johnzl-777 fc4342f
Converted files to package form
johnzl-777 91173bf
Convert Int64 to standard Int to maintain 32-bit compatibility
johnzl-777 2b73b6e
remove Mac OS and Windows in CI
johnzl-777 63cc767
Remove nightly from CI
johnzl-777 f4bdbc9
fix supported architectures for julia-actions
johnzl-777 f42aa71
remove Manifest.toml in benchmarks
johnzl-777 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,64 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: ['*'] | ||
pull_request: | ||
concurrency: | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- "1" | ||
- "1.9" | ||
# - "nightly" | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
# - windows-latest | ||
arch: | ||
- x86 | ||
- x64 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: julia-actions/cache@v1 | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-runtest@v1 | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: lcov.info | ||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
statuses: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1' | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-docdeploy@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: | | ||
julia --project=docs -e ' | ||
using Documenter: DocMeta, doctest | ||
using DormandPrince | ||
DocMeta.setdocmeta!(DormandPrince, :DocTestSetup, :(using DormandPrince); recursive=true) | ||
doctest(DormandPrince)' |
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,16 @@ | ||
name: CompatHelper | ||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
jobs: | ||
CompatHelper: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Pkg.add("CompatHelper") | ||
run: julia -e 'using Pkg; Pkg.add("CompatHelper")' | ||
- name: CompatHelper.main() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} | ||
run: julia -e 'using CompatHelper; CompatHelper.main()' |
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,44 @@ | ||
name: TagBot | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
workflow_dispatch: | ||
jobs: | ||
TagBot: | ||
if: github.event_name == 'workflow_dispatch' || github.actor == '{{{TRIGGER}}}' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: JuliaRegistries/TagBot@v1 | ||
with: | ||
token: {{{TOKEN}}} | ||
{{#SSH}} | ||
ssh: {{{SSH}}} | ||
{{/SSH}} | ||
{{#SSH_PASSWORD}} | ||
ssh_password: {{{SSH_PASSWORD}}} | ||
{{/SSH_PASSWORD}} | ||
{{#CHANGELOG}} | ||
changelog: {{{CHANGELOG}}} | ||
{{/CHANGELOG}} | ||
{{#CHANGELOG_IGNORE}} | ||
changelog_ignore: {{{CHANGELOG_IGNORE}}} | ||
{{/CHANGELOG_IGNORE}} | ||
{{#GPG}} | ||
gpg: {{{GPG}}} | ||
{{/GPG}} | ||
{{#GPG_PASSWORD}} | ||
gpg_password: {{{GPG_PASSWORD}}} | ||
{{/GPG_PASSWORD}} | ||
{{#REGISTRY}} | ||
registry: {{{REGISTRY}}} | ||
{{/REGISTRY}} | ||
{{#BRANCHES}} | ||
branches: {{{BRANCHES}}} | ||
{{/BRANCHES}} | ||
{{#DISPATCH}} | ||
dispatch: {{{DISPATCH}}} | ||
{{/DISPATCH}} | ||
{{#DISPATCH_DELAY}} | ||
dispatch_delay: {{{DISPATCH_DELAY}}} | ||
{{/DISPATCH_DELAY}} |
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,4 +1,11 @@ | ||
.vscode/ | ||
.CondaPkg/ | ||
/.vscode | ||
**/**/**.cov | ||
|
||
/Manifest.toml | ||
/docs/build/ | ||
/docs/Manifest.toml | ||
/docs/src/assets/main.css | ||
/docs/src/assets/indigo.css | ||
|
||
.DS_Store | ||
Manifest.toml | ||
.CondaPkg |
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,13 @@ | ||
Copyright 2023 John Long | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
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,6 +1,9 @@ | ||
name = "DormandPrince" | ||
uuid = "5e45e72d-22b8-4dd0-9c8b-f96714864bcd" | ||
authors = ["John Long<[email protected]>",] | ||
version = "0.1.0" | ||
|
||
[deps] | ||
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" | ||
Bloqade = "bd27d05e-4ce1-5e79-84dd-c5d7d508bbe1" | ||
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa" | ||
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" | ||
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" | ||
|
||
[compat] | ||
julia = "1.9" |
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,25 @@ | ||
# DormandPrince | ||
|
||
Julia-native implementation of the Dormand-Prince 5th order solver | ||
|
||
## Installation | ||
|
||
<p> | ||
DormandPrince is a | ||
<a href="https://julialang.org"> | ||
<img src="https://raw.githubusercontent.com/JuliaLang/julia-logo-graphics/master/images/julia.ico" width="16em"> | ||
Julia Language | ||
</a> | ||
package. To install DormandPrince, | ||
please <a href="https://docs.julialang.org/en/v1/manual/getting-started/">open | ||
Julia's interactive session (known as REPL)</a> and press <kbd>]</kbd> | ||
key in the REPL to use the package mode, then type the following command | ||
</p> | ||
|
||
```julia | ||
pkg> add DormandPrince | ||
``` | ||
|
||
## License | ||
|
||
Apache License 2.0 |
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,3 @@ | ||
[deps] | ||
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" | ||
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using DifferentialEquations | ||
using BenchmarkTools | ||
|
||
|
||
function f(du, u, p, t) | ||
g(t) = 2.2*2π*sin(2π*t) | ||
|
||
du[1] = -1im * g(t)/2 * u[2] | ||
du[2] = -1im * g(t)/2 * u[1] | ||
end | ||
|
||
u0 = ComplexF64[1.0, 0.0] | ||
tspan = (0.0, 2π) | ||
prob = ODEProblem(f, u0, tspan) | ||
# get precompilation out of the way | ||
sol = solve(prob, DP5(), reltol=1e-10, abstol=1e-10) | ||
|
||
# terminate benchmark after maximum of 5 minutes | ||
@benchmark solve(prob, DP5(), reltol=1e-10, abstol=1e-10) samples=10000 evals=5 seconds=300 |
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,19 @@ | ||
using BenchmarkTools | ||
using DormandPrince:DP5Solver, dopri5 | ||
|
||
function fcn(x, y, f) | ||
g(x) = 2.2*2π*sin(2π*x) | ||
|
||
f[1] = -1im * g(x)/2 * y[2] | ||
f[2] = -1im * g(x)/2 * y[1] | ||
end | ||
|
||
solver = DP5Solver( | ||
fcn, | ||
0.0, | ||
ComplexF64[1.0, 0.0] | ||
) | ||
|
||
dopri5(solver, 2π) | ||
|
||
@benchmark dopri5(clean_solver, 2π) setup=(clean_solver = DP5Solver(fcn, 0.0, ComplexF64[1.0, 0.0])) samples=10000 evals=5 seconds=500 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
remove this file.