speckley/src/DefaultAssembler2D.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2020 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
* Development 2012-2013 by School of Earth Sciences
* Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
* Development from 2019 by School of Earth and Environmental Sciences
**
*****************************************************************************/
#ifndef __SPECKLEY_DEFAULTASSEMBLER2D_H__
#define __SPECKLEY_DEFAULTASSEMBLER2D_H__
#include <speckley/Rectangle.h>
namespace speckley {
class DefaultAssembler2D : public AbstractAssembler
{
public:
DefaultAssembler2D(escript::const_Domain_ptr dom, const double *dx,
const dim_t *NE, const dim_t *NN)
: AbstractAssembler(),
m_dx(dx),
m_NE(NE),
m_NN(NN)
{
domain = REFCOUNTNS::static_pointer_cast<const Rectangle>(dom);
}
~DefaultAssembler2D() {}
/* The default SpeckleyDomain assemblers, with original signatures */
virtual void assemblePDESingle(escript::AbstractSystemMatrix* mat, escript::Data& rhs,
const escript::Data& A, const escript::Data& B,
const escript::Data& C, const escript::Data& D,
const escript::Data& X, const escript::Data& Y) const;
virtual void assembleComplexPDESingle(escript::AbstractSystemMatrix* mat, escript::Data& rhs,
const escript::Data& A, const escript::Data& B,
const escript::Data& C, const escript::Data& D,
const escript::Data& X, const escript::Data& Y) const;
virtual void assemblePDEBoundarySingle(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
virtual void assembleComplexPDEBoundarySingle(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
virtual void assemblePDESingleReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& A, const escript::Data& B,
const escript::Data& C, const escript::Data& D,
const escript::Data& X, const escript::Data& Y) const;
virtual void assembleComplexPDESingleReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& A, const escript::Data& B,
const escript::Data& C, const escript::Data& D,
const escript::Data& X, const escript::Data& Y) const;
virtual void assemblePDEBoundarySingleReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
virtual void assembleComplexPDEBoundarySingleReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
virtual void assemblePDESystem(escript::AbstractSystemMatrix* mat, escript::Data& rhs,
const escript::Data& A, const escript::Data& B,
const escript::Data& C, const escript::Data& D,
const escript::Data& X, const escript::Data& Y) const;
virtual void assembleComplexPDESystem(escript::AbstractSystemMatrix* mat, escript::Data& rhs,
const escript::Data& A, const escript::Data& B,
const escript::Data& C, const escript::Data& D,
const escript::Data& X, const escript::Data& Y) const;
virtual void assemblePDEBoundarySystem(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
virtual void assembleComplexPDEBoundarySystem(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
virtual void assemblePDESystemReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& A, const escript::Data& B,
const escript::Data& C, const escript::Data& D,
const escript::Data& X, const escript::Data& Y) const;
virtual void assembleComplexPDESystemReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& A, const escript::Data& B,
const escript::Data& C, const escript::Data& D,
const escript::Data& X, const escript::Data& Y) const;
virtual void assemblePDEBoundarySystemReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
virtual void assembleComplexPDEBoundarySystemReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
/* The new interface for assemblers */
virtual void assemblePDESingle(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDEBoundarySingle(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDESingleReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDEBoundarySingleReduced(
escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDESystem(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDEBoundarySystem(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDESystemReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDEBoundarySystemReduced(
escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void collateFunctionSpaceTypes(std::vector<int>& fsTypes,
const DataMap& coefs) const;
protected:
POINTER_WRAPPER_CLASS(const Rectangle) domain;
const double *m_dx;
const dim_t *m_NE;
const dim_t *m_NN;
};
} // namespace speckley
#endif // __SPECKLEY_DEFAULTASSEMBLER2D_H__
escript::AbstractSystemMatrix
Base class for escript system matrices.
Definition: AbstractSystemMatrix.h:44
escript::Data
Data represents a collection of datapoints.
Definition: Data.h:64
speckley::AbstractAssembler
Definition: speckley/src/AbstractAssembler.h:35
speckley::DefaultAssembler2D
Definition: speckley/src/DefaultAssembler2D.h:26
speckley::DefaultAssembler2D::assemblePDESystemReduced
virtual void assemblePDESystemReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const
Definition: speckley/src/DefaultAssembler2D.cpp:550
speckley::DefaultAssembler2D::m_NN
const dim_t * m_NN
Definition: speckley/src/DefaultAssembler2D.h:158
speckley::DefaultAssembler2D::m_NE
const dim_t * m_NE
Definition: speckley/src/DefaultAssembler2D.h:157
speckley::DefaultAssembler2D::assembleComplexPDEBoundarySingle
virtual void assembleComplexPDEBoundarySingle(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: speckley/src/DefaultAssembler2D.cpp:574
speckley::DefaultAssembler2D::~DefaultAssembler2D
~DefaultAssembler2D()
Definition: speckley/src/DefaultAssembler2D.h:38
speckley::DefaultAssembler2D::assemblePDEBoundarySingle
virtual void assemblePDEBoundarySingle(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: speckley/src/DefaultAssembler2D.cpp:568
speckley::DefaultAssembler2D::assemblePDEBoundarySystem
virtual void assemblePDEBoundarySystem(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: speckley/src/DefaultAssembler2D.cpp:594
speckley::DefaultAssembler2D::assembleComplexPDESingleReduced
virtual void assembleComplexPDESingleReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const
Definition: speckley/src/DefaultAssembler2D.cpp:851
speckley::DefaultAssembler2D::assemblePDESingle
virtual void assemblePDESingle(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const
Definition: speckley/src/DefaultAssembler2D.cpp:621
speckley::DefaultAssembler2D::POINTER_WRAPPER_CLASS
POINTER_WRAPPER_CLASS(const Rectangle) domain
speckley::DefaultAssembler2D::assembleComplexPDEBoundarySystem
virtual void assembleComplexPDEBoundarySystem(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: speckley/src/DefaultAssembler2D.cpp:600
speckley::DefaultAssembler2D::assemblePDEBoundarySystemReduced
virtual void assemblePDEBoundarySystemReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: speckley/src/DefaultAssembler2D.cpp:606
speckley::DefaultAssembler2D::assembleComplexPDESystemReduced
virtual void assembleComplexPDESystemReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const
Definition: speckley/src/DefaultAssembler2D.cpp:559
speckley::DefaultAssembler2D::assembleComplexPDEBoundarySingleReduced
virtual void assembleComplexPDEBoundarySingleReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: speckley/src/DefaultAssembler2D.cpp:587
speckley::DefaultAssembler2D::assemblePDESingleReduced
virtual void assemblePDESingleReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const
Definition: speckley/src/DefaultAssembler2D.cpp:843
speckley::DefaultAssembler2D::m_dx
const double * m_dx
Definition: speckley/src/DefaultAssembler2D.h:156
speckley::DefaultAssembler2D::collateFunctionSpaceTypes
virtual void collateFunctionSpaceTypes(std::vector< int > &fsTypes, const DataMap &coefs) const
Definition: speckley/src/DefaultAssembler2D.cpp:116
speckley::DefaultAssembler2D::assembleComplexPDEBoundarySystemReduced
virtual void assembleComplexPDEBoundarySystemReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: speckley/src/DefaultAssembler2D.cpp:613
speckley::DefaultAssembler2D::assembleComplexPDESingle
virtual void assembleComplexPDESingle(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const
Definition: speckley/src/DefaultAssembler2D.cpp:727
speckley::DefaultAssembler2D::assemblePDESystem
virtual void assemblePDESystem(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const
Definition: speckley/src/DefaultAssembler2D.cpp:271
speckley::DefaultAssembler2D::assemblePDEBoundarySingleReduced
virtual void assemblePDEBoundarySingleReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: speckley/src/DefaultAssembler2D.cpp:580
speckley::DefaultAssembler2D::assembleComplexPDESystem
virtual void assembleComplexPDESystem(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const
Definition: speckley/src/DefaultAssembler2D.cpp:407
speckley::DefaultAssembler2D::DefaultAssembler2D
DefaultAssembler2D(escript::const_Domain_ptr dom, const double *dx, const dim_t *NE, const dim_t *NN)
Definition: speckley/src/DefaultAssembler2D.h:28
speckley::Rectangle
Rectangle is the 2-dimensional implementation of a SpeckleyDomain.
Definition: speckley/src/Rectangle.h:34
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:66
escript::const_Domain_ptr
boost::shared_ptr< const AbstractDomain > const_Domain_ptr
Definition: AbstractDomain.h:44
speckley
Definition: AbstractAssembler.cpp:19
speckley::DataMap
std::map< std::string, escript::Data > DataMap
Definition: speckley/src/domainhelpers.h:25