Skip to content

Commit c342697

Browse files
Merge branch 'develop' of github.com:febiosoftware/FEBioStudio into develop
2 parents 7cfb573 + 47ed1aa commit c342697

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

PostLib/evaluate.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,12 @@ void FEPostModel::EvalFaceField(int ntime, int nfield)
387387
FSFace& f = mesh->Face(i);
388388
state.m_FACE[i].m_val = 0.f;
389389
state.m_FACE[i].m_ntag = 0;
390+
f.Deactivate();
390391
if (f.IsEnabled())
391392
{
392393
if (EvaluateFace(i, ntime, nfield, data, val))
393394
{
395+
f.Activate();
394396
state.m_FACE[i].m_ntag = 1;
395397
state.m_FACE[i].m_val = val;
396398
for (int j=0; j<f.Nodes(); ++j)
@@ -625,6 +627,8 @@ void FEPostModel::EvalElemField(int ntime, int nfield)
625627
}
626628
}
627629

630+
f.Deactivate();
631+
628632
ELEMDATA& e = state.m_ELEM[eid];
629633
if (e.m_state & StatusFlags::ACTIVE)
630634
{
@@ -669,6 +673,8 @@ void FEPostModel::EvalElemField(int ntime, int nfield)
669673
d.m_val += vj;
670674
}
671675
d.m_val /= (float)nf;
676+
677+
f.Activate();
672678
}
673679
}
674680
}

0 commit comments

Comments
 (0)