cloudy trunk
Loading...
Searching...
No Matches
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 */
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 */
37{
38
39 DEBUG_ENTRY( "qStateProxy::Zero()" );
40
42 st.Pop() = 0.;
43 return;
44}
#define DEBUG_ENTRY(funcname)
Definition cddefines.h:684
realnum & g() const
double & ColDen() const
long & l() const
char * chLabel() const
long & j() const
long & J() const
double & Pop() const
long & S() const
int & IonStg() const
long & v() const
int & nelem() const
long & n() const
void Junk(qStateProxy st)
void Zero(qStateProxy st)