M76. One reading of an equation

Package: P7, what its first part left. Nothing that a user sees has changed, but one defect that is repaired: a system on a region with an equation too few is refused, where the core panicked. With this milestone the steps of decision D72.1 are done.

What was built

  • A system in time on a domain with modes is read once. bounded_system::classify and shaped_system::classify were the same function twice, apart from the words of their refusals and one check each. in_modes::read_system is the one: it sorts the terms of each equation by the unknown whose rate of change the equation gives, makes a problem for each unknown alone with the conditions of that unknown, has the path of the domain read it, and keeps the terms that couple. BoxedSystem and ShapedSystem are one type, in_modes::Joined, for the two kinds of member. conditions_of, which stood twice, and sort_leaves are beside it.

  • What every path reads of an equation, by one function each, in analysis: the grid of the data fields (it stood three times, with one word of its refusal different), the starting value of Newton’s method (four times), and the refusal of the magnitude of a complex unknown in a nonlinear term (four times, word for word).

  • A nonlinear term and its slope are compiled once, by newton::Compiled. Fourier grids and shapes each had the struct and the function, and differed in where the unknown stands among the fields that the programs read, which the caller now says.

Decisions

D76.1. A system is read by one function, and a domain says what a member is

Developer, 2026-11-25.

read_system takes the path that reads one equation on the domain, bounded::classify or shaped::classify, and three things that differ: the words for where the system lives, how an equation becomes the terms that are sorted (on a shape a density in front of the derivative in time divides every term first), and what the domain refuses of a member or of the terms that couple it (between walls data from an array, on a shape second derivatives in the coupling). The trait Member gives it the order in time, the factor of the equation and whether the unknown is complex.

One thing changed by the way, and it repairs a defect. On a shape a system in time with fewer equations than unknowns met an expect: the core panicked, where between walls the same system was refused with a message. The copy for shapes had lost the check. Read by one function, both are refused, and a test says so.

D76.2. What of P7 is left as it is, and why

Developer, 2026-11-25.

The review named more under one reading than was joined. Read closely, the rest is not copies:

  • The error that is a branch. bounded_modes::classify reads an eigenproblem for modes that are products, and if that is refused reads it for the iteration, whose refusal is then the last word. That is two readings in a row, and an error is how the first says no.

  • The words that are rewritten. shaped_modes::classify turns “in time, on a shape” into “in an eigenproblem on a shape” in a refusal. It follows from decision D57.1, by which an eigenproblem is read as the problem in time whose modes it asks for, so that no operator is read twice. To give every refusal of that reading two wordings would cost more than the one line that rewrites.

  • One structure for what every path reads. The ten structures hold the same five things. What was written several times was the functions that find them, which are one each now. A structure inside the ten would be a layer and no line less.

  • The terms of an operator. bounded_varying and shaped sort the linear terms of an equation by a match, each into what its method holds: formulas for an iteration, sums by the slot of a weak form. varying on Fourier grids does not sort: it takes any derivative. They are two readers of one form, which expr gives, and they keep different things.

  • Systems on Fourier grids read time as a matrix of operators, one entry for each pair of an equation and an unknown, by functions of their own. One equation is read by analysis::read_time. The two are not the same reading.

So P7 ends here. What a new path or a new kind of problem meets now is on the page of the architecture, under what is written once.

What was measured

The 24 problems of milestones 72 and 73 give the same bytes as before.

The review, after its steps

Of the algorithms that the review of milestone 72 found in several places:

What

Was

Is

The loop of Newton’s method

4

1, with four equations

The control of the step of the exponential scheme

2

1

The exponential scheme with a matrix for each member of a basis

1, for waves

1, for waves and modes

Exact propagation and stepping in modes, with the recording

2

1

A system in time as one state of all unknowns

2

1

The reading of a system in time on a domain with modes

2

1

Reading what an equation holds of time

2, and one for systems

1, and one for systems

The way to a path

2 chains and a third

1 table

A block iteration for eigenvalues

2

2 (package P9)

And of what the copies had turned into: nonlinear waves between walls (A14) are solved, on regions as well, by code that is written once. Arrays as data and equations of second order in systems between walls (A23) are still open, and are now one piece of work for walls and shapes.