cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Enumerations | Functions
newton_step.cpp File Reference
#include "cddefines.h"
#include "newton_step.h"
#include "conv.h"
#include "thirdparty.h"
#include "mole.h"
#include "mole_priv.h"
#include "trace.h"
#include "save.h"
Include dependency graph for newton_step.cpp:

Go to the source code of this file.


#define MAT(a, I_, J_)   ((a)[(I_)*(n)+(J_)])


enum  { PRINTSOL = false }


STATIC void mole_system_error (long n, long merror, const valarray< double > &a, const valarray< double > &b)
bool newton_step (GroupMap &MoleMap, const valarray< double > &b0vec, valarray< double > &b2vec, realnum *eqerror, realnum *error, const long n, double *rlimit, double *rmax, valarray< double > &escale, void(*jacobn)(GroupMap &MoleMap, const valarray< double > &b2vec, double *const ervals, double *const amat, const bool lgJac, bool *lgConserve))
int32 solve_system (const valarray< double > &a, valarray< double > &b, long int n, error_print_t error_print)

Macro Definition Documentation

#define MAT (   a,
)    ((a)[(I_)*(n)+(J_)])

Definition at line 20 of file newton_step.cpp.

Referenced by newton_step().

Enumeration Type Documentation

anonymous enum

Definition at line 26 of file newton_step.cpp.

Function Documentation

STATIC void mole_system_error ( long  n,
long  merror,
const valarray< double > &  a,
const valarray< double > &  b 

Definition at line 323 of file newton_step.cpp.

References fprintf(), groupspecies, ioQQQ, and mole_print_species_reactions().

Referenced by newton_step().

Here is the call graph for this function:

bool newton_step ( GroupMap MoleMap,
const valarray< double > &  b0vec,
valarray< double > &  b2vec,
realnum eqerror,
realnum error,
const long  n,
double *  rlimit,
double *  rmax,
valarray< double > &  escale,
void(*)(GroupMap &MoleMap, const valarray< double > &b2vec, double *const ervals, double *const amat, const bool lgJac, bool *lgConserve)  jacobn 

Definition at line 30 of file newton_step.cpp.

References conv, DEBUG_ENTRY, e1(), e2(), fprintf(), get_ptr(), groupspecies, ioQQQ, t_trace::lgTrace, MAT, MIN2, mole_system_error(), t_conv::register_(), SMALLABUND, solve_system(), and trace.

Referenced by mole_solve().

Here is the call graph for this function:

int32 solve_system ( const valarray< double > &  a,
valarray< double > &  b,
long int  n,
error_print_t  error_print 

Definition at line 346 of file newton_step.cpp.

References ASSERT, DEBUG_ENTRY, fprintf(), get_ptr(), getrf_wrapper(), getrs_wrapper(), and ioQQQ.

Referenced by find_solution(), newton_step(), and Atom_LevelN::operator()().

Here is the call graph for this function: