- Thank you received: 6
improve efficiency for vertex patch blocks?
- Guosheng Fu
- Topic Author
- Offline
- Elite Member
Less
More
4 years 1 week ago #3330
by Guosheng Fu
improve efficiency for vertex patch blocks? was created by Guosheng Fu
Hello,
Is there a more efficient way to obtain the vertex/edge patch blocks for a block jacobi preconditioner?
The version in unit-2.1.2 is serial and is quite slow.
I am guessing this is due to python for looping and no parallelization. Any suggestion to speed up the process?
Best,
Guosheng
Is there a more efficient way to obtain the vertex/edge patch blocks for a block jacobi preconditioner?
The version in unit-2.1.2 is serial and is quite slow.
I am guessing this is due to python for looping and no parallelization. Any suggestion to speed up the process?
Best,
Guosheng
4 years 2 days ago #3371
by schruste
Replied by schruste on topic improve efficiency for vertex patch blocks?
Hi Guosheng,
Still afraid of taking a look at the C++ source code?
Some choices for BlockJacobi-blocks are defined on the FESpace-level for most standard FESpaces, i.e. you could use or modify these for your own block preconditioners. More flexible would be to simply write a small minimal module that generates your block preconditioners on the C++ level. For that simply take a look at a module like github.com/NGSolve/ngs-special-functions to copy the library infrastructure that you need to build a module and take a look at the CreateSmoothingBlocks() function of a standard FESpace, e.g. H1. Both together should contain all the functionality that you need.
Best,
Christoph
Still afraid of taking a look at the C++ source code?
Some choices for BlockJacobi-blocks are defined on the FESpace-level for most standard FESpaces, i.e. you could use or modify these for your own block preconditioners. More flexible would be to simply write a small minimal module that generates your block preconditioners on the C++ level. For that simply take a look at a module like github.com/NGSolve/ngs-special-functions to copy the library infrastructure that you need to build a module and take a look at the CreateSmoothingBlocks() function of a standard FESpace, e.g. H1. Both together should contain all the functionality that you need.
Best,
Christoph
- Guosheng Fu
- Topic Author
- Offline
- Elite Member
Less
More
- Thank you received: 6
4 years 2 days ago #3374
by Guosheng Fu
Replied by Guosheng Fu on topic improve efficiency for vertex patch blocks?
Thanks for the suggestions.
I will take a look. :>
I will take a look. :>
Time to create page: 0.103 seconds