Branch data Line data Source code
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 : : [email protected], [email protected], [email protected],
24 : : [email protected], [email protected], [email protected]
25 : :
26 : : ***************************************************************** */
27 : : // -*- Mode : c++; tab-width: 3; c-tab-always-indent: t; indent-tabs-mode: nil; c-basic-offset: 3
28 : : // -*-
29 : : //
30 : : // SUMMARY:
31 : : // USAGE:
32 : : //
33 : : // AUTHOR: Thomas Leurent <[email protected]>
34 : : // ORG: Argonne National Laboratory
35 : : // E-MAIL: [email protected]
36 : : //
37 : : // ORIG-DATE: 14-Nov-02 at 16:51:36
38 : : // LAST-MOD: 22-May-03 at 09:04:07 by Michael Brewer
39 : :
40 : : /*! \file ShapeImprovementWrapper.hpp
41 : : ShapeImprovementWrapper header file.
42 : :
43 : : */
44 : : // DESCRIP-END.
45 : : //
46 : :
47 : : #ifndef ShapeImprovementWrapper_hpp
48 : : #define ShapeImprovementWrapper_hpp
49 : :
50 : : #include "Mesquite.hpp"
51 : : #include "Wrapper.hpp"
52 : :
53 : : namespace MBMesquite
54 : : {
55 : : /*! \class ShapeImprovementWrapper
56 : : \brief Wrapper which performs a Feasible Newton solve using
57 : : an \f$\ell_2^2 \f$ objective function template with inverse mean
58 : : ratio.
59 : :
60 : : */
61 [ - + ]: 4 : class ShapeImprovementWrapper : public Wrapper
62 : : {
63 : :
64 : : public:
65 : : // Constructor sets the instructions in the queue.
66 : : MESQUITE_EXPORT
67 : : ShapeImprovementWrapper( MsqError& err, double cpu_time = 0.0, double grad_norm = 1.e-6,
68 : : int parallel_iterations = 10 );
69 : : // Constructor sets the instructions in the queue.
70 : : MESQUITE_EXPORT
71 : : ShapeImprovementWrapper( double cpu_time = 0.0, double grad_norm = 1.e-6, int parallel_iterations = 10 );
72 : :
73 : : protected:
74 : : MESQUITE_EXPORT
75 : : void run_wrapper( MeshDomainAssoc* mesh_and_domain, ParallelMesh* pmesh, Settings* settings, QualityAssessor* qa,
76 : : MsqError& err );
77 : :
78 : : private:
79 : : double maxTime, gradNorm;
80 : : // constants
81 : : const double untBeta;
82 : : const double successiveEps;
83 : : int parallelIterations;
84 : : };
85 : :
86 : : } // namespace MBMesquite
87 : :
88 : : #endif // ShapeImprovementWrapper_hpp
|