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

📄 reccoll.java

📁 fortran并行计算包
💻 JAVA
字号:
/* *  (C) 2001 by Argonne National Laboratory *      See COPYRIGHT in top-level directory. *//* *  @author  Anthony Chan */package logformat.clog2;import java.io.*;// Class corresponds to CLOG_Rec_CollEvtpublic class RecColl{    public  static final int RECTYPE  = Const.RecType.COLLEVT;    private static final int BYTESIZE = 4 * 4;    public         Integer  etype;       // type of collective event     public         int      root;        // root of collective op     public         int      comm;        // communicator    public         int      size;        // length in bytes      public int readFromDataStream( DataInputStream in )    {        try {            etype   = new Integer( in.readInt() );            root    = in.readInt();            comm    = in.readInt();            size    = in.readInt();        } catch ( IOException ioerr ) {            ioerr.printStackTrace();            return 0;        }        return BYTESIZE;    }    public int skipBytesFromDataStream( DataInputStream in )    {        try {            in.skipBytes( BYTESIZE );        } catch ( IOException ioerr ) {            ioerr.printStackTrace();            return 0;        }        return BYTESIZE;    }      public String toString()    {        return ( "RecColl"               + "[ etype=" + etype               + ", root=" + root               + ", comm=" +  comm               + ", size=" + size               // + ", BYTESIZE=" + BYTESIZE               + " ]");    }}

⌨️ 快捷键说明

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