gthd_elems[ gthd_idx++ ] = cptID.rank;
gthd_elems[ gthd_idx++ ] = cptID.thd;
}
// Create ProcessThreadViewMap
YCoordMap wthd_viewmap;
col_titles = new String[] {"world_rank", "thread"};
wthd_viewmap = new YCoordMap( num_rows, num_cols4wthd,
"Process-Thread View",
col_titles, wthd_elems, null );
ycoordmap_list.add( wthd_viewmap );
// Create CommunicatorThreadViewMap
YCoordMap gthd_viewmap;
col_titles = new String[] {"commID", "comm_rank", "thread"};
gthd_viewmap = new YCoordMap( num_rows, num_cols4gthd,
"Communicator-Thread View",
col_titles, gthd_elems, null );
ycoordmap_list.add( gthd_viewmap );
}
else { // if ( max_thread_count > 1 )
int world_elems[], comm_elems[];
int num_cols4world, num_cols4comm;
int world_idx, comm_idx;
// world_elems[] has 2 columns: lineID -> (wrank)
num_cols4world = 2;
world_idx = 0;
world_elems = new int[ num_rows * num_cols4world ];
// comm_elems[] has 3 columns: lineID -> (icomm,rank)
num_cols4comm = 3;
comm_idx = 0;
comm_elems = new int[ num_rows * num_cols4comm ];
// Setting the XXXX_elems[]
cptID_itr = super.values().iterator();
while ( cptID_itr.hasNext() ) {
cptID = (CommProcThdID) cptID_itr.next();
world_elems[ world_idx++ ] = cptID.gthdLineID;
world_elems[ world_idx++ ] = cptID.wrank;
comm_elems[ comm_idx++ ] = cptID.gthdLineID;
comm_elems[ comm_idx++ ] = cptID.icomm;
comm_elems[ comm_idx++ ] = cptID.rank;
}
// Create ProcessViewMap
YCoordMap world_viewmap;
col_titles = new String[] {"world_rank"};
world_viewmap = new YCoordMap( num_rows, num_cols4world,
"Process View",
col_titles, world_elems, null );
ycoordmap_list.add( world_viewmap );
// Create CommunicatorViewMap
YCoordMap comm_viewmap;
col_titles = new String[] {"commID", "comm_rank"};
comm_viewmap = new YCoordMap( num_rows, num_cols4comm,
"Communicator View",
col_titles, comm_elems, null );
ycoordmap_list.add( comm_viewmap );
} // Endof if ( max_thread_count > 1 )