From 09ca5c120e965c53614f4c24f794a22f3154bdcf Mon Sep 17 00:00:00 2001 From: Julia TagBot <50554310+JuliaTagBot@users.noreply.github.com> Date: Sat, 8 Feb 2020 20:39:25 +0700 Subject: [PATCH 1/2] Install TagBot as a GitHub Action --- .github/workflows/TagBot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/TagBot.yml diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml new file mode 100644 index 0000000..d77d3a0 --- /dev/null +++ b/.github/workflows/TagBot.yml @@ -0,0 +1,11 @@ +name: TagBot +on: + schedule: + - cron: 0 * * * * +jobs: + TagBot: + runs-on: ubuntu-latest + steps: + - uses: JuliaRegistries/TagBot@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} From 8898c1a8d173d5ec056db663b86a235df4df1235 Mon Sep 17 00:00:00 2001 From: Jared Blanchard Date: Tue, 31 Mar 2020 10:05:42 -0700 Subject: [PATCH 2/2] Make V and W initialization more general Changed V and W to initialize as the same type as r --- src/orbit_dynamics.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/orbit_dynamics.jl b/src/orbit_dynamics.jl index 6af3629..ae5d988 100644 --- a/src/orbit_dynamics.jl +++ b/src/orbit_dynamics.jl @@ -121,8 +121,8 @@ function spherical_harmonic_gravity(r::Array{<:Real, 1}, coef::Array{<:Real, 2}, z0 = r_ref * r[3] / r_sqr # Initialize Intermediary Matrices - V = zeros(Float64, n_max+2, n_max+2) - W = zeros(Float64, n_max+2, n_max+2) + V = zeros(eltype(r), n_max+2, n_max+2) + W = zeros(eltype(r), n_max+2, n_max+2) # Calculate zonal terms V(n, 0). Set W(n,0)=0.0 V[0+1, 0+1] = r_ref /sqrt(r_sqr) @@ -727,4 +727,4 @@ function accel_relativity(x::Array{<:Real, 1}) a_rel = GM_EARTH/r2 * ( (4*GM_EARTH/(c2*norm_r) - v2/c2)*er + 4*v2/c2*dot(er, ev)*ev) return a_rel -end \ No newline at end of file +end