Xyce  6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
N_ANP_AnalysisEvent.C
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_ANP_AnalysisEvent.C,v $
27 // Purpose : AnalysisEvent info
28 // Special Notes :
29 // Creator :
30 // Creation Date :
31 //
32 // Revision Information:
33 // ---------------------
34 // Revision Number: $Revision: 1.1 $
35 // Revision Date : $Date: 2014/08/06 22:26:43 $
36 // Current Owner : $Author: dgbaur $
37 //-----------------------------------------------------------------------------
38 
39 #include <Xyce_config.h>
40 
41 #include <ostream>
42 
43 #include <N_ANP_AnalysisEvent.h>
44 
45 namespace Xyce {
46 namespace Analysis {
47 
48 std::ostream &operator<<(std::ostream &os, const AnalysisEvent::State &state)
49 {
50  switch (state) {
52  os << "INITIALIZE";
53  break;
54 
56  os << "STEP_STARTED";
57  break;
58 
60  os << "STEP_SUCCESSFUL";
61  break;
62 
64  os << "STEP_FAILED";
65  break;
66 
68  os << "FINISH";
69  break;
70  }
71 
72  return os;
73 }
74 
75 std::ostream &operator<<(std::ostream &os, const AnalysisEvent::OutputType &type)
76 {
77  switch (type) {
78 
79  case AnalysisEvent::DC:
80  os << "DC";
81  break;
82 
84  os << "TRAN";
85  break;
86 
87  case AnalysisEvent::AC:
88  os << "AC";
89  break;
90 
92  os << "AC_IC";
93  break;
94 
96  os << "HB_FD";
97  break;
98 
100  os << "HB_TD";
101  break;
102 
104  os << "HB_IC";
105  break;
106 
108  os << "HB_STARTUP";
109  break;
110 
111  case AnalysisEvent::DCOP:
112  os << "DCOP";
113  break;
114 
116  os << "HOMOTOPY";
117  break;
118 
119  case AnalysisEvent::MPDE:
120  os << "MPDE";
121  break;
122 
124  os << "MPDE_IC";
125  break;
126 
127  case AnalysisEvent::SENS:
128  os << "SENS";
129  break;
130  }
131 
132  return os;
133 }
134 
135 } // namespace Analysis
136 
137 template<>
138 std::ostream &Dump<Analysis::AnalysisEvent>::dump(std::ostream &os) const
139 {
140  // os << "AnalysisEvent "
141  // << "state_ " << t_.state_
142  // << ", outputType_ " << t_.outputType_
143  // << ", step_ " << t_.step_
144  // << ", count_ " << t_.count_ << std::endl;
145 
146  return os;
147 }
148 
149 } // namespace Xyce