Skip to content

Commit 8b4e1a9

Browse files
committed
Fixed: The dofs and master node arguments were swapped in some add2PC calls
1 parent 34665a9 commit 8b4e1a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ASM/ASMbase.C

+2-2
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ bool ASMbase::addPeriodicity (size_t master, size_t slave, int dir)
468468
return false;
469469
}
470470

471-
if (this->add2PC(masterNode,slaveNode,dir) ||
472-
this->add2PC(slaveNode,masterNode,dir))
471+
if (this->add2PC(masterNode,dir,slaveNode) ||
472+
this->add2PC(slaveNode,dir,masterNode))
473473
return true;
474474

475475
std::cerr <<" *** ASMbase::addPeriodicity: Failed to connect nodes "

src/ASM/ASMs2DC1.C

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void ASMs2DC1::constrainEdge (int dir, bool open, int dof, int code, char)
215215
this->prescribe(node-n1*dir/2,dof/100,0);
216216
else
217217
// The edge has a prescribed rotation, add an MPC for that
218-
this->add2PC(MLGN[node-n1*dir/2-1],MLGN[node-1],dof/100,code);
218+
this->add2PC(MLGN[node-n1*dir/2-1],dof/100,MLGN[node-1],code);
219219
}
220220
}
221221
break;

0 commit comments

Comments
 (0)