/[escript]/branches/doubleplusgood/paso/src/SharedComponents.cpp
ViewVC logotype

Diff of /branches/doubleplusgood/paso/src/SharedComponents.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1313 by ksteube, Tue Sep 25 01:44:26 2007 UTC revision 2881 by jfenwick, Thu Jan 28 02:03:15 2010 UTC
# Line 1  Line 1 
1    
 /* $Id$ */  
   
2  /*******************************************************  /*******************************************************
3   *  *
4   *           Copyright 2003-2007 by ACceSS MNRF  * Copyright (c) 2003-2010 by University of Queensland
5   *       Copyright 2007 by University of Queensland  * Earth Systems Science Computational Center (ESSCC)
6   *  * http://www.uq.edu.au/esscc
7   *                http://esscc.uq.edu.au  *
8   *        Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
9   *  Licensed under the Open Software License version 3.0  * Licensed under the Open Software License version 3.0
10   *     http://www.opensource.org/licenses/osl-3.0.php  * http://www.opensource.org/licenses/osl-3.0.php
11   *  *
12   *******************************************************/  *******************************************************/
13    
14    
15  /**************************************************************/  /**************************************************************/
16    
# Line 20  Line 19 
19    
20  /**************************************************************/  /**************************************************************/
21    
22  /* Author: gross@access.edu.au */  /* Author: Lutz Gross, l.gross@uq.edu.au */
23    
24  /**************************************************************/  /**************************************************************/
25    
# Line 33  Line 32 
32    
33  /**************************************************************/  /**************************************************************/
34    
35  Paso_SharedComponents* Paso_SharedComponents_alloc(dim_t numNeighbors,  Paso_SharedComponents* Paso_SharedComponents_alloc(dim_t local_length,
36                                                       dim_t numNeighbors,
37                                                     Paso_MPI_rank* neighbor,                                                     Paso_MPI_rank* neighbor,
38                                                     index_t* shared,                                                     index_t* shared,
39                                                     index_t* offsetInShared,                                                     index_t* offsetInShared,
# Line 46  Paso_SharedComponents* Paso_SharedCompon Line 46  Paso_SharedComponents* Paso_SharedCompon
46    Paso_resetError();    Paso_resetError();
47    out=MEMALLOC(1,Paso_SharedComponents);    out=MEMALLOC(1,Paso_SharedComponents);
48    if (!Paso_checkPtr(out)) {    if (!Paso_checkPtr(out)) {
49          out->local_length=local_length*m;
50        out->mpi_info = Paso_MPIInfo_getReference(mpi_info);        out->mpi_info = Paso_MPIInfo_getReference(mpi_info);
51        out->numNeighbors=numNeighbors;        out->numNeighbors=numNeighbors;
52        out->neighbor=MEMALLOC(out->numNeighbors,Paso_MPI_rank);        out->neighbor=MEMALLOC(out->numNeighbors,Paso_MPI_rank);

Legend:
Removed from v.1313  
changed lines
  Added in v.2881

  ViewVC Help
Powered by ViewVC 1.1.26