knlmat3d.hpp

Go to the documentation of this file.
00001 /* Kernel Independent Fast Multipole Method
00002    Copyright (C) 2004 Lexing Ying, New York University
00003 
00004 This program is free software; you can redistribute it and/or modify
00005 it under the terms of the GNU General Public License as published by
00006 the Free Software Foundation; either version 2, or (at your option)
00007 any later version.
00008 
00009 This program is distributed in the hope that it will be useful, but WITHOUT
00010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00012 for more details.
00013 
00014 You should have received a copy of the GNU General Public License
00015 along with this program; see the file COPYING.  If not, write to the Free
00016 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00017 02111-1307, USA.  */
00018 #ifndef _KNLMAT3D_HPP_
00019 #define _KNLMAT3D_HPP_
00020 
00021 #include "common/vec3t.hpp"
00022 #include "comobject.hpp"
00023 #include "kernel3d.hpp"
00024 
00025 //----------------------------------------------------------------------------------
00026 class KnlMat3d: public ComObject
00027 {
00028 protected:
00029   //---PARAMS (REQ)
00031   DblNumMat* _srcPos;
00033   DblNumMat* _srcNor;
00035   DblNumMat* _trgPos;
00037   Kernel3d _knl;
00038 public:
00039   KnlMat3d(const string& p):  ComObject(p), _srcPos(NULL), _srcNor(NULL), _trgPos(NULL) {;}
00040   virtual ~KnlMat3d() { }
00041   //MEMBER ACESS
00043   DblNumMat*& srcPos() { return _srcPos; }
00045   DblNumMat*& srcNor() { return _srcNor; }
00047   DblNumMat*& trgPos() { return _trgPos; }
00049   Kernel3d& knl()    { return _knl; }
00050   //SETUP and USE
00052   virtual int setup(map<string, string>&)=0;
00054   virtual int evaluate(const DblNumVec& srcDen, DblNumVec& trgVal) = 0;
00055   //OTHER ACCESS
00057   int dim() { return 3; }
00059   int srcDOF() { return _knl.srcDOF(); }
00061   int trgDOF() { return _knl.trgDOF(); }
00062 };
00063 
00064 #endif

Generated on Sun Dec 4 19:24:39 2005 for fmm3d by  doxygen 1.4.5