MOAB: Mesh Oriented datABase  (version 5.4.1)
ShapeImprovementWrapper.hpp
Go to the documentation of this file.
00001 /* *****************************************************************
00002     MESQUITE -- The Mesh Quality Improvement Toolkit
00003 
00004     Copyright 2004 Sandia Corporation and Argonne National
00005     Laboratory.  Under the terms of Contract DE-AC04-94AL85000
00006     with Sandia Corporation, the U.S. Government retains certain
00007     rights in this software.
00008 
00009     This library is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU Lesser General Public
00011     License as published by the Free Software Foundation; either
00012     version 2.1 of the License, or (at your option) any later version.
00013 
00014     This library is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017     Lesser General Public License for more details.
00018 
00019     You should have received a copy of the GNU Lesser General Public License
00020     (lgpl.txt) along with this library; if not, write to the Free Software
00021     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00023     [email protected], [email protected], [email protected],
00024     [email protected], [email protected], [email protected]
00025 
00026   ***************************************************************** */
00027 // -*- Mode : c++; tab-width: 3; c-tab-always-indent: t; indent-tabs-mode: nil; c-basic-offset: 3
00028 // -*-
00029 //
00030 //   SUMMARY:
00031 //     USAGE:
00032 //
00033 //    AUTHOR: Thomas Leurent <[email protected]>
00034 //       ORG: Argonne National Laboratory
00035 //    E-MAIL: [email protected]
00036 //
00037 // ORIG-DATE: 14-Nov-02 at 16:51:36
00038 //  LAST-MOD: 22-May-03 at 09:04:07 by Michael Brewer
00039 
00040 /*! \file ShapeImprovementWrapper.hpp
00041   ShapeImprovementWrapper header file.
00042 
00043 */
00044 // DESCRIP-END.
00045 //
00046 
00047 #ifndef ShapeImprovementWrapper_hpp
00048 #define ShapeImprovementWrapper_hpp
00049 
00050 #include "Mesquite.hpp"
00051 #include "Wrapper.hpp"
00052 
00053 namespace MBMesquite
00054 {
00055 /*! \class ShapeImprovementWrapper
00056      \brief Wrapper which performs a Feasible Newton solve using
00057      an \f$\ell_2^2 \f$ objective function template with inverse mean
00058      ratio.
00059 
00060    */
00061 class ShapeImprovementWrapper : public Wrapper
00062 {
00063 
00064   public:
00065     // Constructor sets the instructions in the queue.
00066     MESQUITE_EXPORT
00067     ShapeImprovementWrapper( MsqError& err,
00068                              double cpu_time         = 0.0,
00069                              double grad_norm        = 1.e-6,
00070                              int parallel_iterations = 10 );
00071     // Constructor sets the instructions in the queue.
00072     MESQUITE_EXPORT
00073     ShapeImprovementWrapper( double cpu_time = 0.0, double grad_norm = 1.e-6, int parallel_iterations = 10 );
00074 
00075   protected:
00076     MESQUITE_EXPORT
00077     void run_wrapper( MeshDomainAssoc* mesh_and_domain,
00078                       ParallelMesh* pmesh,
00079                       Settings* settings,
00080                       QualityAssessor* qa,
00081                       MsqError& err );
00082 
00083   private:
00084     double maxTime, gradNorm;
00085     // constants
00086     const double untBeta;
00087     const double successiveEps;
00088     int parallelIterations;
00089 };
00090 
00091 }  // namespace MBMesquite
00092 
00093 #endif  // ShapeImprovementWrapper_hpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines