Xyce  6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
N_NLS_NOX_AugmentLinSys_OPStart.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // Copyright Notice
3 //
4 // Copyright 2002 Sandia Corporation. Under the terms
5 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
6 // Government retains certain rights in this software.
7 //
8 // Xyce(TM) Parallel Electrical Simulator
9 // Copyright (C) 2002-2014 Sandia Corporation
10 //
11 // This program is free software: you can redistribute it and/or modify
12 // it under the terms of the GNU General Public License as published by
13 // the Free Software Foundation, either version 3 of the License, or
14 // (at your option) any later version.
15 //
16 // This program is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, see <http://www.gnu.org/licenses/>.
23 //-----------------------------------------------------------------------------
24 
25 //-------------------------------------------------------------------------
26 // Filename : $RCSfile: N_NLS_NOX_AugmentLinSys_OPStart.h,v $
27 //
28 // Purpose : Concrete class for augmenting the Jacobian for
29 // pseudo-transient solves.
30 //
31 // Special Notes :
32 //
33 // Creator : Dave Shirley, PSSI
34 //
35 // Creation Date : 05/08/06
36 //
37 // Revision Information:
38 // ---------------------
39 //
40 // Revision Number: $Revision: 1.17 $
41 //
42 // Revision Date : $Date: 2014/05/14 22:09:48 $
43 //
44 // Current Owner : $Author: dgbaur $
45 //-------------------------------------------------------------------------
46 
47 
48 #ifndef Xyce_N_NLS_NOX_AugmentLinSys_OPStart_h
49 #define Xyce_N_NLS_NOX_AugmentLinSys_OPStart_h
50 
51 #include <set>
52 
53 #include <N_UTL_fwd.h>
54 
55 #include "Teuchos_RefCountPtr.hpp"
57 #include "N_PDS_ParMap.h"
58 #ifdef Xyce_PARALLEL_MPI
59 #include "N_PDS_ParComm.h"
60 #endif
61 
62 
63 class Epetra_MapColoring;
64 
65 //-----------------------------------------------------------------------------
66 // Class : N_NLS::NOX::AugmentLinSysOPStart
67 // Purpose :
68 // Creator : Roger Pawlowski, SNL, 9233
69 // Creation Date :
70 //-----------------------------------------------------------------------------
71 namespace N_NLS_NOX {
72 
74 
75 public:
76 
77  //! Ctor.
78 #ifdef Xyce_PARALLEL_MPI
79  AugmentLinSysOPStart(Xyce::NodeNamePairMap &, const Xyce::NodeNamePairMap &,
80  N_PDS_Comm *);
81 #else
82  AugmentLinSysOPStart(Xyce::NodeNamePairMap &, const Xyce::NodeNamePairMap &);
83 #endif
84 
85  //! Dtor.
87 
88  void setProgressVariable(double dummy) {return;}
89 
90  void augmentResidual(const N_LAS_Vector * solution, N_LAS_Vector * residual_vector);
91 
92  void augmentJacobian(N_LAS_Matrix * jacobian);
93 
94  private:
95 
96  //! map of specified variables
97  Xyce::NodeNamePairMap & op_;
98  const Xyce::NodeNamePairMap & allNodes_;
99 
100  bool skipSet;
101  std::set<int> skipLID;
102  std::set<int> skipGID;
103 
104  N_LAS_Vector* residualPtr_;
105  const N_LAS_Vector* solutionPtr_;
106  int rSize_;
107 #ifdef Xyce_PARALLEL_MPI
108  N_PDS_ParMap * pmap_;
109  N_PDS_Comm * pdsCommPtr_;
110 #endif
111 };
112 
113 }
114 
115 #endif
116