/[escript]/trunk-mpi-branch/finley/src/NodeFile_copyTable.c
ViewVC logotype

Diff of /trunk-mpi-branch/finley/src/NodeFile_copyTable.c

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

revision 1222 by ksteube, Tue Feb 13 22:56:57 2007 UTC revision 1223 by gross, Fri Aug 3 02:40:39 2007 UTC
# Line 33  void Finley_NodeFile_copyTable(int offse Line 33  void Finley_NodeFile_copyTable(int offse
33      int i,n;      int i,n;
34      /* check dimension and file size */      /* check dimension and file size */
35      if (out->numDim!=in->numDim) {      if (out->numDim!=in->numDim) {
36          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");
37      }      }
38      if (out->numNodes<in->numNodes+offset) {      if (out->numNodes<in->numNodes+offset) {
39          Finley_setError(MEMORY_ERROR,"__FILE__: node table is too small.");          Finley_setError(MEMORY_ERROR,"Finley_NodeFile_copyTable: node table is too small.");
40      }      }
41      if (Finley_noError()) {      if (Finley_noError()) {
42         #pragma omp parallel for private(i,n) schedule(static)         #pragma omp parallel for private(i,n) schedule(static)
43         for(n=0;n<in->numNodes;n++) {         for(n=0;n<in->numNodes;n++) {
44            out->Id[offset+n]=in->Id[n]+idOffset;            out->Id[offset+n]=in->Id[n]+idOffset;
45            out->Tag[offset+n]=in->Tag[n];            out->Tag[offset+n]=in->Tag[n];
46            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  
47            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)];
48         }         }
49      }      }
50  }  }
 /*  
 * $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.1222  
changed lines
  Added in v.1223

  ViewVC Help
Powered by ViewVC 1.1.26