aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364>2000-01-19 10:36:45 +0000
committerallen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364>2000-01-19 10:36:45 +0000
commit889886b91f72873111c6c4501e9c39c9f8f5d49f (patch)
tree0c0c36515e81dac01805989018b758710bd95961
parentf6c9be7569c6bdc96ade9d9562f58cb2c587deab (diff)
Minor bug fixes
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@152 b61c5cb5-eaca-4651-9a7a-d64986f99364
-rw-r--r--src/SetupPGV.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/SetupPGV.c b/src/SetupPGV.c
index b66a9a2..b1187d2 100644
--- a/src/SetupPGV.c
+++ b/src/SetupPGV.c
@@ -145,6 +145,9 @@ pGExtras *pugh_SetupPGExtras(int dim,
if(!error)
{
+
+ this->dim = dim;
+
pugh_SetupPGExtrasSizes (dim, periodic, stagger, sh, nghosts,
total_procs, nprocs, this_proc,this);
pugh_SetupPGExtrasOwnership(dim, periodic, stagger, sh, nghosts,
@@ -161,7 +164,7 @@ pGExtras *pugh_SetupPGExtras(int dim,
@date Fri Nov 5 11:32:12 1999
@author Tom Goodale
@desc
- Create a connectivity struvcture containing
+ Create a connectivity structure containing
all the details of processor connectivities
for this processor layout.
@enddesc
@@ -187,7 +190,7 @@ pConnectivity *pugh_SetupConnectivity(int dim,
if(this)
{
this->nprocs = (int *)malloc(dim*sizeof(int));
- this->neighbours = (int **)sizeof(total_procs*sizeof(int *));
+ this->neighbours = (int **)malloc(total_procs*sizeof(int *));
if(this->nprocs && this->neighbours)
{
@@ -1170,7 +1173,7 @@ pGA *SetupPGA(void *parent,
{
pGA *this;
int i;
- this = (pGA *)malloc(sizeof(pGA *));
+ this = (pGA *)malloc(sizeof(pGA));
if(this)
{
@@ -1216,9 +1219,9 @@ pGA *SetupPGA(void *parent,
this->buffer_sz[i] = 0;
this->send_buffer[i] = NULL;
this->recv_buffer[i] = NULL;
- this->docomm[i] = 0;
+ this->docomm[i] = 0;
#ifdef MPI
- /* Null my send and recieve requests */
+ /* Null my send and receive requests */
this->sreq[i] = MPI_REQUEST_NULL;
this->rreq[i] = MPI_REQUEST_NULL;
#endif