📄 monoadaptivejacobian.h
字号:
// Copyright (C) 2005-2006 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added: 2005-01-28// Last changed: 2006-07-06#ifndef __MONO_ADAPTIVE_JACOBIAN_H#define __MONO_ADAPTIVE_JACOBIAN_H#include "TimeSlabJacobian.h"namespace dolfin{ class MonoAdaptiveTimeSlab; /// This class represents the Jacobian matrix of the system of /// equations defined on a mono-adaptive time slab. class MonoAdaptiveJacobian : public TimeSlabJacobian { public: /// Constructor MonoAdaptiveJacobian(MonoAdaptiveTimeSlab& timeslab, bool implicit, bool piecewise); /// Destructor ~MonoAdaptiveJacobian(); /// Return number of rows (dim = 0) or columns (dim = 1) uint size(uint dim) const; /// Compute product y = Ax void mult(const uBlasVector& x, uBlasVector& y) const; private: /// Friends friend class MonoAdaptiveNewtonSolver; // The time slab MonoAdaptiveTimeSlab& ts; // True if ODE is implicit bool implicit; // True if M is piecewise constant bool piecewise; // FIXME: Maybe we can reuse some other vectors? // Temporary vectors for storing multiplication mutable uBlasVector xx; mutable uBlasVector yy; };}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -