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) [email protected]    
00024 
00025   ***************************************************************** */
00026 
00027 
00033 #ifndef MSQ_SMARTLAPLACE_WRAPPER_HPP
00034 #define MSQ_SMARTLAPLACE_WRAPPER_HPP
00035 
00036 #include "MKVersion.h"
00037 #include "moab/mesquite/Wrapper.hpp"
00038 
00039 namespace MESQUITE_NS {
00040 
00041 class SmartLaplaceWrapper : public Wrapper
00042 {
00043 public:
00044   
00045   MESQUITE_EXPORT
00046   SmartLaplaceWrapper();
00047 
00052   void set_cpu_time_limit( double seconds )
00053     { maxTime = seconds; }
00054   double get_cpu_time_limit() const 
00055     { return maxTime; }
00056 
00063   void set_vertex_movement_limit_factor( double f )
00064     { movementFactor = f; }
00065   double get_vertex_movement_limit_factor() const
00066     { return movementFactor; }
00067 
00072   void set_iteration_limit( int limit )
00073     { iterationLimit = limit; }
00074   int get_iteration_limit() const
00075     { return iterationLimit; }
00076 
00078   inline void enable_culling( bool yesno )
00079     { doCulling = yesno; }
00080   inline bool is_culling_enabled() const
00081     { return doCulling; }
00082   
00083 
00084   MESQUITE_EXPORT
00085   ~SmartLaplaceWrapper();
00086 
00087 protected:
00088 
00089   MESQUITE_EXPORT
00090   void run_wrapper( Mesh* mesh,
00091                     ParallelMesh* pmesh,
00092                     MeshDomain* geom,
00093                     Settings* settings,
00094                     QualityAssessor* qa,
00095                     MsqError& err );
00096   
00097 private:
00098   
00099   double maxTime, movementFactor;
00100   int iterationLimit;
00101   bool doCulling;
00102 };
00103 
00104 
00105 } // namespace MESQUITE_NS
00106 
00107 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines