Thyra_DefaultLinearOpSource.hpp

00001 // @HEADER
00002 // ***********************************************************************
00003 // 
00004 //    Thyra: Interfaces and Support for Abstract Numerical Algorithms
00005 //                 Copyright (2004) Sandia Corporation
00006 // 
00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00008 // license for use of this work by or on behalf of the U.S. Government.
00009 // 
00010 // This library is free software; you can redistribute it and/or modify
00011 // it under the terms of the GNU Lesser General Public License as
00012 // published by the Free Software Foundation; either version 2.1 of the
00013 // License, or (at your option) any later version.
00014 //  
00015 // This library is distributed in the hope that it will be useful, but
00016 // WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 // Lesser General Public License for more details.
00019 //  
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the Free Software
00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00025 // 
00026 // ***********************************************************************
00027 // @HEADER
00028 
00029 #ifndef THYRA_DEFUALT_LINEAR_OP_SOURCE_HPP
00030 #define THYRA_DEFUALT_LINEAR_OP_SOURCE_HPP
00031 
00032 #include "Thyra_DefaultLinearOpSourceDecl.hpp"
00033 
00034 namespace Thyra {
00035 
00036 // Constructors/initializers/accessors
00037 
00038 template <class RangeScalar, class DomainScalar>
00039 DefaultLinearOpSource<RangeScalar,DomainScalar>::DefaultLinearOpSource()
00040 {}
00041 
00042 template <class RangeScalar, class DomainScalar>
00043 DefaultLinearOpSource<RangeScalar,DomainScalar>::DefaultLinearOpSource(
00044   const Teuchos::RefCountPtr<LinearOpBase<RangeScalar,DomainScalar> >    &op
00045   )
00046 {
00047   op_.initialize(op);
00048 }
00049 
00050 template <class RangeScalar, class DomainScalar>
00051 DefaultLinearOpSource<RangeScalar,DomainScalar>::DefaultLinearOpSource(
00052   const Teuchos::RefCountPtr<const LinearOpBase<RangeScalar,DomainScalar> >    &op
00053   )
00054 {
00055   op_.initialize(op);
00056 }
00057 
00058 template <class RangeScalar, class DomainScalar>
00059 void DefaultLinearOpSource<RangeScalar,DomainScalar>::initialize(
00060   const Teuchos::RefCountPtr<LinearOpBase<RangeScalar,DomainScalar> >    &op
00061   )
00062 {
00063   op_.initialize(op);
00064 }
00065 
00066 template <class RangeScalar, class DomainScalar>
00067 void DefaultLinearOpSource<RangeScalar,DomainScalar>::initialize(
00068   const Teuchos::RefCountPtr<const LinearOpBase<RangeScalar,DomainScalar> >    &op
00069   )
00070 {
00071   op_.initialize(op);
00072 }
00073 
00074 template <class RangeScalar, class DomainScalar>
00075 void DefaultLinearOpSource<RangeScalar,DomainScalar>::uninitialize()
00076 {
00077   op_.uninitialize();
00078 }
00079 
00080 // Overridden from LinearOpSourceBase
00081 
00082 template <class RangeScalar, class DomainScalar>
00083 bool DefaultLinearOpSource<RangeScalar,DomainScalar>::isOpConst() const
00084 {
00085   return op_.isConst();
00086 }
00087 
00088 template <class RangeScalar, class DomainScalar>
00089 Teuchos::RefCountPtr<LinearOpBase<RangeScalar,DomainScalar> >
00090 DefaultLinearOpSource<RangeScalar,DomainScalar>::getNonconstOp()
00091 {
00092   return op_.getNonconstObj();
00093 }
00094 
00095 template <class RangeScalar, class DomainScalar>
00096 Teuchos::RefCountPtr<const LinearOpBase<RangeScalar,DomainScalar> >
00097 DefaultLinearOpSource<RangeScalar,DomainScalar>::getOp() const
00098 {
00099   return op_.getConstObj();
00100 }
00101 
00102 } // namespace Thyra
00103 
00104 #endif // THYRA_DEFUALT_LINEAR_OP_SOURCE_HPP

Generated on Thu Sep 18 12:32:45 2008 for Thyra Operator Solve Support by doxygen 1.3.9.1