Skip to content
Snippets Groups Projects
Commit e89616d9 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix bug #82

parent 20c49b11
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ void AddToTemporaryBoundingBox(double x, double y, double z)
SQU(temp_bb.max().y() - temp_bb.min().y()) +
SQU(temp_bb.max().z() - temp_bb.min().z()));
if(CTX::instance()->lc == 0) CTX::instance()->lc = 1.;
// to get correct cg during interctive point creation
// to get correct cg during interactive point creation
for(int i = 0; i < 3; i++) CTX::instance()->cg[i] = temp_bb.center()[i];
}
......
......@@ -218,7 +218,7 @@ int MZone<DIM>::zoneData()
++eVecIt) {
if(eVecIt->index == 0) {
// The element index
eVecIt->index == cElem++;
eVecIt->index = cElem++;
// The type of element
const int iElemType = eVecIt->element->getTypeForMSH() - 1;
// Load connectivity for this element type
......
......@@ -996,7 +996,7 @@ int computeDistanceRatio(const double &y, const double &yp, const double &x,
}else{
if (x==xp){
b=-x;
a==0.0;
a=0.0;
}else{
b=(xp*y-x*yp)/(yp-y);
if (yp==0.0){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment