/[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 82 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 150 by jgs, Thu Sep 15 03:44:45 2005 UTC
# Line 1  Line 1 
1  /* $Id$ */  /*
2     ******************************************************************************
3     *                                                                            *
4     *       COPYRIGHT  ACcESS 2003,2004,2005 -  All Rights Reserved              *
5     *                                                                            *
6     * This software is the property of ACcESS. No part of this code              *
7     * may be copied in any form or by any means without the expressed written    *
8     * consent of ACcESS.  Copying, use or modification of this software          *
9     * by any unauthorised person is illegal unless that person has a software    *
10     * license agreement with ACcESS.                                             *
11     *                                                                            *
12     ******************************************************************************
13    */
14    
15  /**************************************************************/  /**************************************************************/
16    
17  /*   Finley: Mesh: NodeFile */  /*   Finley: Mesh: NodeFile */
# Line 9  Line 22 
22    
23  /**************************************************************/  /**************************************************************/
24    
 /*   Copyrights by ACcESS Australia 2003/04 */  
25  /*   Author: gross@access.edu.au */  /*   Author: gross@access.edu.au */
26  /*   Version: $Id$ */  /*   Version: $Id$ */
27    
28  /**************************************************************/  /**************************************************************/
29    
 #include "Finley.h"  
30  #include "NodeFile.h"  #include "NodeFile.h"
31    
32  /**************************************************************/  /**************************************************************/
# Line 24  void Finley_NodeFile_copyTable(int offse Line 35  void Finley_NodeFile_copyTable(int offse
35      int i,n;      int i,n;
36      /* check dimension and file size */      /* check dimension and file size */
37      if (out->numDim!=in->numDim) {      if (out->numDim!=in->numDim) {
38          Finley_ErrorCode=TYPE_ERROR;          Finley_setError(TYPE_ERROR,"__FILE__: dimensions of node files don't match");
         sprintf(Finley_ErrorMsg,"dimensions of node files don't match");  
39      }      }
40      if (out->numNodes<in->numNodes+offset) {      if (out->numNodes<in->numNodes+offset) {
41          Finley_ErrorCode=MEMORY_ERROR;          Finley_setError(MEMORY_ERROR,"__FILE__: node table is too small.");
         sprintf(Finley_ErrorMsg,"node table is too small.");  
42      }      }
43      if (Finley_ErrorCode==NO_ERROR) {      if (Finley_noError()) {
44         #pragma omp parallel for private(i,n) schedule(static)         #pragma omp parallel for private(i,n) schedule(static)
45         for(n=0;n<in->numNodes;n++) {         for(n=0;n<in->numNodes;n++) {
46            out->Id[offset+n]=in->Id[n]+idOffset;            out->Id[offset+n]=in->Id[n]+idOffset;
# Line 45  void Finley_NodeFile_copyTable(int offse Line 54  void Finley_NodeFile_copyTable(int offse
54  }  }
55  /*  /*
56  * $Log$  * $Log$
57  * Revision 1.1  2004/10/26 06:53:57  jgs  * Revision 1.2  2005/09/15 03:44:23  jgs
58  * Initial revision  * Merge of development branch dev-02 back to main trunk on 2005-09-15
59    *
60    * Revision 1.1.1.1.6.1  2005/09/07 06:26:20  gross
61    * the solver from finley are put into the standalone package paso now
62    *
63    * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
64    * initial import of project esys2
65  *  *
66  * Revision 1.1.1.1  2004/06/24 04:00:40  johng  * Revision 1.1.1.1  2004/06/24 04:00:40  johng
67  * Initial version of eys using boost-python.  * Initial version of eys using boost-python.

Legend:
Removed from v.82  
changed lines
  Added in v.150

  ViewVC Help
Powered by ViewVC 1.1.26