From 8d85883f3d2b7b568e183a524714de72231cd62e Mon Sep 17 00:00:00 2001 From: Gauthier Becker <gauthierbecker@gmail.com> Date: Tue, 5 Jul 2011 16:24:58 +0000 Subject: [PATCH] J2linear OK ?? mpi and QS --- Geo/STensor3.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Geo/STensor3.h b/Geo/STensor3.h index 5af500c52b..3562f71e90 100644 --- a/Geo/STensor3.h +++ b/Geo/STensor3.h @@ -227,6 +227,14 @@ class STensor3 { { return _val[getIndex(i, j)]; } + inline double operator[](int i) const + { + return _val[i]; + } + inline double &operator[](int i) + { + return _val[i]; + } STensor3 invert () const { fullMatrix<double> m(3, 3); -- GitLab