Conversation
This provides the same answer for one level
|
@apontzen do you know if there's a piece of code that implements the combination / uncombination operations ( In particular, splicing yields the solution So I'd either have to let genetIC know that I have already combined the fields (i.e., store In the latter case, it'd be useful if there were a way to apply |
This finally adds splicing with multilevel.
It is, however, worth noting that the accuracy improves much more slowly when using the multi-level approach. Typically, you'd need hundreds of steps to reach ~1% accuracy.
Some details on the implementation
Splicing on a uniform grid
The equation to be solved is
$$\mathbf{\bar{M} C^{-1} \bar{M}} \alpha = \mathbf{\bar{M} C^{-1} M} (b - a),$$ $a$ and $b$ are fields (in density space), $\mathbf{M}=1-\mathbf{\bar M}$ is a matrix that selects the region to be spliced.
where
Once$\alpha$ is obtained, one can obtain the spliced field as
$$f=b + \mathbf{M}(a-b) + \mathbf{\bar{M}}\alpha.$$
This is a WIP: