Skip to content

Commit 528a616

Browse files
committed
missing macro
1 parent 1858c62 commit 528a616

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/ADNLPProblems/marine.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
export marine
22

33
function marine(; n::Int = default_nvar, nc::Int = 1, type::Type{T} = Float64, kwargs...) where {T}
4+
n_orig = n
45
nc = max(min(nc, 4), 1) # number of collocation points
56
ne = 8 # number of differential equations
67
nm = 21 # number of measurements
78

89
n = max(n, 3 * ne * nc + ne + 2 * ne)
910
nh = Int(round((n - 2 * ne + 1) / (3 * ne * nc + ne))) # number of partition intervals
11+
n = 8 + 7 + nh * (8 + 3 * 8 * nc)
12+
@adjust_nvar_warn("marine", n_orig, n)
1013

1114
# roots of k-th degree Legendre polynomial
1215
rho = if nc == 1

0 commit comments

Comments
 (0)