using namespace std;
int main(
int argc,
char**argv) {
string approx = (argc > 2) ? argv[2] : "P1";
Float tol = (argc > 4) ? atof(argv[4]) : eps;
size_t max_iter = (argc > 5) ? atoi(argv[5]) : 100;
size_t n_iter = max_iter;
return (
residue <= sqrt(tol)) ? 0 : 1;
}
see the Float page for the full documentation
see the field page for the full documentation
see the geo page for the full documentation
odiststream dout(cout)
see the diststream page for the full documentation
odiststream derr(cerr)
see the diststream page for the full documentation
The combustion problem: class header for the Newton method.
int main(int argc, char **argv)
This file is part of Rheolef.
int damped_newton(const Problem &P, const Preconditioner &T, Field &u, Real &tol, Size &max_iter, odiststream *p_derr=0)
see the damped_newton page for the full documentation
field residue(Float p, const field &uh)
rheolef - reference manual
odiststream & put(odiststream &os, const field &uh) const
field initial(std::string restart="")
void set_parameter(float_type lambda1)