/[escript]/branches/domexper/dudley/src/NodeFile_copyTable.c
ViewVC logotype

Diff of /branches/domexper/dudley/src/NodeFile_copyTable.c

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

revision 782 by bcumming, Tue Jul 18 00:47:47 2006 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
1  /*  
2   ************************************************************  /* $Id$ */
3   *          Copyright 2006 by ACcESS MNRF                   *  
4   *                                                          *  /*******************************************************
5   *              http://www.access.edu.au                    *   *
6   *       Primary Business: Queensland, Australia            *   *           Copyright 2003-2007 by ACceSS MNRF
7   *  Licensed under the Open Software License version 3.0    *   *       Copyright 2007 by University of Queensland
8   *     http://www.opensource.org/licenses/osl-3.0.php       *   *
9   *                                                          *   *                http://esscc.uq.edu.au
10   ************************************************************   *        Primary Business: Queensland, Australia
11  */   *  Licensed under the Open Software License version 3.0
12     *     http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16  /**************************************************************/  /**************************************************************/
17    
# Line 20  Line 23 
23    
24  /**************************************************************/  /**************************************************************/
25    
 /*   Author: gross@access.edu.au */  
 /*   Version: $Id$ */  
   
 /**************************************************************/  
   
26  #include "NodeFile.h"  #include "NodeFile.h"
27    
28  /**************************************************************/  /**************************************************************/
# Line 33  void Finley_NodeFile_copyTable(int offse Line 31  void Finley_NodeFile_copyTable(int offse
31      int i,n;      int i,n;
32      /* check dimension and file size */      /* check dimension and file size */
33      if (out->numDim!=in->numDim) {      if (out->numDim!=in->numDim) {
34          Finley_setError(TYPE_ERROR,"__FILE__: dimensions of node files don't match");          Finley_setError(TYPE_ERROR,"Finley_NodeFile_copyTable: dimensions of node files don't match");
35      }      }
36      if (out->numNodes<in->numNodes+offset) {      if (out->numNodes<in->numNodes+offset) {
37          Finley_setError(MEMORY_ERROR,"__FILE__: node table is too small.");          Finley_setError(MEMORY_ERROR,"Finley_NodeFile_copyTable: node table is too small.");
38      }      }
39      if (Finley_noError()) {      if (Finley_noError()) {
40         #pragma omp parallel for private(i,n) schedule(static)         #pragma omp parallel for private(i,n) schedule(static)
41         for(n=0;n<in->numNodes;n++) {         for(n=0;n<in->numNodes;n++) {
42            out->Id[offset+n]=in->Id[n]+idOffset;            out->Id[offset+n]=in->Id[n]+idOffset;
43            out->Tag[offset+n]=in->Tag[n];            out->Tag[offset+n]=in->Tag[n];
44            out->degreeOfFreedom[offset+n]=in->degreeOfFreedom[n]+dofOffset;            out->globalDegreesOfFreedom[offset+n]=in->globalDegreesOfFreedom[n]+dofOffset;
           out->reducedDegreeOfFreedom[offset+n]=in->reducedDegreeOfFreedom[n]+dofOffset;  
           out->toReduced[offset+n]=in->toReduced[n]+dofOffset;  
 #ifdef PASO_MPI  
                     out->Dom[offset+n]=in->Dom[n];  
 #endif  
45            for(i=0;i<out->numDim;i++) out->Coordinates[INDEX2(i,offset+n,out->numDim)]=in->Coordinates[INDEX2(i,n,in->numDim)];            for(i=0;i<out->numDim;i++) out->Coordinates[INDEX2(i,offset+n,out->numDim)]=in->Coordinates[INDEX2(i,n,in->numDim)];
46         }         }
47      }      }
48  }  }
 /*  
 * $Log$  
 * Revision 1.2  2005/09/15 03:44:23  jgs  
 * Merge of development branch dev-02 back to main trunk on 2005-09-15  
 *  
 * Revision 1.1.1.1.6.1  2005/09/07 06:26:20  gross  
 * the solver from finley are put into the standalone package paso now  
 *  
 * Revision 1.1.1.1  2004/10/26 06:53:57  jgs  
 * initial import of project esys2  
 *  
 * Revision 1.1.1.1  2004/06/24 04:00:40  johng  
 * Initial version of eys using boost-python.  
 *  
 *  
 */  

Legend:
Removed from v.782  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26