cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
newton_step.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2022 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef NEWTON_STEP_H_
5 #define NEWTON_STEP_H_
6 
7 class GroupMap;
8 
9 /* mole_co_priv.h */
14 bool newton_step(GroupMap &mole_map, const valarray<double> &oldmols, valarray<double> &newmols, realnum *eqerror, realnum *error, const long n,
15  double *rlimit, double *rmax,
16  valarray<double> &escale,
17  void (*jacobn)(GroupMap &mole_map,
18  const valarray<double> &b2vec,
19  double * const ervals, double * const amat,
20  const bool lgJac, bool *lgConserved));
21 
22 typedef void (*error_print_t)(long, long,
23  const valarray<double> &,
24  const valarray<double> &);
25 
26 int32 solve_system(const valarray<double> &a, valarray<double> &b,
27  long int n, error_print_t error_print);
28 
29 #endif /* NEWTON_STEP_H_ */
void(* error_print_t)(long, long, const valarray< double > &, const valarray< double > &)
Definition: newton_step.h:22
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))
Definition: newton_step.cpp:30
float realnum
Definition: cddefines.h:124
int32 solve_system(const valarray< double > &a, valarray< double > &b, long int n, error_print_t error_print)