Update localh.cpp

Fixed iteration over dimensions of gradingbox
This commit is contained in:
mayrholu 2021-05-12 10:45:52 +02:00 committed by GitHub
parent 0cc25359c2
commit a4ea2c1c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ namespace netgen
x1[i] = (1 + val * (i+1)) * pmin(i) - val * (i+1) * pmax(i); x1[i] = (1 + val * (i+1)) * pmin(i) - val * (i+1) * pmax(i);
x2[i] = 1.1 * pmax(i) - 0.1 * pmin(i); x2[i] = 1.1 * pmax(i) - 0.1 * pmin(i);
} }
for (int i = dimension; i < 3; i++) for (int i = 0; i < dimension; i++)
x1[i] = x2[i] = 0; x1[i] = x2[i] = 0;
hmax = x2[0] - x1[0]; hmax = x2[0] - x1[0];