Skip to content

Commit

Permalink
Adjust Input types, remove Windows Builds
Browse files Browse the repository at this point in the history
  • Loading branch information
duncaneddy committed Aug 27, 2019
1 parent a3aafe1 commit 2578ace
Show file tree
Hide file tree
Showing 61 changed files with 64 additions and 64 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: julia
os:
- linux
- osx
- windows
# - windows

julia:
- 1.0
Expand All @@ -16,7 +16,7 @@ matrix:
- os: linux
dist: trusty
- os: osx
- os: windows
# - os: windows
allow_failures:
- julia: nightly

Expand Down
2 changes: 1 addition & 1 deletion src/ab.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ SOFA release 2018-01-30
Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""
function iauAb(pnat::Array{<:Real, 1}, v::Array{<:Real, 1}, s::Real, bm1::Float64)
function iauAb(pnat::AbstractVector{<:Real}, v::AbstractVector{<:Real}, s::Real, bm1::Float64)
ppr = zeros(Float64, 3)

ccall((:iauAb, libsofa_c), Cvoid,
Expand Down
2 changes: 1 addition & 1 deletion src/apcg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ SOFA release 2018-01-30
Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""
function iauApcg(date1::Real, date2::Real, ebpv::Array{<:Real, 2}, ehp::Array{<:Real, 1})
function iauApcg(date1::Real, date2::Real, ebpv::AbstractMatrix{<:Real}, ehp::AbstractVector{<:Real})
# Allocate return value
ref_astrom = Ref{iauASTROM}(iauASTROM())

Expand Down
2 changes: 1 addition & 1 deletion src/apci.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ SOFA release 2018-01-30
Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""
function iauApci(date1::Real, date2::Real,
ebpv::Array{<:Real, 2}, ehp::Array{<:Real, 1},
ebpv::AbstractMatrix{<:Real}, ehp::AbstractVector{<:Real},
x::Real, y::Real, s::Real)
# Allocate return value
ref_astrom = Ref{iauASTROM}(iauASTROM())
Expand Down
2 changes: 1 addition & 1 deletion src/apco.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ SOFA release 2018-01-30
Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""
function iauApco(date1::Real, date2::Real,
ebpv::Array{<:Real, 2}, ehp::Array{<:Real, 1},
ebpv::AbstractMatrix{<:Real}, ehp::AbstractVector{<:Real},
x::Real, y::Real, s::Real, theta::Real,
elong::Real, phi::Real, hm::Real,
xp::Real, yp::Real, sp::Real,
Expand Down
4 changes: 2 additions & 2 deletions src/apcs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ SOFA release 2018-01-30
Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""
function iauApcs(date1::Real, date2::Real,
pv::Array{<:Real, 2}, ebpv::Array{<:Real, 2},
ehp::Array{<:Real, 1})
pv::AbstractMatrix{<:Real}, ebpv::AbstractMatrix{<:Real},
ehp::AbstractVector{<:Real})
# Allocate return value
ref_astrom = Ref{iauASTROM}(iauASTROM())

Expand Down
2 changes: 1 addition & 1 deletion src/apcs13.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ SOFA release 2018-01-30
Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""
function iauApcs13(date1::Real, date2::Real,
pv::Array{<:Real, 2})
pv::AbstractMatrix{<:Real})
# Allocate return value
ref_astrom = Ref{iauASTROM}(iauASTROM())

Expand Down
2 changes: 1 addition & 1 deletion src/bpn2xy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""
# void iauBpn2xy(double rbpn[3][3], double *x, double *y)

function iauBpn2xy(rbpn::Array{<:Real, 2})
function iauBpn2xy(rbpn::AbstractMatrix{<:Real})
# Preallocate return values
ref_x = Ref{Float64}(0.0)
ref_y = Ref{Float64}(0.0)
Expand Down
2 changes: 1 addition & 1 deletion src/c2ibpn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
# void iauC2ibpn(double date1, double date2, double rbpn[3][3],
# double rc2i[3][3])

function iauC2ibpn(date1::Real, date2::Real, rbpn::Array{<:Real, 2})
function iauC2ibpn(date1::Real, date2::Real, rbpn::AbstractMatrix{<:Real})

# Allocate return value
rc2i = zeros(Float64, 3, 3)
Expand Down
2 changes: 1 addition & 1 deletion src/c2s.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.

# void iauC2s(double p[3], double *theta, double *phi)

function iauC2s(p::Array{<:Real, 1})
function iauC2s(p::AbstractVector{<:Real})

