cloudy
trunk
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
quantumstate.cpp
Go to the documentation of this file.
1
/* This file is part of Cloudy and is copyright (C)1978-2017 by Gary J. Ferland and
2
* others. For conditions of distribution and use see copyright notice in license.txt */
3
4
#include "
cddefines.h
"
5
#include "
quantumstate.h
"
6
7
8
/*StateJunk set all elements of transition struc to dangerous values */
9
void
Junk
(
qStateProxy
st )
10
{
11
12
DEBUG_ENTRY
(
"qStateProxy::Junk()"
);
13
15
st.
g
() = -FLT_MAX;
16
18
st.
ColDen
() = -FLT_MAX;
19
21
st.
Pop
() = -FLT_MAX;
22
24
st.
DepartCoef
() = -FLT_MAX;
25
27
st.
IonStg
() = -10000;
28
30
st.
nelem
() = -10000;
31
32
st.
n
()=st.
l
()=st.
S
()=st.
j
()=st.
v
()=st.
J
()=-1;
33
34
st.
status
() =
LEVEL_ACTIVE
;
35
36
return
;
37
}
38
39
/*StateZero zeros out the structure */
40
void
Zero
(
qStateProxy
st)
41
{
42
43
DEBUG_ENTRY
(
"qStateProxy::Zero()"
);
44
46
st.
Pop
() = 0.;
48
st.
DepartCoef
() = 0.;
49
return
;
50
}
51
52
string
qStateProxy::chLabel
()
const
53
{
54
ostringstream oss;
55
oss <<
m_list
->
chLabel
()<<
'['
<<
m_index
+1<<
']'
;
56
return
oss.str();
57
}
58
string
qStateConstProxy::chLabel
()
const
59
{
60
ostringstream oss;
61
oss <<
m_list
->
chLabel
()<<
'['
<<
m_index
+1<<
']'
;
62
return
oss.str();
63
}
qStateProxy::m_index
int m_index
Definition:
quantumstate.h:186
qStateProxy::j
long & j() const
Definition:
quantumstate.h:284
qStateProxy::IonStg
int & IonStg() const
Definition:
quantumstate.h:244
quantumstate.h
qStateProxy::l
long & l() const
Definition:
quantumstate.h:272
qStateProxy::v
long & v() const
Definition:
quantumstate.h:280
qStateProxy::Pop
double & Pop() const
Definition:
quantumstate.h:212
qStateConstProxy::m_index
int m_index
Definition:
quantumstate.h:305
qStateProxy::n
long & n() const
Definition:
quantumstate.h:268
qStateProxy::status
enum level_status & status() const
Definition:
quantumstate.h:292
qStateProxy::ColDen
double & ColDen() const
Definition:
quantumstate.h:222
qStateProxy::m_list
list_type * m_list
Definition:
quantumstate.h:185
qStateProxy::DepartCoef
double & DepartCoef() const
Definition:
quantumstate.h:217
Junk
void Junk(qStateProxy st)
Definition:
quantumstate.cpp:9
qStateConstProxy::chLabel
string chLabel() const
Definition:
quantumstate.cpp:58
cddefines.h
DEBUG_ENTRY
#define DEBUG_ENTRY(funcname)
Definition:
cddefines.h:729
Zero
void Zero(qStateProxy st)
Definition:
quantumstate.cpp:40
qStateProxy::chLabel
string chLabel() const
Definition:
quantumstate.cpp:52
qStateProxy::g
realnum & g() const
Definition:
quantumstate.h:207
qStateConstProxy::m_list
const list_type * m_list
Definition:
quantumstate.h:304
qStateProxy
Definition:
quantumstate.h:177
LEVEL_ACTIVE
Definition:
quantumstate.h:10
qStateProxy::nelem
int & nelem() const
Definition:
quantumstate.h:249
qStateProxy::S
long & S() const
Definition:
quantumstate.h:276
qStateProxy::J
long & J() const
Definition:
quantumstate.h:288
qList::chLabel
string chLabel() const
Definition:
quantumstate.h:143
Generated by
1.8.5