cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Enumerations | Functions
mole_solve.cpp File Reference
#include "cddefines.h"
#include "deuterium.h"
#include "ionbal.h"
#include "phycon.h"
#include "hmi.h"
#include "dynamics.h"
#include "conv.h"
#include "trace.h"
#include "grainvar.h"
#include "newton_step.h"
#include "h2.h"
#include "mole_priv.h"
#include "mole.h"
#include "dense.h"
Include dependency graph for mole_solve.cpp:

Go to the source code of this file.

Macros

#define SMALLABUND   1e-24
 
#define ABSLIM   1e-12
 
#define ERRLIM   1e-12
 
#define MAT(a, I_, J_)   ((a)[(I_)*(mole_global.num_compacted)+(J_)])
 

Enumerations

enum  { PRINTSOL = false }
 

Functions

void check_co_ion_converge (void)
 
STATIC void funjac (GroupMap &MoleMap, const valarray< double > &b2vec, double *const ervals, double *const amat, const bool lgJac, bool *lgConserve)
 
STATIC void mole_h_fixup (void)
 
STATIC void grouped_elems (const double bvec[], double mole_elems[])
 
double mole_solve ()
 
STATIC void mole_eval_dynamic_balance (long int num_total, double *b, bool lgJac, multi_arr< double, 2 > &c)
 

Macro Definition Documentation

#define ABSLIM   1e-12

Definition at line 340 of file mole_solve.cpp.

#define ERRLIM   1e-12

Definition at line 341 of file mole_solve.cpp.

#define MAT (   a,
  I_,
  J_ 
)    ((a)[(I_)*(mole_global.num_compacted)+(J_)])

Definition at line 345 of file mole_solve.cpp.

Referenced by funjac().

#define SMALLABUND   1e-24

Definition at line 44 of file mole_solve.cpp.

Referenced by mole_solve(), and GroupMap::setup().

Enumeration Type Documentation

anonymous enum
Enumerator
PRINTSOL 

Definition at line 349 of file mole_solve.cpp.

Function Documentation

void check_co_ion_converge ( void  )

Definition at line 249 of file mole_solve.cpp.

References conv, DEBUG_ENTRY, dense, findspecieslocal(), t_dense::gas_phase, ipCARBON, ipOXYGEN, t_dense::lgElmtOn, SDIV(), t_conv::setConvIonizFail(), and t_dense::xIonDense.

Referenced by mole_solve().

Here is the call graph for this function:

STATIC void funjac ( GroupMap MoleMap,
const valarray< double > &  b2vec,
double *const  ervals,
double *const  amat,
const bool  lgJac,
bool *  lgConserve 
)
STATIC void grouped_elems ( const double  bvec[],
double  mole_elems[] 
)

Definition at line 563 of file mole_solve.cpp.

References groupspecies, mole_global, nuclide_list, and t_mole_global::num_compacted.

Referenced by funjac(), and GroupMap::setup().

STATIC void mole_eval_dynamic_balance ( long int  num_total,
double *  b,
bool  lgJac,
multi_arr< double, 2 > &  c 
)
STATIC void mole_h_fixup ( void  )
double mole_solve ( void  )