# Allocate return value
ref_theta = Ref{Float64}(0.0)
Expand Down
2 changes: 1 addition & 1 deletion src/c2tcio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""
# void iauC2tcio(double rc2i[3][3], double era, double rpom[3][3],
# double rc2t[3][3])
function iauC2tcio(rc2i::Array{<:Real, 2}, era::Real, rpom::Array{<:Real, 2})
function iauC2tcio(rc2i::AbstractMatrix{<:Real}, era::Real, rpom::AbstractMatrix{<:Real})

# Allocate return value
rc2t = zeros(Float64, 3, 3)
Expand Down
2 changes: 1 addition & 1 deletion src/c2teqx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export iauC2teqx
# void iauC2teqx(double rbpn[3][3], double gst, double rpom[3][3],
# double rc2t[3][3])

function iauC2teqx(rbpn::Array{<:Real, 2}, gst::Real, rpom::Array{<:Real, 2})
function iauC2teqx(rbpn::AbstractMatrix{<:Real}, gst::Real, rpom::AbstractMatrix{<:Real})

# Allocate return value
rc2t = zeros(Float64, 3, 3)
Expand Down
2 changes: 1 addition & 1 deletion src/cp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.

# void iauCp(double p[3], double c[3])

function iauCp(p::Array{<:Real, 1})
function iauCp(p::AbstractVector{<:Real})

# Allocate return value
c = zeros(Float64, 3)
Expand Down
2 changes: 1 addition & 1 deletion src/cpv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.

# void iauCpv(double pv[2][3], double c[2][3])

function iauCpv(pv::Array{<:Real, 2})
function iauCpv(pv::AbstractMatrix{<:Real})

# Allocate return value
c = zeros(Float64, 3, 2)
Expand Down
2 changes: 1 addition & 1 deletion src/cr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""
# void iauCr(double r[3][3], double c[3][3])

function iauCr(r::Array{<:Real, 2})
function iauCr(r::AbstractMatrix{<:Real})

# Allocate return value
c = zeros(Float64, 3, 3)
Expand Down
2 changes: 1 addition & 1 deletion src/eors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.

# double iauEors(double rnpb[3][3], double s)

function iauEors(rnbp::Array{<:Real, 2}, s::Real)
function iauEors(rnbp::AbstractMatrix{<:Real}, s::Real)
# Allocate return value
rm = zeros(Float64, 3, 3)

Expand Down
2 changes: 1 addition & 1 deletion src/gc2gd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
# int iauGc2gd( int n, double xyz[3],
# double *elong, double *phi, double *height )

function iauGc2gd(n::Int, xyz::Array{<:Real, 1})
function iauGc2gd(n::Int, xyz::AbstractVector{<:Real})
ref_elong = Ref{Float64}(0.0)
ref_phi = Ref{Float64}(0.0)
ref_height = Ref{Float64}(0.0)
Expand Down
2 changes: 1 addition & 1 deletion src/gc2gde.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
# int iauGc2gde ( double a, double f, double xyz[3],
# double *elong, double *phi, double *height )

function iauGc2gde(a::Real, f::Real, xyz::Array{<:Real, 1})
function iauGc2gde(a::Real, f::Real, xyz::AbstractVector{<:Real})
ref_elong = Ref{Float64}(0.0)
ref_phi = Ref{Float64}(0.0)
ref_height = Ref{Float64}(0.0)
Expand Down
2 changes: 1 addition & 1 deletion src/gst06.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
# double rnpb[3][3])

function iauGst06(uta::Real, utb::Real, tta::Real, ttb::Real,
rnpb::Array{<:Real, 2})
rnpb::AbstractMatrix{<:Real})

