From 447efc38bd5c5c2b7d9b41f5cd239397376a3a80 Mon Sep 17 00:00:00 2001 From: cmoha Date: Tue, 17 May 2016 10:24:02 +0200 Subject: [PATCH 1/2] unconfirmed bug in FloatArray::normalize() ! unconfirmed bug when comparing norm value in FloatArray::normalize(), if it's less than tolerance 1e-8 --- src/oofemlib/floatarray.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oofemlib/floatarray.C b/src/oofemlib/floatarray.C index 5a51ffb8b..dbe12c244 100644 --- a/src/oofemlib/floatarray.C +++ b/src/oofemlib/floatarray.C @@ -828,7 +828,7 @@ void FloatArray :: times(double factor) double FloatArray :: normalize() { double norm = this->computeNorm(); - if ( norm < 1.e-80 ) { + if ( norm < 1.e-8 ) { OOFEM_ERROR("cannot norm receiver, norm is too small"); } From 0cb2ffda70c2654a386d0a63328f77fc9e8f44a7 Mon Sep 17 00:00:00 2001 From: cmoha Date: Wed, 18 May 2016 23:17:34 +0200 Subject: [PATCH 2/2] Update beam3d.h --- src/sm/Elements/Beams/beam3d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sm/Elements/Beams/beam3d.h b/src/sm/Elements/Beams/beam3d.h index 0928c200e..abfb4900b 100644 --- a/src/sm/Elements/Beams/beam3d.h +++ b/src/sm/Elements/Beams/beam3d.h @@ -53,7 +53,7 @@ namespace oofem { class FEI3dLineLin; /** - * This class implements a 2-dimensional beam element + * This class implements a 3-dimensional beam element * with cubic lateral displacement interpolation (rotations are quadratic) * and longitudial displacements are linear. * This is an exact displacement approximation for beam with no