|
337 | 337 |
|
338 | 338 | # Goes through a chain of updating of conservation law constants/species, checking that |
339 | 339 | # the values of relevant quantities are correct after each step. |
340 | | -# Generally, if `Γ` has not been explicitly updated, it will be updated to acomodate new species |
| 340 | +# Generally, if `Γ` has not been explicitly updated, it will be updated to accommodate new species |
341 | 341 | # values. If it has been explicitly updated, the corresponding eliminated quantity will have its |
342 | | -# value updated to acomodate new Γ/species values (however, we have to manually designate this by setting it to `nothing`). |
| 342 | +# value updated to accommodate new Γ/species values (however, we have to manually designate this by setting it to `nothing`). |
343 | 343 | # Also checks that quantities are correctly updated in integrators and solutions derived from problems. |
344 | 344 | let |
345 | 345 | # Prepares the problem inputs and computes the conservation equation. |
|
399 | 399 | # - The conservation law constant will be kept fixed, and secondary updates are made to the |
400 | 400 | # eliminated species. |
401 | 401 | # Assumes that X3 is the eliminated species. In most updates, designate its as `nothing` (to |
402 | | - # ensure that its value is updated to acommodate the new conservation law). |
| 402 | + # ensure that its value is updated to accommodate the new conservation law). |
403 | 403 | # The random Γ is ensured to be large enough not to generate negative values in the eliminated species. |
404 | 404 | for _ in 1:3 |
405 | 405 | # Updates Γ, checks the values of all species and Γ, then resets `prob_old`. |
|
509 | 509 | u0 = [:X1 => 1.0, :X2 => 2.0, :X3 => 3.0] |
510 | 510 | ps = [:k1 => 0.1, :k2 => 0.2, :k3 => 0.3, :k4 => 0.4] |
511 | 511 |
|
512 | | - # Checks that the warning si given and can be supressed for the variosu cases. |
| 512 | + # Checks that the warning si given and can be suppressed for the variosu cases. |
513 | 513 | @test_nowarn convert(NonlinearSystem, rn; remove_conserved = true, conseqs_remake_warn = false) |
514 | 514 | @test_logs (:warn, r"Note, when constructing*") convert(NonlinearSystem, rn; remove_conserved = true, conseqs_remake_warn = true) |
515 | 515 | @test_nowarn NonlinearProblem(rn, u0, ps; remove_conserved = true, conseqs_remake_warn = false) |
|
0 commit comments