From d9b77e03a0c26f1f33c005124869eeb1b3b7836c Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Fri, 11 May 2018 10:42:47 +0200 Subject: [PATCH] Minor code simplification --- dune/gfe/rodlocalstiffness.hh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/dune/gfe/rodlocalstiffness.hh b/dune/gfe/rodlocalstiffness.hh index cc43e0e0..a7951eb1 100644 --- a/dune/gfe/rodlocalstiffness.hh +++ b/dune/gfe/rodlocalstiffness.hh @@ -63,13 +63,10 @@ public: //! Constructor RodLocalStiffness (const GridView& gridView, const std::array<double,3>& K, const std::array<double,3>& A) - : gridView_(gridView) - { - for (int i=0; i<3; i++) { - K_[i] = K[i]; - A_[i] = A[i]; - } - } + : K_(K), + A_(A), + gridView_(gridView) + {} /** \brief Constructor setting shape constants and material parameters \param A The rod section area -- GitLab