|
192 | 192 | ## args
|
193 | 193 | - reaction_network: a reaction network.
|
194 | 194 | """
|
195 |
| -function make_hc_template(rn::DiffEqBase.AbstractReactionNetwork) |
| 195 | +function make_hc_template!(rn::DiffEqBase.AbstractReactionNetwork) |
196 | 196 | check_is_polynomial(rn)
|
197 | 197 | check_has_polynomial(rn)
|
198 | 198 | p_template = randn(ComplexF64, length(rn.params))
|
|
210 | 210 | ## args
|
211 | 211 | - reaction_network: a reaction network.
|
212 | 212 | """
|
213 |
| -function add_hc_template(rn::DiffEqBase.AbstractReactionNetwork) |
| 213 | +function add_hc_template!(rn::DiffEqBase.AbstractReactionNetwork) |
214 | 214 | p_template = randn(ComplexF64, length(rn.params))
|
215 | 215 | f_template = DynamicPolynomials.subs.(get_equi_poly(rn), Ref(get_polyvars(rn).p => p_template))
|
216 | 216 | solution_template = solutions(HomotopyContinuation.solve(f_template, show_progress=false))
|
|
234 | 234 | - reaction_network: a reaction network.
|
235 | 235 | """
|
236 | 236 | macro make_hc_template(rn::Symbol)
|
237 |
| - return Expr(:escape,:(make_hc_template($rn))) |
| 237 | + return Expr(:escape,:(make_hc_template!($rn))) |
238 | 238 | end
|
239 | 239 | #Macro running the HC template function.
|
240 | 240 | """
|
|
246 | 246 | - reaction_network: a reaction network.
|
247 | 247 | """
|
248 | 248 | macro add_hc_template(rn::Symbol)
|
249 |
| - return Expr(:escape,:(add_hc_template($rn))) |
| 249 | + return Expr(:escape,:(add_hc_template!($rn))) |
250 | 250 | end
|
251 | 251 |
|
252 | 252 |
|
@@ -297,7 +297,7 @@ function initialise_solver!(rn::DiffEqBase.AbstractReactionNetwork, p::Vector{Fl
|
297 | 297 | check_is_polynomial(rn)
|
298 | 298 | using_temp_poly = !has_equi_poly(rn)
|
299 | 299 | using_temp_poly && fix_parameters(rn, p, full_vector_exemption=bifurcation_exception_parameter)
|
300 |
| - !has_hc_templates(rn) && make_hc_template(rn) |
| 300 | + !has_hc_templates(rn) && make_hc_template!(rn) |
301 | 301 | return using_temp_poly
|
302 | 302 | end
|
303 | 303 | # In case a temporary equilibrium polynomial were used, this one resets it.
|
|
0 commit comments