fixed: set intended variable, not the local one

This commit is contained in:
Arne Morten Kvarving
2021-09-30 09:34:09 +02:00
parent 703e3e668e
commit 2927ed8fcf
2 changed files with 2 additions and 2 deletions

View File

@@ -3242,7 +3242,7 @@ bool ASMs2D::addRigidCpl (int lindx, int ldim, int basis,
threadGroups.stripDir = useDir;
else if (threadGroups.stripDir != useDir)
{
useDir = ThreadGroups::NONE;
threadGroups.stripDir = ThreadGroups::NONE;
IFEM::cout <<" ** ASMs2D::addRigidCpl: Conflicting strip directions."
<< std::endl;
}

View File

@@ -3759,7 +3759,7 @@ bool ASMs3D::addRigidCpl (int lindx, int ldim, int basis,
threadGroupsVol.stripDir = useDir;
else if (threadGroupsVol.stripDir != useDir)
{
useDir = ThreadGroups::NONE;
threadGroupsVol.stripDir = ThreadGroups::NONE;
IFEM::cout <<" ** ASMs3D::addRigidCpl: Conflicting strip directions."
<< std::endl;
}