⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpimeshcommunicator.h

📁 Dolfin provide a high-performance linear algebra library
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -