|
35 | 35 | /*! \class CGradientSmoothingSolver |
36 | 36 | * \brief Main class for defining a gradient smoothing. |
37 | 37 | * \author T. Dick. |
38 | | - * \date March 25, 2019. |
39 | 38 | */ |
40 | 39 | class CGradientSmoothingSolver final : public CFEASolverBase { |
41 | 40 | public: |
42 | 41 |
|
43 | 42 | /** Introduction of a new alias for the data type to allow compilation with forward mode. |
44 | 43 | * |
45 | 44 | * This is done for compatibility to the treatment of Jacobian and System in CSolver.hpp. |
46 | | - * Note that the computations done here are always 'passive', i.e. not intended to be differentiated. We only need to |
47 | | - * define functions depending on this once. |
| 45 | + * Note that the computations done here are always 'passive', i.e. not intended to be differentiated. |
| 46 | + * We only need to define functions depending on this once. |
48 | 47 | */ |
49 | 48 | #ifndef CODI_FORWARD_TYPE |
50 | 49 | typedef su2mixedfloat su2matvecscalar; |
51 | 50 | #else |
52 | 51 | typedef su2double su2matvecscalar; |
53 | 52 | #endif |
54 | | - using MatrixType = C2DContainer<unsigned long, su2double, StorageType::RowMajor, 64, DynamicSize, DynamicSize>; |
55 | 53 |
|
56 | 54 | private: |
57 | 55 | unsigned int curDim; /*!< \brief If we separate dimensions this tells us in what dimension we currently are. */ |
@@ -112,6 +110,7 @@ class CGradientSmoothingSolver final : public CFEASolverBase { |
112 | 110 | CConfig *config, |
113 | 111 | su2double** Gradient) override; |
114 | 112 |
|
| 113 | + private: |
115 | 114 |
|
116 | 115 | /*! |
117 | 116 | * \brief Assemble the stiffness matrix |
@@ -179,11 +178,6 @@ class CGradientSmoothingSolver final : public CFEASolverBase { |
179 | 178 | CConfig *config, |
180 | 179 | su2double** Gradient) override; |
181 | 180 |
|
182 | | - /*! |
183 | | - * \brief Return current parameter gradient. |
184 | | - */ |
185 | | - inline const vector<su2double>& GetDeltaP() const { return deltaP; } |
186 | | - |
187 | 181 | /*! |
188 | 182 | * \brief write the DV gradient into a file |
189 | 183 | */ |
@@ -231,22 +225,11 @@ class CGradientSmoothingSolver final : public CFEASolverBase { |
231 | 225 | */ |
232 | 226 | void ReadSensFromGeometry(const CGeometry *geometry) override; |
233 | 227 |
|
234 | | - private: |
235 | 228 | /*! |
236 | 229 | * \brief Write the solution of the linear solver into the sensitivities of the nodes |
237 | 230 | */ |
238 | 231 | void WriteSensitivity(CGeometry* geometry, const CConfig* config); |
239 | 232 |
|
240 | | - /*! |
241 | | - * \brief Copy sensitivities from a vector into the geometry |
242 | | - */ |
243 | | - void WriteVectorToGeometry(CGeometry* geometry, const CSysVector<su2matvecscalar>& vector) const; |
244 | | - |
245 | | - /*! |
246 | | - * \brief Copy sensitivities from the geometry into a vector |
247 | | - */ |
248 | | - void ReadVectorToGeometry(const CGeometry* geometry, CSysVector<su2matvecscalar>& vector); |
249 | | - |
250 | 233 | /*! |
251 | 234 | * \brief Get the value of the reference coordinate to set on the element structure. |
252 | 235 | * \param[in] geometry - Geometrical definition of the problem. |
@@ -301,7 +284,7 @@ class CGradientSmoothingSolver final : public CFEASolverBase { |
301 | 284 | /*! |
302 | 285 | * \brief Return the current working dimension. |
303 | 286 | */ |
304 | | - inline const unsigned int& GetCurrentDim() const { |
| 287 | + inline unsigned int GetCurrentDim() const { |
305 | 288 | return curDim; |
306 | 289 | } |
307 | 290 |
|
|
0 commit comments