mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +05:00
little polish
This commit is contained in:
parent
ca57759604
commit
5ada92bcdb
@ -210,13 +210,9 @@ namespace netgen
|
|||||||
A_ = A_ * R_;
|
A_ = A_ * R_;
|
||||||
Ainv_ = Trans(R_) * Ainv_;
|
Ainv_ = Trans(R_) * Ainv_;
|
||||||
|
|
||||||
for (int i = 0; i < 2; i++)
|
Amat = A_;
|
||||||
for (int j = 0; j < 2; j++)
|
Amatinv = Ainv_;
|
||||||
{
|
|
||||||
Amat(i,j) = A_(i,j);
|
|
||||||
Amatinv(i,j) = Ainv_(i,j);
|
|
||||||
}
|
|
||||||
|
|
||||||
// temp = Amatinv * (psp2-psp1);
|
// temp = Amatinv * (psp2-psp1);
|
||||||
|
|
||||||
|
|
||||||
|
@ -2725,10 +2725,11 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
// NgProfiler::RegionTimer reg2 (timer2);
|
// NgProfiler::RegionTimer reg2 (timer2);
|
||||||
|
|
||||||
int nse = mesh->GetNSE();
|
// int nse = mesh->GetNSE();
|
||||||
for (int i = 0; i < nse; i++)
|
// for (int i = 0; i < nse; i++)
|
||||||
|
for (SurfaceElementIndex i : mesh->SurfaceElements().Range())
|
||||||
{
|
{
|
||||||
ELEMENT_TYPE type = mesh->SurfaceElement(i+1).GetType();
|
ELEMENT_TYPE type = (*mesh)[i].GetType();
|
||||||
double val;
|
double val;
|
||||||
bool considerElem = (type == QUAD)
|
bool considerElem = (type == QUAD)
|
||||||
? GetSurfValue (sol, i, -1, 0.5, 0.5, comp, val)
|
? GetSurfValue (sol, i, -1, 0.5, 0.5, comp, val)
|
||||||
|
Loading…
Reference in New Issue
Block a user