Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
includeLinks/TargetMatrix.hpp
Go to the documentation of this file.
1 /* *****************************************************************
2  MESQUITE -- The Mesh Quality Improvement Toolkit
3 
4  Copyright 2004 Sandia Corporation and Argonne National
5  Laboratory. Under the terms of Contract DE-AC04-94AL85000
6  with Sandia Corporation, the U.S. Government retains certain
7  rights in this software.
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public License
20  (lgpl.txt) along with this library; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 
23  diachin2@llnl.gov, djmelan@sandia.gov, mbrewer@sandia.gov,
24  pknupp@sandia.gov, tleurent@mcs.anl.gov, tmunson@mcs.anl.gov
25 
26  ***************************************************************** */
27 
37 #ifndef TargetMatrix_hpp
38 #define TargetMatrix_hpp
39 
40 #include "Mesquite.hpp"
41 #include "Matrix3D.hpp"
42 
43 namespace Mesquite
44 {
45 
49  class TargetMatrix : public Matrix3D
50  {
51  public:
52 
54  {
55  cK = 1.;
56  }
57 
59  {
60  cK = 1.;
61  }
62 
64  {
65  if (&A != this)
67  cK = 1.;
68  return *this;
69  }
70 
72  {
73  if (&A != this)
75  cK = A.cK;
76  return *this;
77  }
78 
79  double get_cK() const { return cK; }
80 
81  protected:
82 
83  private:
84  double cK;
85 
86  };
87 
88 } //namespace
89 
90 
91 #endif // TargetMatrix_hpp
TargetMatrix & operator=(const TargetMatrix &A)
rational * A
Definition: vinci_lass.c:67
3*3 Matric class, row-oriented, 0-based [i][j] indexing.
Matrix3D & operator=(const Matrix3D &A)
Class containing the target corner matrices for the context based smoothing.
TargetMatrix & operator=(const Matrix3D &A)