clog_comm.java
来自「MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程」· Java 代码 · 共 35 行
JAVA
35 行
import java.io.*;import java.awt.*;import java.util.*;import com.sun.java.swing.*;class CLOG_COMM { static final int size = (4 * 4); int etype; // type of communicator creation int parent; // parent communicator int newcomm; // new communicator int srcloc; // id of source location void read (DataInputStream in) { try { etype = in.readInt (); parent = in.readInt (); newcomm = in.readInt (); srcloc = in.readInt (); } catch (IOException x) { System.out.println ("IOException in reading CLOG_COMM."); return; } } public static int getSize () {return size;} public String toString () { return ("CLOG_COMM [etype=" + etype + ", pt=" + parent + ", newcomm=" + newcomm + " srcloc=" + srcloc + ", size" + size + "]"); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?