multiadaptivepreconditioner.h

来自「利用C」· C头文件 代码 · 共 49 行

H
49
字号
// Copyright (C) 2005-2006 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added:  2005-01-27// Last changed: 2006-07-07#ifndef __MULTI_ADAPTIVE_PRECONDITIONER_H#define __MULTI_ADAPTIVE_PRECONDITIONER_H#include <dolfin/la/uBlasPreconditioner.h>namespace dolfin{  class ODE;  class Method;  class MultiAdaptiveTimeSlab;    /// This class implements a preconditioner for the Newton system to  /// be solved on a multi-adaptive time slab. The preconditioner just  /// does simple forward propagation of values on internal elements  /// of the time slab (without so much as looking at the Jacobian).  class MultiAdaptivePreconditioner : public uBlasPreconditioner  {  public:    /// Constructor    MultiAdaptivePreconditioner(MultiAdaptiveTimeSlab& timeslab, const Method& method);    /// Destructor    ~MultiAdaptivePreconditioner();        /// Solve linear system approximately for given right-hand side b    void solve(uBlasVector& x, const uBlasVector& b) const;      private:    // The time slab    MultiAdaptiveTimeSlab& ts;    // Method, mcG(q) or mdG(q)    const Method& method;  };}#endif

⌨️ 快捷键说明

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