"src/git@develop.openfoam.com:Development/openfoam.git" did not exist on "51fd6327a64eae7904a8b4a2b02bb0109ae1490d"
Mark Olesen
authored
Note: PackedList constructor initializes to zero, faster not to do it ourselves. ie, PackedList foo(nPoints); vs. PackedList foo(nPoints, 0); saves an extra nPoints operations with shifts/masks etc. If speed is important, change this type of code PackedList isMaster(nPoints, 1u); for (loop) { if (condition) { isMaster.set(i, 0u); // unset bit } } return isMaster; into this: PackedList notMaster(nPoints); for (loop) { if (!condition) { notMaster.set(i, 1u); } } notMaster.flip(); return notMaster; or this: PackedList isMaster(nPoints); isMaster.flip(); for (loop) { if (condition) { isMaster.set(i, 0u); } } return isMaster;
Name | Last commit | Last update |
---|---|---|
applications | ||
bin | ||
doc | ||
etc | ||
src | ||
tutorials | ||
wmake | ||
.gitignore | ||
Allwmake | ||
COPYING | ||
README | ||
ReleaseNotes-1.6 |