mpimeshcommunicator.h
来自「Dolfin provide a high-performance linear」· C头文件 代码 · 共 46 行
H
46 行
// Copyright (C) 2007 Garth N. Wells.// Licensed under the GNU LGPL Version 2.1.//// First added: 2007-05-30// Last changed: #ifndef __MPI_MESH_COMMUNICATOR_H#define __MPI_MESH_COMMUNICATOR_H#include <dolfin/MeshFunction.h>namespace dolfin{ class Mesh;// class MeshFunction<unsigned int>; /// The class facilitates the transfer of a mesh between processes using MPI class MPIMeshCommunicator { public: /// Constructor MPIMeshCommunicator(); /// Destructor ~MPIMeshCommunicator(); /// Broadcast mesh to all processes void broadcast(const Mesh& mesh); /// Receive mesh void receive(Mesh& mesh); /// Broadcast MeshFunction to all processes void broadcast(const MeshFunction<unsigned int>& mesh_function); /// Receive MeshFunction void receive(MeshFunction<unsigned int>& mesh_function); };}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?