process_vertical_faces(): Hoist invariant assignments above loop.
Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
committed by
Bård Skaflestad
parent
1d1bf4b4f7
commit
5cac732131
@@ -216,6 +216,10 @@ process_vertical_faces(int direction,
|
||||
int *ptr;
|
||||
int len;
|
||||
|
||||
d[0] = 2 * (nx + 0);
|
||||
d[1] = 2 * (ny + 0);
|
||||
d[2] = 2 * (nz + 1);
|
||||
|
||||
for (j=0; j<ny+direction; ++j) {
|
||||
for (i=0; i<nx+1-direction; ++i){
|
||||
|
||||
@@ -227,9 +231,6 @@ process_vertical_faces(int direction,
|
||||
}
|
||||
|
||||
/* Vectors of point numbers */
|
||||
d[0] = 2*nx;
|
||||
d[1] = 2*ny;
|
||||
d[2] = 2+2*nz;
|
||||
igetvectors(d, 2*i+direction, 2*j+1-direction, plist, cornerpts);
|
||||
|
||||
if (direction == 1) {
|
||||
|
||||
Reference in New Issue
Block a user