Skip to content
Snippets Groups Projects
Commit 4f1e7f63 authored by mattijs's avatar mattijs
Browse files

ENH: DILUPreconditioner: Speedup. Fixes #3088

parent 53052a5e
No related branches found
No related tags found
1 merge request!722RELEASE: develop branch to master
...@@ -107,8 +107,6 @@ void Foam::DILUPreconditioner::precondition ...@@ -107,8 +107,6 @@ void Foam::DILUPreconditioner::precondition
solver_.matrix().lduAddr().upperAddr().begin(); solver_.matrix().lduAddr().upperAddr().begin();
const label* const __restrict__ lPtr = const label* const __restrict__ lPtr =
solver_.matrix().lduAddr().lowerAddr().begin(); solver_.matrix().lduAddr().lowerAddr().begin();
const label* const __restrict__ losortPtr =
solver_.matrix().lduAddr().losortAddr().begin();
const scalar* const __restrict__ upperPtr = const scalar* const __restrict__ upperPtr =
solver_.matrix().upper().begin(); solver_.matrix().upper().begin();
...@@ -126,9 +124,8 @@ void Foam::DILUPreconditioner::precondition ...@@ -126,9 +124,8 @@ void Foam::DILUPreconditioner::precondition
for (label face=0; face<nFaces; face++) for (label face=0; face<nFaces; face++)
{ {
const label sface = losortPtr[face]; wAPtr[uPtr[face]] -=
wAPtr[uPtr[sface]] -= rDPtr[uPtr[face]]*lowerPtr[face]*wAPtr[lPtr[face]];
rDPtr[uPtr[sface]]*lowerPtr[sface]*wAPtr[lPtr[sface]];
} }
for (label face=nFacesM1; face>=0; face--) for (label face=nFacesM1; face>=0; face--)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment