MeshKit  1.0
SmartLaplaceWrapper.hpp
Go to the documentation of this file.
00001 /* ***************************************************************** 
00002     MESQUITE -- The Mesh Quality Improvement Toolkit
00003 
00004     Copyright 2010 Sandia National Laboratories.  Developed at the
00005     University of Wisconsin--Madison under SNL contract number
00006     624796.  The U.S. Government and the University of Wisconsin
00007     retain certain rights to 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     (2011) kraftche@cae.wisc.edu    
00024 
00025   ***************************************************************** */
00026 
00027 
00033 #ifndef MSQ_SMARTLAPLACE_WRAPPER_HPP
00034 #define MSQ_SMARTLAPLACE_WRAPPER_HPP
00035 
00036 #include "Wrapper.hpp"
00037 
00038 namespace MESQUITE_NS {
00039 
00040 class SmartLaplaceWrapper : public Wrapper
00041 {
00042 public:
00043   
00044   MESQUITE_EXPORT
00045   SmartLaplaceWrapper();
00046 
00051   void set_cpu_time_limit( double seconds )
00052     { maxTime = seconds; }
00053   double get_cpu_time_limit() const 
00054     { return maxTime; }
00055 
00062   void set_vertex_movement_limit_factor( double f )
00063     { movementFactor = f; }
00064   double get_vertex_movement_limit_factor() const
00065     { return movementFactor; }
00066 
00071   void set_iteration_limit( int limit )
00072     { iterationLimit = limit; }
00073   int get_iteration_limit() const
00074     { return iterationLimit; }
00075 
00077   inline void enable_culling( bool yesno )
00078     { doCulling = yesno; }
00079   inline bool is_culling_enabled() const
00080     { return doCulling; }
00081   
00082 
00083   MESQUITE_EXPORT
00084   ~SmartLaplaceWrapper();
00085 
00086 protected:
00087 
00088   MESQUITE_EXPORT
00089   void run_wrapper( Mesh* mesh,
00090                     ParallelMesh* pmesh,
00091                     MeshDomain* geom,
00092                     Settings* settings,
00093                     QualityAssessor* qa,
00094                     MsqError& err );
00095   
00096 private:
00097   
00098   double maxTime, movementFactor;
00099   int iterationLimit;
00100   bool doCulling;
00101 };
00102 
00103 
00104 } // namespace MESQUITE_NS
00105 
00106 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines