Belos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
test_factory_complex.cpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Belos: Block Linear Solvers Package
4 //
5 // Copyright 2004-2016 NTESS and the Belos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #include <BelosConfigDefs.hpp>
13 #include <BelosLinearProblem.hpp>
14 #include <BelosSolverFactory.hpp>
15 #include <complex>
16 
17 #include "MyMultiVec.hpp"
18 #include "MyBetterOperator.hpp"
19 #include "MyOperator.hpp"
20 
21 //
22 // mfh 20 Jan 2014: This test ensures that Belos::SolverFactory can
23 // compile whether its ScalarType (first) template parameter is real
24 // or complex.
25 //
26 // This test requires that Trilinos was compiled with complex
27 // arithmetic support enabled.
28 //
29 
31 {
32  using Teuchos::RCP;
33  using Teuchos::rcp;
34  typedef double ST;
35  typedef Belos::MultiVec<ST> MV;
36  typedef Belos::Operator<ST> OP;
37  typedef Belos::SolverFactory<ST, MV, OP> factory_type;
38 
39  factory_type factory;
40 }
41 
42 TEUCHOS_UNIT_TEST( Factory, Complex )
43 {
44  using Teuchos::RCP;
45  using Teuchos::rcp;
46  typedef std::complex<double> ST;
47  typedef Belos::MultiVec<ST> MV;
48  typedef Belos::Operator<ST> OP;
49  typedef Belos::SolverFactory<ST, MV, OP> factory_type;
50 
51  factory_type factory;
52 }
TEUCHOS_UNIT_TEST(Factory, Bug6383)
Definition: Factory.cpp:201
Alternative run-time polymorphic interface for operators.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
double Real
Class which describes the linear problem to be solved by the iterative solver.
Interface for multivectors used by Belos&#39; linear solvers.
Belos header file which uses auto-configuration information to include necessary C++ headers...
typename::Belos::Impl::SolverFactorySelector< SC, MV, OP >::type SolverFactory