Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #include "ArbitraryQuadrature.h" 11 : 12 : // libMesh includes 13 : #include "libmesh/enum_quadrature_type.h" 14 : 15 : using namespace libMesh; 16 : 17 573215 : ArbitraryQuadrature::ArbitraryQuadrature(const unsigned int d, const Order o) : QBase(d, o) {} 18 : 19 : std::unique_ptr<QBase> 20 536 : ArbitraryQuadrature::clone() const 21 : { 22 536 : return std::make_unique<ArbitraryQuadrature>(*this); 23 : } 24 : 25 : QuadratureType 26 0 : ArbitraryQuadrature::type() const 27 : { 28 0 : return libMesh::INVALID_Q_RULE; 29 : } 30 : 31 : void 32 27919807 : ArbitraryQuadrature::setPoints(const std::vector<Point> & points) 33 : { 34 27919807 : _points = points; 35 27919807 : _weights.resize(points.size(), 1.0); 36 27919807 : } 37 : 38 : void 39 0 : ArbitraryQuadrature::setWeights(const std::vector<Real> & weights) 40 : { 41 0 : _weights = weights; 42 0 : } 43 : 44 : #ifdef LIBMESH_QBASE_INIT_ARGUMENTS_REMOVED 45 : void 46 624 : ArbitraryQuadrature::init_1D() 47 : { 48 624 : } 49 : 50 : void 51 1668 : ArbitraryQuadrature::init_2D() 52 : { 53 1668 : } 54 : 55 : void 56 33 : ArbitraryQuadrature::init_3D() 57 : { 58 33 : } 59 : 60 : #else 61 : void 62 : ArbitraryQuadrature::init_1D(const ElemType, unsigned int) 63 : { 64 : } 65 : 66 : void 67 : ArbitraryQuadrature::init_2D(const ElemType, unsigned int) 68 : { 69 : } 70 : 71 : void 72 : ArbitraryQuadrature::init_3D(const ElemType, unsigned int) 73 : { 74 : } 75 : #endif // LIBMESH_QBASE_INIT_ARGUMENTS_REMOVED