📄 mesh.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -