mesh.h

来自「一个用来实现偏微分方程中网格的计算库」· C头文件 代码 · 共 53 行

H
53
字号
#ifndef __mesh_h__#define __mesh_h__#include "libmesh_config.h"#ifdef ENABLE_PARMESH#include "parallel_mesh.h"  typedef ParallelMesh DefaultMesh;#else#include "serial_mesh.h"  typedef SerialMesh DefaultMesh;#endif// Forward declarations don't like typedefs...// typedef SerialMesh Mesh;/** * The \p Mesh class is a thin wrapper, around the \p SerialMesh class * by default.*/// ------------------------------------------------------------// Mesh class definitionclass Mesh : public DefaultMesh{ public:  /**   * Constructor.  Requires the dimension and optionally   * a processor id.  Note that \p proc_id should always   * be provided for multiprocessor applications.   */  Mesh (unsigned int d) : DefaultMesh(d) {}  /**   * Copy-constructor.  This should be able to take a   * serial or parallel mesh.   */  Mesh (const UnstructuredMesh& other_mesh) : DefaultMesh(other_mesh) {}  /**   * Destructor.   */  ~Mesh() {}};#endif

⌨️ 快捷键说明

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