question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In reviewing the example of forced convection #162, some suggestions were made to reduce the five-minute run-time. These concern the Navier–Stokes solver rather than forced convection per se, so new issues are being launched to take them up. The first suggestion was:

Maybe precalculating Reverse Cuthill-McKee reordering for the rows and columns of self.S would help a bit but can’t say for sure.

Does reordering help in general? Does it help specifically with meshes imported from Gmsh and systems solved with scipy.sparse.linalg.solve? Does it depend on the block-structure of the matrix? (The Stokes problem as assembled in ex24 has the classic symmetric semidefinite saddle-point structure of the Taylor–Hood velocity–pressure mixed finite elements.) What about iterative solvers like GMRES as in the second suggestion?

The reordering is implemented in skfem.utils.rcm, but is not yet used in the examples.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kinnalacommented, Mar 31, 2021

I suppose it could be possible to have an option to reorder mesh during initialization as an attempt to reduce fill in. However, I think it should not be enabled by default because it will cause surprising interpretation of the rows/cols of the resulting matrices.

1reaction
kinnalacommented, Apr 13, 2019

What you say is most certainly true, but I suppose scipy.sparse.linalg.solve will compute some (possibly better) reordering quite quickly before each solve anyways.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reordering - definition of reordering by The Free Dictionary
1. To order (the same goods) again. ; 2. To straighten out or put in order again. ; 3. To rearrange.
Read more >
Reorder Definition & Meaning - Merriam-Webster
The meaning of REORDER is to arrange in a different way. How to use reorder in a sentence.
Read more >
Reordering - Definition, Meaning & Synonyms - Vocabulary.com
a rearrangement in a different order.
Read more >
REORDER | definition in the Cambridge English Dictionary
Banks have argued that they reorder transactions to make sure that important payments, such a consumer's mortgage, don't bounce. ... But, if the...
Read more >
Reorder Definition & Meaning - Dictionary.com
Reorder definition, to put in order again: to reorder the card file. See more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found