MOAB: Mesh Oriented datABase  (version 5.2.1)
QualityImprover.cpp
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     diachin2@llnl.gov, djmelan@sandia.gov, mbrewer@sandia.gov,
00024     pknupp@sandia.gov, tleurent@mcs.anl.gov, tmunson@mcs.anl.gov
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 <tleurent@mcs.anl.gov>
00034 //       ORG: Argonne National Laboratory
00035 //    E-MAIL: tleurent@mcs.anl.gov
00036 //
00037 // ORIG-DATE:  7-Nov-02 at 16:22:26
00038 //  LAST-MOD:  8-Nov-02 at 10:27:00 by Thomas Leurent
00039 //
00040 // DESCRIPTION:
00041 // ============
00042 /*! \file QualityImprover.cpp
00043 
00044 Implements a couple of default virtual functions of the virtual class
00045 
00046  \author Thomas Leurent
00047  */
00048 // DESCRIP-END.
00049 //
00050 
00051 #include "QualityImprover.hpp"
00052 #include "MsqError.hpp"
00053 
00054 namespace MBMesquite
00055 {
00056 
00057 /*! The default constructor initialises a few member variables
00058     to default values.
00059     This can be reused by concrete class constructor. */
00060 QualityImprover::QualityImprover()
00061 {
00062     defaultOuterCriterion = new TerminationCriterion;
00063     defaultInnerCriterion = new TerminationCriterion;
00064     defaultOuterCriterion->add_iteration_limit( 1 );
00065     outerTerminationCriterion = defaultOuterCriterion;
00066     innerTerminationCriterion = defaultInnerCriterion;
00067 }
00068 
00069 QualityImprover::~QualityImprover()
00070 {
00071     delete defaultOuterCriterion;
00072     delete defaultInnerCriterion;
00073 }
00074 
00075 void QualityImprover::initialize_queue( MeshDomainAssoc* mesh_and_domain, const Settings* settings, MsqError& err )
00076 {
00077     innerTerminationCriterion->initialize_queue( mesh_and_domain, settings, err );MSQ_ERRRTN( err );
00078     outerTerminationCriterion->initialize_queue( mesh_and_domain, settings, err );MSQ_ERRRTN( err );
00079 }
00080 
00081 }  // namespace MBMesquite
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines