diff --git a/Common/OpenFile.cpp b/Common/OpenFile.cpp index f39bc99d97ffa34eb7028224e3d131dce79281b5..3c9069430a98427466bef8aea1601f45d2df491e 100644 --- a/Common/OpenFile.cpp +++ b/Common/OpenFile.cpp @@ -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]; } diff --git a/Geo/MZone.cpp b/Geo/MZone.cpp index 0e8be20f59ec73848dbfefc0073ca4fd6bef38ed..39d1800f0d677c37eb50653a868da46aaf6d7abe 100644 --- a/Geo/MZone.cpp +++ b/Geo/MZone.cpp @@ -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 diff --git a/Numeric/Numeric.cpp b/Numeric/Numeric.cpp index b83bdf6ed39ddf7b93f82fbd6578fc0bde02a5ad..b5505fef003092a955f95fcf986988e7d7631edd 100644 --- a/Numeric/Numeric.cpp +++ b/Numeric/Numeric.cpp @@ -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){