Skip to content

Commit 76da67a

Browse files
author
Jordan Benjamin
committed
bugfix and new version
1 parent 902d966 commit 76da67a

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

.github/workflows/CodeCov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Julia
2020
uses: julia-actions/setup-julia@latest
2121
with:
22-
version: 1.10.8
22+
version: 1.11.5
2323

2424
- name: Test with coverage
2525
env:

.github/workflows/JuliaFormatter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: julia-actions/setup-julia@latest
3232
if: steps.filter.outputs.julia_file_change == 'true'
3333
with:
34-
version: 1.10.8
34+
version: 1.11.5
3535

3636
- name: Apply JuliaFormatter
3737
if: steps.filter.outputs.julia_file_change == 'true'

.github/workflows/UpDeps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: julia-actions/setup-julia@latest
2525
with:
26-
version: 1.10.8
26+
version: 1.11.5
2727

2828
- name: Apply UpDeps
2929
run: |

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
version:
19-
- '1.10.8'
19+
- '1.11.5'
2020
os:
2121
- ubuntu-latest
2222
- macOS-latest

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SOCRATESSingleColumnForcings"
22
uuid = "efca6b66-9b98-11ed-1a32-7b7cdccd517a"
33
authors = ["Jordan Benjamin"]
4-
version = "0.13.10"
4+
version = "0.13.11"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

src/interpolating_methods.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@ end
225225
# Make it broadcastable (for vector or static array evaluation)
226226
Base.broadcastable(s::Fast1DLinearInterpolant) = Ref(s)
227227

228-
change_bc(sp::Fast1DLinearInterpolant{X, BCTO}, new_bc::BCTN) where {X <: AbstractVector, BCTO <: ValidBoundaryConditions, BCTN <: ValidBoundaryConditions} =
228+
change_bc(
229+
sp::Fast1DLinearInterpolant{X, BCTO},
230+
new_bc::BCTN,
231+
) where {X <: AbstractVector, BCTO <: ValidBoundaryConditions, BCTN <: ValidBoundaryConditions} =
229232
Fast1DLinearInterpolant{X, BCTN}(sp.xp, sp.fp, new_bc) # returns a new object, I guess you could use accessor or setfield or whatever
230233
# Make it callable for scalar x
231234
function (s::Fast1DLinearInterpolant)(x::T) where {T}
@@ -278,7 +281,10 @@ function fast1d_derivative!(
278281
return y
279282
end
280283
# Vectorized derivative
281-
function fast1d_derivative(x::AbstractVector{T}, spl::Fast1DLinearInterpolant{X, BCT}) where {T <: Real, X <: AbstractVector, BCT <: ValidBoundaryConditions}
284+
function fast1d_derivative(
285+
x::AbstractVector{T},
286+
spl::Fast1DLinearInterpolant{X, BCT},
287+
) where {T <: Real, X <: AbstractVector, BCT <: ValidBoundaryConditions}
282288
y = similar(x)
283289
fast1d_derivative!(y, x, spl)
284290
return y

0 commit comments

Comments
 (0)