|
Thyra Package Browser (Single Doxygen Collection)
Version of the Day
|
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 // 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 Roscoe A. Bartlett (bartlettra@ornl.gov) 00038 // 00039 // *********************************************************************** 00040 // @HEADER 00041 00042 #ifndef THYRA_EPETRA_THYRA_WRAPPERS_HPP 00043 #define THYRA_EPETRA_THYRA_WRAPPERS_HPP 00044 00045 00046 #include "Thyra_EpetraTypes.hpp" 00047 00049 00050 namespace Teuchos { template<class Ordinal> class Comm; } 00051 00052 00053 namespace Thyra { 00054 00055 00064 RCP<const Teuchos::Comm<Ordinal> > 00065 create_Comm( const RCP<const Epetra_Comm> &epetraComm ); 00066 00067 00101 RCP<const VectorSpaceBase<double> > 00102 create_VectorSpace( 00103 const RCP<const Epetra_Map> &epetra_map 00104 ); 00105 00106 00120 RCP<const VectorSpaceBase<double> > 00121 create_LocallyReplicatedVectorSpace( 00122 const RCP<const VectorSpaceBase<double> > &parentSpace, 00123 const int dim 00124 ); 00125 00126 00151 RCP<VectorBase<double> > 00152 create_Vector( 00153 const RCP<Epetra_Vector> &epetra_v, 00154 const RCP<const VectorSpaceBase<double> > &space 00155 ); 00156 00157 00180 RCP<const VectorBase<double> > 00181 create_Vector( 00182 const RCP<const Epetra_Vector> &epetra_v, 00183 const RCP<const VectorSpaceBase<double> > &space 00184 ); 00185 00186 00210 RCP<MultiVectorBase<double> > 00211 create_MultiVector( 00212 const RCP<Epetra_MultiVector> &epetra_mv, 00213 const RCP<const VectorSpaceBase<double> > &range, 00214 const RCP<const VectorSpaceBase<double> > &domain = Teuchos::null 00215 ); 00216 00217 00243 RCP<const MultiVectorBase<double> > 00244 create_MultiVector( 00245 const RCP<const Epetra_MultiVector> &epetra_mv, 00246 const RCP<const VectorSpaceBase<double> > &range, 00247 const RCP<const VectorSpaceBase<double> > &domain = Teuchos::null 00248 ); 00249 00250 00266 RCP<const Epetra_Comm> 00267 get_Epetra_Comm(const Teuchos::Comm<Ordinal>& comm); 00268 00269 00278 RCP<const Epetra_Map> 00279 get_Epetra_Map(const VectorSpaceBase<double>& vs, const RCP<const Epetra_Comm>& comm); 00280 00281 00304 RCP<Epetra_Vector> 00305 get_Epetra_Vector( 00306 const Epetra_Map &map, 00307 const RCP<VectorBase<double> > &v 00308 ); 00309 00310 00330 RCP<const Epetra_Vector> 00331 get_Epetra_Vector( 00332 const Epetra_Map &map, 00333 const RCP<const VectorBase<double> > &v 00334 ); 00335 00336 00360 RCP<Epetra_MultiVector> 00361 get_Epetra_MultiVector( 00362 const Epetra_Map &map, 00363 const RCP<MultiVectorBase<double> > &mv 00364 ); 00365 00366 00386 RCP<const Epetra_MultiVector> 00387 get_Epetra_MultiVector( 00388 const Epetra_Map &map, 00389 const RCP<const MultiVectorBase<double> > &mv 00390 ); 00391 00392 00416 Teuchos::RCP<Epetra_MultiVector> 00417 get_Epetra_MultiVector( 00418 const Epetra_Map &map, 00419 MultiVectorBase<double> &mv 00420 ); 00421 00422 00442 Teuchos::RCP<const Epetra_MultiVector> 00443 get_Epetra_MultiVector( 00444 const Epetra_Map &map, 00445 const MultiVectorBase<double> &mv 00446 ); 00447 00448 00449 } // namespace Thyra 00450 00451 00452 #endif // THYRA_EPETRA_THYRA_WRAPPERS_HPP
1.7.6.1