📄 domainboundary.h
字号:
// Copyright (C) 2008 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added: 2008-05-23// Last changed: 2008-05-23#ifndef __DOMAIN_BOUNDARY_H#define __DOMAIN_BOUNDARY_H#include "SubDomain.h"namespace dolfin{ /// This class provides a SubDomain which picks out the boundary of /// a mesh, and provides a convenient way to specify boundary /// conditions on the entire boundary of a mesh. class DomainBoundary : public SubDomain { public: /// Constructor DomainBoundary() {}; /// Destructor virtual ~DomainBoundary() {} /// Return true for points on the boundary virtual bool inside(const real* x, bool on_boundary) const { return on_boundary; } };}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -