/[escript]/trunk/dudley/src/Assemble_CopyElementData.cpp
ViewVC logotype

Diff of /trunk/dudley/src/Assemble_CopyElementData.cpp

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

trunk/finley/src/finleyC/Assemble_CopyElementData.c revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC trunk/finley/src/Assemble_CopyElementData.c revision 1028 by gross, Wed Mar 14 00:15:24 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   ******************************************************************************   ************************************************************
3   *                                                                            *   *          Copyright 2006 by ACcESS MNRF                   *
4   *       COPYRIGHT  ACcESS 2003,2004,2005 -  All Rights Reserved              *   *                                                          *
5   *                                                                            *   *              http://www.access.edu.au                    *
6   * This software is the property of ACcESS. No part of this code              *   *       Primary Business: Queensland, Australia            *
7   * may be copied in any form or by any means without the expressed written    *   *  Licensed under the Open Software License version 3.0    *
8   * consent of ACcESS.  Copying, use or modification of this software          *   *     http://www.opensource.org/licenses/osl-3.0.php       *
9   * by any unauthorised person is illegal unless that person has a software    *   *                                                          *
10   * license agreement with ACcESS.                                             *   ************************************************************
  *                                                                            *  
  ******************************************************************************  
11  */  */
12  /**************************************************************/  /**************************************************************/
13    
# Line 31  Line 29 
29    
30    
31  void Finley_Assemble_CopyElementData(Finley_ElementFile* elements,escriptDataC* out,escriptDataC* in) {  void Finley_Assemble_CopyElementData(Finley_ElementFile* elements,escriptDataC* out,escriptDataC* in) {
32      if (elements==NULL) return;      dim_t n,q, numElements, numQuad;
     dim_t n,q;  
     dim_t numElements=elements->numElements;  
     dim_t numQuad=elements->ReferenceElement->numQuadNodes;  
33      dim_t numComps=getDataPointSize(out);      dim_t numComps=getDataPointSize(out);
34      double *in_array,*out_array;      double *in_array,*out_array;
35      Finley_resetError();      Finley_resetError();
36    
37        if (elements==NULL) return;
38        numElements=elements->numElements;
39        numQuad=elements->ReferenceElement->numQuadNodes;
40    
41      /* check out and in */      /* check out and in */
42      if (numComps!=getDataPointSize(in)) {      if (numComps!=getDataPointSize(in)) {
43         Finley_setError(TYPE_ERROR,"__FILE__: number of components of input and output Data do not match.");         Finley_setError(TYPE_ERROR,"__FILE__: number of components of input and output Data do not match.");

Legend:
Removed from v.155  
changed lines
  Added in v.1028

  ViewVC Help
Powered by ViewVC 1.1.26