|
EpetraExt Development
|
00001 //@HEADER 00002 // *********************************************************************** 00003 // 00004 // EpetraExt: Epetra Extended - Linear Algebra Services Package 00005 // Copyright (2001) 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 EpetraExt_LINEARPROBLEM_GRAPHTRANS_H 00030 #define EpetraExt_LINEARPROBLEM_GRAPHTRANS_H 00031 00032 #include <EpetraExt_Transform.h> 00033 00034 class Epetra_LinearProblem; 00035 class Epetra_Map; 00036 class Epetra_MultiVector; 00037 class Epetra_CrsGraph; 00038 class Epetra_CrsMatrix; 00039 class Epetra_Export; 00040 class Epetra_Import; 00041 00042 namespace EpetraExt { 00043 00045 class LinearProblem_GraphTrans : public SameTypeTransform<Epetra_LinearProblem> 00046 { 00047 StructuralSameTypeTransform<Epetra_CrsGraph> & graphTrans_; 00048 00049 Epetra_Import * Importer_; 00050 Epetra_Export * MatExporter_; 00051 Epetra_Export * VecExporter_; 00052 00053 Epetra_LinearProblem * OldProblem_; 00054 Epetra_CrsGraph * OldGraph_; 00055 Epetra_CrsMatrix * OldMatrix_; 00056 Epetra_MultiVector * OldLHS_; 00057 Epetra_MultiVector * OldRHS_; 00058 Epetra_Map * OldRowMap_; 00059 00060 Epetra_LinearProblem * NewProblem_; 00061 Epetra_CrsMatrix * NewMatrix_; 00062 Epetra_MultiVector * NewLHS_; 00063 Epetra_MultiVector * NewRHS_; 00064 00065 public: 00066 00068 ~LinearProblem_GraphTrans(); 00069 00071 00075 LinearProblem_GraphTrans( StructuralSameTypeTransform<Epetra_CrsGraph> & graph_trans ) 00076 : graphTrans_(graph_trans), 00077 Importer_(0), 00078 MatExporter_(0), 00079 VecExporter_(0), 00080 OldProblem_(0), 00081 OldGraph_(0), 00082 OldMatrix_(0), 00083 OldLHS_(0), 00084 OldRHS_(0), 00085 OldRowMap_(0), 00086 NewProblem_(0), 00087 NewMatrix_(0), 00088 NewLHS_(0), 00089 NewRHS_(0) 00090 {} 00091 00093 00098 NewTypeRef operator()( OriginalTypeRef orig ); 00099 00101 bool fwd(); 00102 00104 bool rvs(); 00105 00106 }; 00107 00108 } //namespace EpetraExt 00109 00110 #endif //EpetraExt_LINEARPROBLEM_GRAPHTRANS_H 00111
1.7.4