return ccall((:iauGst06, libsofa_c), Cdouble,
(Cdouble, Cdouble, Cdouble, Cdouble, Ptr{Cdouble}),
Expand Down
4 changes: 2 additions & 2 deletions src/ld.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
# void iauLd(double bm, double p[3], double q[3], double e[3],
# double em, double dlim, double p1[3])

function iauLd(rh::Real, p::Array{<:Real, 1}, q::Array{<:Real, 1},
e::Array{<:Real, 1}, em::Real, dlim::Real)
function iauLd(rh::Real, p::AbstractVector{<:Real}, q::AbstractVector{<:Real},
e::AbstractVector{<:Real}, em::Real, dlim::Real)
p1 = zeros(Float64, 3)

ccall((:iauLd, libsofa_c), Cvoid,
Expand Down
2 changes: 1 addition & 1 deletion src/ldn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
# double sn[3])

function iauLdn(n::Real, b::Array{iauLDBODY, 1},
ob::Array{<:Real, 1}, sc::Array{<:Real, 1})
ob::AbstractVector{<:Real}, sc::AbstractVector{<:Real})
ref_b = Ref{iauLDBODY}(b[1])
sn = zeros(Float64, 3)

Expand Down
2 changes: 1 addition & 1 deletion src/ldsun.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauLdsun(double p[3], double e[3], double em, double p1[3])
function iauLdsun(p::Array{<:Real, 1}, e::Array{<:Real, 1}, em::Real)
function iauLdsun(p::AbstractVector{<:Real}, e::AbstractVector{<:Real}, em::Real)
# Allocate return values
p1 = zeros(Float64, 3)

Expand Down
2 changes: 1 addition & 1 deletion src/p2pv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauP2pv(double p[3], double pv[2][3])
function iauP2pv(p::Array{<:Real, 1})
function iauP2pv(p::AbstractVector{<:Real})
pv = zeros(Float64, 3, 2)

ccall((:iauP2pv, libsofa_c), Cvoid,
Expand Down
2 changes: 1 addition & 1 deletion src/p2s.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauP2s(double p[3], double *theta, double *phi, double *r)
function iauP2s(p::Array{<:Real, 1})
function iauP2s(p::AbstractVector{<:Real})
ref_theta = Ref{Float64}(0.0)
ref_phi = Ref{Float64}(0.0)
ref_r = Ref{Float64}(0.0)
Expand Down
2 changes: 1 addition & 1 deletion src/pap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# double iauPap(double a[3], double b[3])
function iauPap(a::Array{<:Real, 1}, b::Array{<:Real, 1})
function iauPap(a::AbstractVector{<:Real}, b::AbstractVector{<:Real})
return ccall((:iauPap, libsofa_c), Cdouble,
(Ptr{Cdouble}, Ptr{Cdouble}),
convert(Array{Float64, 1}, a),
Expand Down
2 changes: 1 addition & 1 deletion src/pdp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# double iauPdp(double a[3], double b[3])
function iauPdp(a::Array{<:Real, 1}, b::Array{<:Real, 1})
function iauPdp(a::AbstractVector{<:Real}, b::AbstractVector{<:Real})
return ccall((:iauPdp, libsofa_c), Cdouble,
(Ptr{Cdouble}, Ptr{Cdouble}),
convert(Array{Float64, 1}, a),
Expand Down
2 changes: 1 addition & 1 deletion src/pm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# double iauPm(double p[3])
function iauPm(p::Array{<:Real, 1})
function iauPm(p::AbstractVector{<:Real})

return ccall((:iauPm, libsofa_c), Cdouble,
(Ptr{Cdouble},), p)
Expand Down
2 changes: 1 addition & 1 deletion src/pmp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.

# void iauPmp(double a[3], double b[3], double amb[3])

function iauPmp(a::Array{<:Real, 1}, b::Array{<:Real, 1})
function iauPmp(a::AbstractVector{<:Real}, b::AbstractVector{<:Real})
amb = zeros(Float64, 3)

ccall((:iauPmp, libsofa_c), Cdouble,
Expand Down
2 changes: 1 addition & 1 deletion src/pmpx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
# double pco[3])

function iauPmpx(rc::Real, dc::Real, pr::Real, pd::Real,
px::Real, rv::Real, pmt::Real, pob::Array{<:Real, 1})
px::Real, rv::Real, pmt::Real, pob::AbstractVector{<:Real})
pco = zeros(Float64, 3)

ccall((:iauPmpx, libsofa_c), Cvoid,
Expand Down
2 changes: 1 addition & 1 deletion src/pn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.

# void iauPn(double p[3], double *r, double u[3])

function iauPn(p::Array{<:Real, 1})
function iauPn(p::AbstractVector{<:Real})
# Allocate return values
ref_r = Ref{Float64}(0.0)
u = zeros(Float64, 3)
Expand Down
2 changes: 1 addition & 1 deletion src/ppp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export iauPpp
"""

# void iauPpp(double a[3], double b[3], double apb[3])
function iauPpp(a::Array{<:Real, 1}, b::Array{<:Real, 1})
function iauPpp(a::AbstractVector{<:Real}, b::AbstractVector{<:Real})
apb = zeros(Float64, 3)
ccall((:iauPpp, libsofa_c), Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}),
Expand Down
2 changes: 1 addition & 1 deletion src/ppsp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauPpsp(double a[3], double s, double b[3], double apsb[3])
function iauPpsp(a::Array{<:Real, 1}, s::Real, b::Array{<:Real, 1})
function iauPpsp(a::AbstractVector{<:Real}, s::Real, b::AbstractVector{<:Real})
apsb = zeros(Float64, 3)
ccall((:iauPpsp, libsofa_c), Cvoid,
(Ptr{Cdouble}, Cdouble, Ptr{Cdouble}, Ptr{Cdouble}),
Expand Down
2 changes: 1 addition & 1 deletion src/pv2p.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.

# void iauPv2p(double pv[2][3], double p[3])

function iauPv2p(pv::Array{<:Real, 2})
function iauPv2p(pv::AbstractMatrix{<:Real})
# Preallocate return values
p = zeros(Float64, 3)

Expand Down
2 changes: 1 addition & 1 deletion src/pv2s.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
# double *theta, double *phi, double *r,
# double *td, double *pd, double *rd)

function iauPv2s(pv::Array{<:Real, 2})
function iauPv2s(pv::AbstractMatrix{<:Real})
# Preallocate return values
ref_theta = Ref{Float64}(0.0)
ref_phi = Ref{Float64}(0.0)
Expand Down
2 changes: 1 addition & 1 deletion src/pvdpv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauPvdpv(double a[2][3], double b[2][3], double adb[2])
function iauPvdpv(a::Array{<:Real, 2}, b::Array{<:Real, 2})
function iauPvdpv(a::AbstractMatrix{<:Real}, b::AbstractMatrix{<:Real})
# Preallocate return values
adb = zeros(Float64, 2)

Expand Down
2 changes: 1 addition & 1 deletion src/pvm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauPvm(double pv[2][3], double *r, double *s)
function iauPvm(pv::Array{<:Real, 2})
function iauPvm(pv::AbstractMatrix{<:Real})
# Preallocate return values
ref_r = Ref{Float64}(0.0)
ref_s = Ref{Float64}(0.0)
Expand Down
2 changes: 1 addition & 1 deletion src/pvmpv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauPvmpv(double a[2][3], double b[2][3], double amb[2][3])
function iauPvmpv(a::Array{<:Real, 2}, b::Array{<:Real, 2})
function iauPvmpv(a::AbstractMatrix{<:Real}, b::AbstractMatrix{<:Real})
# Preallocate return values
amb = zeros(Float64, 3, 2)

Expand Down
2 changes: 1 addition & 1 deletion src/pvppv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauPvppv(double a[2][3], double b[2][3], double apb[2][3])
function iauPvppv(a::Array{<:Real, 2}, b::Array{<:Real, 2})
function iauPvppv(a::AbstractMatrix{<:Real}, b::AbstractMatrix{<:Real})
# Preallocate return values
amb = zeros(Float64, 3, 2)

Expand Down
2 changes: 1 addition & 1 deletion src/pvstar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
# int iauPvstar(double pv[2][3], double *ra, double *dec,
# double *pmr, double *pmd, double *px, double *rv)

function iauPvstar(pv::Array{<:Real, 2})
function iauPvstar(pv::AbstractMatrix{<:Real})
# Preallocate return values
ref_ra = Ref{Float64}(0.0)
ref_dec = Ref{Float64}(0.0)
Expand Down
2 changes: 1 addition & 1 deletion src/pvu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauPvu(double dt, double pv[2][3], double upv[2][3])
function iauPvu(dt::Real, pv::Array{<:Real, 2})
function iauPvu(dt::Real, pv::AbstractMatrix{<:Real})
# Preallocate return values
upv = zeros(Float64, 3, 2)

Expand Down
2 changes: 1 addition & 1 deletion src/pvup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauPvup(double dt, double pv[2][3], double p[3])
function iauPvup(dt::Real, pv::Array{<:Real, 2})
function iauPvup(dt::Real, pv::AbstractMatrix{<:Real})
# Preallocate return values
p = zeros(Float64, 3)

Expand Down
2 changes: 1 addition & 1 deletion src/pvxpv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauPvxpv(double a[2][3], double b[2][3], double axb[2][3])
function iauPvxpv(a::Array{<:Real, 2}, b::Array{<:Real, 2})
function iauPvxpv(a::AbstractMatrix{<:Real}, b::AbstractMatrix{<:Real})
# Preallocate return values
axb = zeros(Float64, 3, 2)

Expand Down
2 changes: 1 addition & 1 deletion src/pxp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Copyright (C) 2018 IAU SOFA Board. See notes at end.
"""

# void iauPxp(double a[3], double b[3], double axb[3])
function iauPxp(a::Array{<:Real, 1}, b::Array{<:Real, 1})
function iauPxp(a::AbstractVector{<:Real}, b::AbstractVector{<:Real})
# Preallocate return values
axb = zeros(Float64, 3)

Expand Down
Loading

0 comments on commit 2578ace

Please sign in to comment.