00001 #ifndef PARTITIONEDRECTANGLEMESHER_H
00002 #define PARTITIONEDRECTANGLEMESHER_H
00003
00004 #include "SundanceDefs.h"
00005 #include "MeshGenerator.h"
00006 #include "TSFSmartPtr.h"
00007
00008
00009 namespace Sundance
00010 {
00011
00012 using namespace TSF;
00013 using std::string;
00014
00015 using std::ostream;
00016
00017
00018
00019
00020
00021
00022 class PartitionedRectangleMesher : public MeshGeneratorBase
00023 {
00024 public:
00025
00026
00027 PartitionedRectangleMesher(double ax, double bx, int nx, int npx,
00028 double ay, double by, int ny, int npy)
00029 : ax_(ax), bx_(bx), nx_(nx), npx_(npx),
00030 ay_(ay), by_(by), ny_(ny), npy_(npy) {;}
00031
00032 virtual ~PartitionedRectangleMesher() {;}
00033
00034
00035 virtual Mesh getMesh() const ;
00036
00037 protected:
00038
00039 double ax_;
00040 double bx_;
00041 int nx_;
00042 int npx_;
00043
00044 double ay_;
00045 double by_;
00046 int ny_;
00047 int npy_;
00048 };
00049
00050 }
00051
00052 #endif