localmeshcoarsening.h
来自「Dolfin provide a high-performance linear」· C头文件 代码 · 共 57 行
H
57 行
// Copyright (C) 2006 Johan Hoffman.// Licensed under the GNU LGPL Version 2.1.//// First added: 2006-11-01#ifndef __LOCAL_MESH_COARSENING_H#define __LOCAL_MESH_COARSENING_H#include <dolfin/MeshFunction.h>namespace dolfin{ class Mesh; class Edge; class Vertex; class MeshEditor; /// This class implements local mesh coarsening for different mesh types. class LocalMeshCoarsening { public: /// Coarsen simplicial mesh locally by edge collapse static void coarsenMeshByEdgeCollapse(Mesh& mesh, MeshFunction<bool>& cell_marker, bool coarsen_boundary = false); private: /// Check that edge collapse is ok static bool coarsenMeshOk(Mesh& mesh, uint edge_index, uint* edge_vertex, MeshFunction<bool>& vertex_forbidden); /// Collapse edge by node deletion static void collapseEdge(Mesh& mesh, Edge& edge, Vertex& vertex_to_remove, MeshFunction<bool>& cell_to_remove, Array<int>& old2new_vertex, Array<int>& old2new_cell, MeshEditor& editor, uint& current_cell); /// Coarsen simplicial cell by edge collapse static bool coarsenCell(Mesh& mesh, Mesh& coarse_mesh, int cell_id, Array<int>& old2new_vertex, Array<int>& old2new_cell, bool coarsen_boundary = false); };}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?