diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-02-21 17:29:32 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-02-21 17:29:32 +0300 |
commit | b8af5e10620fe92f45c5e5003bfb6ef8d91e29bb (patch) | |
tree | e4eec6e4e63bcefc9fdca76c26196158c53a872f /extern/mantaflow/preprocessed/levelset.cpp | |
parent | ec5fc1adccb0cc7a9d10bf9e3004e9d792349294 (diff) |
Fluid: Updated manta pp files
Updates include:
- A fix from Jacques that changed the loop order in the mesh creation function (the fix speeds up the function significantly due to fewer cache misses).
- Some of the grid copy helper functions are now multithreaded.
- A fix for Windows file IO. Now it possible to load files with non ASCII characters on Windows too.
Diffstat (limited to 'extern/mantaflow/preprocessed/levelset.cpp')
-rw-r--r-- | extern/mantaflow/preprocessed/levelset.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extern/mantaflow/preprocessed/levelset.cpp b/extern/mantaflow/preprocessed/levelset.cpp index dcc10718d71..a6f9fb40f3f 100644 --- a/extern/mantaflow/preprocessed/levelset.cpp +++ b/extern/mantaflow/preprocessed/levelset.cpp @@ -773,9 +773,9 @@ void LevelsetGrid::createMesh(Mesh &mesh) Grid<int> edgeVY(mParent); Grid<int> edgeVZ(mParent); - for (int i = 0; i < mSize.x - 1; i++) + for (int k = 0; k < mSize.z - 1; k++) for (int j = 0; j < mSize.y - 1; j++) - for (int k = 0; k < mSize.z - 1; k++) { + for (int i = 0; i < mSize.x - 1; i++) { Real value[8] = {get(i, j, k), get(i + 1, j, k), get(i + 1, j + 1, k), |