/[escript]/trunk/finley/src/NodeFile_setCoordinates.c
ViewVC logotype

Annotation of /trunk/finley/src/NodeFile_setCoordinates.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 471 - (hide annotations)
Fri Jan 27 01:33:02 2006 UTC (13 years, 9 months ago) by jgs
File MIME type: text/plain
File size: 2819 byte(s)
reorganise finley src tree to remove inc dir and src/finley directory

1 jgs 150 /*
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 jgs 82 /**************************************************************/
16    
17     /* Finley: Mesh: NodeFile */
18    
19     /* copies the array newX into self->coordinates */
20    
21     /**************************************************************/
22    
23     /* Author: gross@access.edu.au */
24     /* Version: $Id$ */
25    
26     /**************************************************************/
27    
28     #include "NodeFile.h"
29     #include "Util.h"
30    
31     /**************************************************************/
32    
33    
34     void Finley_NodeFile_setCoordinates(Finley_NodeFile* self,escriptDataC* newX) {
35 jgs 150 char error_msg[LenErrorMsg_MAX];
36 jgs 82 int n;
37     if (getDataPointSize(newX)!=self->numDim) {
38 jgs 150 sprintf(error_msg,"__FILE__: dimension of new coordinates has to be %d.",self->numDim);
39     Finley_setError(VALUE_ERROR,error_msg);
40 jgs 82 } else if (! numSamplesEqual(newX,1,self->numNodes)) {
41 jgs 150 sprintf(error_msg,"__FILE__: number of give nodes must to be %d.",self->numNodes);
42     Finley_setError(VALUE_ERROR,error_msg);
43 jgs 82 } else {
44     #pragma omp parallel for private(n) schedule(static)
45     for (n=0;n<self->numNodes;n++)
46     Finley_copyDouble(self->numDim,getSampleData(newX,n),&(self->Coordinates[INDEX2(0,n,self->numDim)]));
47     }
48     }
49     /*
50     * $Log$
51 jgs 150 * Revision 1.2 2005/09/15 03:44:23 jgs
52     * Merge of development branch dev-02 back to main trunk on 2005-09-15
53 jgs 82 *
54 jgs 150 * Revision 1.1.1.1.6.1 2005/09/07 06:26:20 gross
55     * the solver from finley are put into the standalone package paso now
56     *
57     * Revision 1.1.1.1 2004/10/26 06:53:57 jgs
58     * initial import of project esys2
59     *
60 jgs 82 * Revision 1.5 2004/08/26 12:03:52 gross
61     * Some other bug in Finley_Assemble_gradient fixed.
62     *
63     * Revision 1.4 2004/07/21 05:00:54 gross
64     * name changes in DataC
65     *
66     * Revision 1.3 2004/07/02 04:21:13 gross
67     * Finley C code has been included
68     *
69     * Revision 1.2 2004/07/01 23:54:32 gross
70     * used DataC now
71     *
72     * Revision 1.1.1.1 2004/06/24 04:00:40 johng
73     * Initial version of eys using boost-python.
74     *
75     *
76     */

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26