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

📄 mpi.h

📁 利用C
💻 H
字号:
// Copyright (C) 2007 Magnus Vikstrøm.// Licensed under the GNU LGPL Version 2.1.//// Modified by Garth N. Wells, 2008.//// First added:  2007-11-30// Last changed: 2008-01-07#ifndef __MPI_helper_H#define __MPI_helper_Hnamespace dolfin{  /// This class provides utility functions for easy access of the number of   /// processes and current process number.    class MPI  {  public:    /// Return proccess number    static uint processNumber();    /// Return number of processes    static uint numProcesses();    /// Determine whether we should broadcast (based on current parallel policy)    static bool broadcast();    /// Determine whether we should receive (based on current parallel policy)    static bool receive();  };}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -