mpi.h
来自「利用C」· C头文件 代码 · 共 37 行
H
37 行
// 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 + =
减小字号Ctrl + -
显示快捷键?