Skip to content

Conversation

@brownbaerchen
Copy link
Contributor

The spectral discretizations require a few block-diagonal matrices among all degrees of freedom. Constructing them as such actually reduces the memory requirements quite a bit compared to constructing general block matrices with only the diagonal blocks.
This is independent of the larger refactor, which is why I did a separate PR.
I added a test that the resulting operators are the same and that indeed memory is reduced.

@pancetta
Copy link
Member

pancetta commented Jul 5, 2025

How large are these matrices in general?

@brownbaerchen
Copy link
Contributor Author

brownbaerchen commented Jul 6, 2025 via email

@pancetta
Copy link
Member

pancetta commented Jul 7, 2025

Allocation of memory in Python is not straightforward (and not efficient if done manually). Relying on libraries like scipy is strongly recommended over lists (or so).

@pancetta pancetta merged commit d56045a into Parallel-in-Time:master Jul 7, 2025
46 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants