Skip to content

Commit c4cfbf8

Browse files
committed
change signature
1 parent 04930b9 commit c4cfbf8

40 files changed

+52
-40
lines changed

src/apinene.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export apinene
22

33
# Isometrization of α-pinene COPS Problem v.0.3.1
44
# https://www.mcs.anl.gov/~more//cops/cops3.pdf
5-
function apinene(args...; n = 400, kwargs...)
5+
function apinene(n :: Int = 400, args...; kwargs...)
66
T = 36420.0
77
model = CartesianDiscreteModel((0, T), n)
88

src/bearing.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ export bearing
33
# Journal Bearing COPS Problem v.0.3.1
44
# https://www.mcs.anl.gov/~more//cops/cops3.pdf
55
# n= 50, 75, 100
6-
function bearing(args...; n = 50, kwargs...)
6+
function bearing(n :: Int = 50, args...; kwargs...)
7+
78
ϵ = 0.1
89
b = 10
910

src/burger1d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Suggestions:
2323
- FEOperatorFromTerms has only one term. We might consider splitting linear and
2424
nonlinear terms.
2525
"""
26-
function burger1d(args...; n::Int = 512, kwargs...)
26+
function burger1d(n :: Int = 512, args...; kwargs...)
2727

2828
#Domain
2929
domain = (0, 1)

src/burger1d_param.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export burger1d_param
22

3-
function burger1d_param(args...; n = 512, kwargs...)
3+
function burger1d_param(n :: Int = 512, args...; kwargs...)
44
domain = (0, 1)
55
partition = n
66
model = CartesianDiscreteModel(domain, partition)

src/catmix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export catmix
33
# Catalyst Mixing COPS Problem v.0.3.1
44
# https://www.mcs.anl.gov/~more//cops/cops3.pdf
55
# n=100, 200, 400
6-
function catmix(args...; n::Int = 100, kwargs...)
6+
function catmix(n :: Int = 100, args...; kwargs...)
77

88
#Domain
99
domain = (0, 1)

src/cellincrease.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Mairet, F., & Bayen, T. (2021). The promise of dawn: microalgae photoacclimation
55
66
Using a photosynthetic rate proportional to the photosynthetic apparatus mass fraction.
77
"""
8-
function cellincrease(args...; x0 = [0.6, 0.1], n = 10, T = 7, kwargs...)
8+
function cellincrease(n :: Int = 10, args...; x0 = [0.6, 0.1], T = 7, kwargs...)
99
kp(x) = 1.01
1010
kr(x) = 2.03
1111

src/cellincrease_MichaelisMenten.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Mairet, F., & Bayen, T. (2021). The promise of dawn: microalgae photoacclimation
55
66
Using Michaelis-Menten's function for the photosynthetic rate.
77
"""
8-
function cellincrease_MichaelisMenten(args...; x0 = [0.6, 0.1], n = 10, T = 7, kwargs...)
8+
function cellincrease_MichaelisMenten(n :: Int = 10, args...; x0 = [0.6, 0.1], T = 7, kwargs...)
99
kp(x) = 1.6
1010
kr(x) = 2.1
1111
K(x) = 140.

src/channel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export channel
22

33
# Isometrization of Flow in a Channel COPS Problem v.0.3.1
44
# https://www.mcs.anl.gov/~more//cops/cops3.pdf
5-
function channel(args...; n = 400, kwargs...)
5+
function channel(n :: Int = 400, args...; kwargs...)
66
model = CartesianDiscreteModel((0, 1), n)
77

88
labels = get_face_labeling(model)

src/controlelasticmembrane1.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The force term is h(x_1,x_2) = - sin( ω x_1)sin( ω x_2) with ω = π - 1/8.
1616
In this first case, the bound constraints are constants with
1717
umin(x) = 0.0 and umax(x) = 1.0.
1818
"""
19-
function controlelasticmembrane1(args...; n::Int = 10, kargs...)
19+
function controlelasticmembrane1(n :: Int = 10, args...; kargs...)
2020

2121
#Domain
2222
domain = (-1, 1, -1, 1)

src/controlelasticmembrane2.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The force term is h(x_1,x_2) = - sin( ω x_1)sin( ω x_2) with ω = π - 1/8.
1515
In this second case, the bound constraints are
1616
umin(x) = x_1+x_2 and umax(x) = x_1^2+x_2^2 applied at the midpoint of the cells.
1717
"""
18-
function controlelasticmembrane2(; n::Int = 10, args...)
18+
function controlelasticmembrane2(n :: Int = 10, args...; kargs...)
1919

2020
# Domain
2121
domain = (-1, 1, -1, 1)

0 commit comments

Comments
 (0)