cloudy
trunk
Loading...
Searching...
No Matches
source
quantumstate.cpp
Go to the documentation of this file.
1
/* This file is part of Cloudy and is copyright (C)1978-2013 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
/*StateJunk set all elements of transition struc to dangerous values */
8
void
Junk
(
qStateProxy
st )
9
{
10
11
DEBUG_ENTRY
(
"qStateProxy::Junk()"
);
12
13
st.
chLabel
()[0] =
'\0'
;
14
16
st.
g
() = -FLT_MAX;
17
19
st.
ColDen
() = -FLT_MAX;
20
22
st.
Pop
() = -FLT_MAX;
23
25
st.
IonStg
() = -10000;
26
28
st.
nelem
() = -10000;
29
30
st.
n
()=st.
l
()=st.
S
()=st.
j
()=st.
v
()=st.
J
()=-1;
31
32
return
;
33
}
34
35
/*StateZero zeros out the structure */
36
void
Zero
(
qStateProxy
st)
37
{
38
39
DEBUG_ENTRY
(
"qStateProxy::Zero()"
);
40
42
st.
Pop
() = 0.;
43
return
;
44
}
cddefines.h
DEBUG_ENTRY
#define DEBUG_ENTRY(funcname)
Definition
cddefines.h:684
qStateProxy
Definition
quantumstate.h:131
qStateProxy::g
realnum & g() const
Definition
quantumstate.h:158
qStateProxy::ColDen
double & ColDen() const
Definition
quantumstate.h:168
qStateProxy::l
long & l() const
Definition
quantumstate.h:218
qStateProxy::chLabel
char * chLabel() const
Definition
quantumstate.h:144
qStateProxy::j
long & j() const
Definition
quantumstate.h:230
qStateProxy::J
long & J() const
Definition
quantumstate.h:234
qStateProxy::Pop
double & Pop() const
Definition
quantumstate.h:163
qStateProxy::S
long & S() const
Definition
quantumstate.h:222
qStateProxy::IonStg
int & IonStg() const
Definition
quantumstate.h:190
qStateProxy::v
long & v() const
Definition
quantumstate.h:226
qStateProxy::nelem
int & nelem() const
Definition
quantumstate.h:195
qStateProxy::n
long & n() const
Definition
quantumstate.h:214
Junk
void Junk(qStateProxy st)
Definition
quantumstate.cpp:8
Zero
void Zero(qStateProxy st)
Definition
quantumstate.cpp:36
quantumstate.h
Generated by
1.14.0