123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- /* This file is part of Lemma, a geophysical modelling and inversion API
- */
-
- /* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
- /**
- @file
- @author Trevor Irons
- @date 02/08/2011
- @version $Id: costransintegrationkernel.h 87 2013-09-05 22:44:05Z tirons $
- **/
-
- #ifndef COSTRANSINTEGRATIONKERNEL_INC
- #define COSTRANSINTEGRATIONKERNEL_INC
-
- #include "integrationkernel.h"
-
- namespace Lemma {
-
- // ===================================================================
- // Class: CosTransIntegrationKernel
- /**
- @class
- \brief Integration kernel for testing cosine transform.
- \details Evaluates cosine at the argument, using lagged convolution.
- all of these kernels have exact solutions.
- */
- // ===================================================================
- class CosTransIntegrationKernel : public IntegrationKernel<Real> {
-
- public:
-
- // ==================== LIFECYCLE =======================
-
- /** Returns a pointer to a new object of type CosTransIntegrationKernel.
- * It allocates all necessary memory.
- */
- static CosTransIntegrationKernel* New();
-
- /** Deletes this object. Delete also disconnects any
- * attachments to this object.
- */
- void Delete();
-
- // ==================== OPERATORS =======================
-
- Real Argument(const Real&x, const int& iRelated);
-
- int GetNumRel();
-
- /// Sets the value 'A' used in test cases
- void SetA(const Real& A);
-
- /** Sets the integral to evaluate (1, 2, 3)
- */
- void SetIntegral(const int& i);
-
- /** Returns the analytical answer at A and B */
- Real GetAnalytical(const Real& B);
- // ==================== OPERATIONS =======================
-
- // ==================== ACCESS =======================
-
- // ==================== INQUIRY =======================
-
- protected:
-
- // ==================== LIFECYCLE =======================
-
- /** Deletes this object. Delete also disconnects any
- * attachments to this object.
- */
- void Release();
-
- /// Default protected constructor.
- CosTransIntegrationKernel (const std::string& name);
-
- /// Default protected constructor.
- ~CosTransIntegrationKernel ();
-
- // ==================== DATA MEMBERS =========================
-
- /** Value used in test cases */
- Real A;
-
- /** Test integral to evaluate */
- int Integral;
-
- private:
-
- }; // ----- end of class CosTransIntegrationKernel -----
-
-
- } // ----- end of Lemma name -----
-
- #endif // ----- #ifndef COSTRANSINTEGRATIONKERNEL_INC -----
-
- /* vim: set tabstop=4 expandtab: */
- /* vim: set filetype=cpp: */
|