mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-10 06:00:45 +01:00
Threaded the constructor of GeneralLocalStencil
This commit is contained in:
parent
4241c7d4a3
commit
36cc9c524f
@ -79,10 +79,10 @@ public:
|
|||||||
this->_entries.resize(npoints* osites);
|
this->_entries.resize(npoints* osites);
|
||||||
this->_entries_p = &_entries[0];
|
this->_entries_p = &_entries[0];
|
||||||
|
|
||||||
|
thread_for(site, osites, {
|
||||||
Coordinate Coor;
|
Coordinate Coor;
|
||||||
Coordinate NbrCoor;
|
Coordinate NbrCoor;
|
||||||
for(Integer site=0;site<osites;site++){
|
|
||||||
for(Integer ii=0;ii<npoints;ii++){
|
for(Integer ii=0;ii<npoints;ii++){
|
||||||
Integer lex = site*npoints+ii;
|
Integer lex = site*npoints+ii;
|
||||||
GeneralStencilEntry SE;
|
GeneralStencilEntry SE;
|
||||||
@ -132,7 +132,7 @@ public:
|
|||||||
////////////////////////////////////////////////
|
////////////////////////////////////////////////
|
||||||
this->_entries[lex] = SE;
|
this->_entries[lex] = SE;
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user