Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
newton_step.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* error_print_t) (long, long, const valarray< double > &, const valarray< double > &)
 

Functions

bool newton_step (GroupMap &mole_map, const valarray< double > &oldmols, valarray< double > &newmols, realnum *eqerror, realnum *error, const long n, double *rlimit, double *rmax, valarray< double > &escale, void(*jacobn)(GroupMap &mole_map, const valarray< double > &b2vec, double *const ervals, double *const amat, const bool lgJac, bool *lgConserved))
 
int32 solve_system (const valarray< double > &a, valarray< double > &b, long int n, error_print_t error_print)
 

Typedef Documentation

◆ error_print_t

typedef void(* error_print_t) (long, long, const valarray< double > &, const valarray< double > &)

Function Documentation

◆ newton_step()

bool newton_step ( GroupMap & mole_map,
const valarray< double > & oldmols,
valarray< double > & newmols,
realnum * eqerror,
realnum * error,
const long n,
double * rlimit,
double * rmax,
valarray< double > & escale,
void(* jacobn )(GroupMap &mole_map, const valarray< double > &b2vec, double *const ervals, double *const amat, const bool lgJac, bool *lgConserved) )

Take one Newton step

Parameters
*nBad
*error

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

Referenced by mole_solve().

Here is the call graph for this function:

◆ solve_system()

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

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

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

Here is the call graph for this function: