MAST
slepc_eigen_solver.h
Go to the documentation of this file.
1 /*
2  * MAST: Multidisciplinary-design Adaptation and Sensitivity Toolkit
3  * Copyright (C) 2013-2019 Manav Bhatia
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef __mast__slepc_eigen_solver__
21 #define __mast__slepc_eigen_solver__
22 
23 // MAST includes
24 #include "base/mast_data_types.h"
25 
26 
27 // libMesh includes
28 #include "libmesh/slepc_eigen_solver.h"
29 
30 
31 namespace MAST {
32 
40  public libMesh::SlepcEigenSolver<Real> {
41 
42  public:
43  SlepcEigenSolver(const libMesh::Parallel::Communicator & comm_in);
44 
49  virtual std::pair<Real, Real>
50  get_eigenvalue (unsigned int i);
51 
52 
59  virtual std::pair<Real, Real>
60  get_eigenpair (unsigned int i,
61  libMesh::NumericVector<Real> &eig_vec,
62  libMesh::NumericVector<Real> *eig_vec_im = libmesh_nullptr);
63 
64 
65  };
66 }
67 
68 
69 #endif // __mast__slepc_eigen_solver__
70 
virtual std::pair< Real, Real > get_eigenpair(unsigned int i, libMesh::NumericVector< Real > &eig_vec, libMesh::NumericVector< Real > *eig_vec_im=libmesh_nullptr)
This function returns the real and imaginary part of the ith eigenvalue and copies the respective eig...
This class inherits from libMesh::SlepcEigenSolver<Real> and implements a method for retriving the re...
virtual std::pair< Real, Real > get_eigenvalue(unsigned int i)
This function returns the real and imaginary part of the ith eigenvalues.
SlepcEigenSolver(const libMesh::Parallel::Communicator &comm_in)