⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diff_solver.c

📁 一个用来实现偏微分方程中网格的计算库
💻 C
字号:
#include "diff_solver.h"#include "newton_solver.h"DiffSolver::DiffSolver (sys_type& s)    : quiet(true),      max_linear_iterations(1000),      max_nonlinear_iterations(100),      continue_after_max_iterations(true),      continue_after_backtrack_failure(false),      absolute_residual_tolerance(0.),      relative_residual_tolerance(0.),      absolute_step_tolerance(0.),      relative_step_tolerance(0.),      initial_linear_tolerance(1e-12),      minimum_linear_tolerance(TOLERANCE*TOLERANCE),      max_solution_norm(0.),      max_residual_norm(0.),      _system (s),      _solve_result(INVALID_SOLVE_RESULT){}AutoPtr<DiffSolver> DiffSolver::build (sys_type& s){  return AutoPtr<DiffSolver>(new NewtonSolver(s));}void DiffSolver::reinit (){  // Reset the max_step_size and max_residual_norm for a new mesh  max_solution_norm = 0.;  max_residual_norm = 0.;}void DiffSolver::init (){  // Reset the max_step_size and max_residual_norm for a new problem  max_solution_norm = 0.;  max_residual_norm = 0.;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -