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

📄 sample.h

📁 利用C
💻 H
字号:
// Copyright (C) 2003-2005 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added:  2003-11-20// Last changed: 2005#ifndef __SAMPLE_H#define __SAMPLE_H#include <string>#include <dolfin/common/types.h>#include <dolfin/common/Variable.h>namespace dolfin{  class TimeSlab;  /// Sample of solution values at a given point.  class Sample : public Variable  {  public:        /// Constructor    Sample(TimeSlab& timeslab, real t, std::string name, std::string label);    /// Destructor    ~Sample();    /// Return number of components    uint size() const;    /// Return time t    real t() const;    /// Return value of component with given index    real u(uint index);    /// Return time step for component with given index    real k(uint index);    /// Return residual for component with given index    real r(uint index);      private:    TimeSlab& timeslab;    real time;  };}#endif

⌨️ 快捷键说明

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