Skip to content

quickly parameter-dependent assembly #732

Answered by kinnala
AnyWayOne asked this question in Q&A
Discussion options

You must be logged in to vote

There is no command to do them all at once. In principle it would be possible to have a "TrilinearForm" to assemble 3-tensors and then do multiple contractions to 2-tensors. However, I think the limitation is that there is no efficient data structure (similar to scipy.sparse) available for such sparse 3-tensors that would be suitable for FE assembly (sums multiple values during init).

One thing you could try is using Dask (and dask.bag) to parallelize the for-loop. Those computations do not depend on one another so if you have n_p computers, it should be pretty quick.

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@AnyWayOne
Comment options

@AnyWayOne
Comment options

@kinnala
Comment options

@AnyWayOne
Comment options

@kinnala
Comment options

Answer selected by AnyWayOne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #731 on September 02, 2021 04:38.