SundanceQuadratureIntegralBase.cpp
Go to the documentation of this file.
00001 /* @HEADER@ */
00002 // ************************************************************************
00003 // 
00004 //                             Sundance
00005 //                 Copyright 2011 Sandia Corporation
00006 // 
00007 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00008 // the U.S. Government retains certain rights in this software.
00009 //
00010 // Redistribution and use in source and binary forms, with or without
00011 // modification, are permitted provided that the following conditions are
00012 // met:
00013 //
00014 // 1. Redistributions of source code must retain the above copyright
00015 // notice, this list of conditions and the following disclaimer.
00016 //
00017 // 2. Redistributions in binary form must reproduce the above copyright
00018 // notice, this list of conditions and the following disclaimer in the
00019 // documentation and/or other materials provided with the distribution.
00020 //
00021 // 3. Neither the name of the Corporation nor the names of the
00022 // contributors may be used to endorse or promote products derived from
00023 // this software without specific prior written permission.
00024 //
00025 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
00026 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00027 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00028 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
00029 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00030 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00031 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00032 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00033 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00034 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00035 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00036 //
00037 // Questions? Contact Kevin Long (kevin.long@ttu.edu)
00038 // 
00039 
00040 /* @HEADER@ */
00041 
00042 #include "SundanceQuadratureIntegralBase.hpp"
00043 #include "SundanceGaussianQuadrature.hpp"
00044 #include "SundanceMultiIndex.hpp"
00045 #include "SundanceOut.hpp"
00046 #include "PlayaTabs.hpp"
00047 #include "Teuchos_TimeMonitor.hpp"
00048 
00049 using namespace Sundance;
00050 using namespace Sundance;
00051 using namespace Sundance;
00052 using namespace Sundance;
00053 using namespace Sundance;
00054 using namespace Sundance;
00055 using namespace Sundance;
00056 using namespace Teuchos;
00057 
00058 
00059 extern "C" 
00060 {
00061 int dgemm_(const char* transA, const char* transB,
00062   const int* M, const int *N, const int* K,
00063   const double* alpha, 
00064   const double* A, const int* ldA,
00065   const double* B, const int* ldB,
00066   const double* beta,
00067   double* C, const int* ldC);
00068 }
00069 
00070 QuadratureIntegralBase::QuadratureIntegralBase(int spatialDim,
00071   const CellType& maxCellType,
00072   int dim, 
00073   const CellType& cellType,
00074   const QuadratureFamily& quad,
00075   bool isInternalBdry,
00076   const ParametrizedCurve& globalCurve,
00077   const Mesh& mesh,
00078   int verb)
00079 : ElementIntegral(spatialDim, maxCellType, dim, cellType, isInternalBdry, globalCurve, mesh,
00080     verb),
00081     nQuad_(0)
00082 {
00083 }
00084 
00085 
00086 QuadratureIntegralBase::QuadratureIntegralBase(int spatialDim,
00087   const CellType& maxCellType,
00088   int dim, 
00089   const CellType& cellType,
00090   const BasisFamily& testBasis,
00091   int alpha,
00092   int testDerivOrder,
00093   const QuadratureFamily& quad,
00094   bool isInternalBdry,
00095   const ParametrizedCurve& globalCurve,
00096   const Mesh& mesh,
00097   int verb)
00098   : ElementIntegral(spatialDim, maxCellType, dim, cellType, 
00099   testBasis, alpha, testDerivOrder, isInternalBdry, globalCurve, mesh, verb),
00100     nQuad_(0)
00101 {
00102 
00103 }
00104 
00105 
00106 
00107 
00108 QuadratureIntegralBase::QuadratureIntegralBase(int spatialDim,
00109   const CellType& maxCellType,
00110   int dim,
00111   const CellType& cellType,
00112   const BasisFamily& testBasis,
00113   int alpha,
00114   int testDerivOrder,
00115   const BasisFamily& unkBasis,
00116   int beta,
00117   int unkDerivOrder,
00118   const QuadratureFamily& quad,
00119   bool isInternalBdry,
00120   const ParametrizedCurve& globalCurve,
00121   const Mesh& mesh,
00122   int verb)
00123   : ElementIntegral(spatialDim, maxCellType, dim, cellType, 
00124     testBasis, alpha, testDerivOrder, 
00125     unkBasis, beta, unkDerivOrder, isInternalBdry, globalCurve, mesh, verb),
00126     nQuad_(0)
00127 {
00128 
00129 }
00130 
00131 
00132 
00133 
00134 

Site Contact