00001 /* 00002 BSPonMPI. This is an implementation of the BSPlib standard on top of MPI 00003 Copyright (C) 2006 Wijnand J. Suijlen 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 00019 You may contact me via electronic mail: 00020 wjsuijle@users.sourceforge.net 00021 or snail mail: 00022 W.J. Suijlen 00023 Kraaiheidelaan 10 00024 2803 VP Gouda 00025 The Netherlands 00026 */ 00027 00033 #include "bsp_reqtable.h" 00034 #include "bsp_alloc.h" 00035 #include "bsp_delivtable.h" 00036 00037 00043 void 00044 requestTable_execute (const ExpandableTable * restrict table, ExpandableTable * restrict deliv) 00045 { 00046 ReqElement * restrict element; 00047 int i, j; 00048 00049 for (i = 0; i < table->nprocs; i++) 00050 { 00051 element = (ReqElement *) table->data + i * table->rows; 00052 for (j = 0; j < table->count[i]; j++) 00053 deliveryTable_pushPut(deliv, i, element[j].dst, 00054 element[j].src+element[j].offset, element[j].size ); 00055 } 00056 }