/[escript]/trunk/dudley/src/ElementFile_setNodeRange.c
ViewVC logotype

Contents of /trunk/dudley/src/ElementFile_setNodeRange.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3259 - (show annotations)
Mon Oct 11 01:48:14 2010 UTC (9 years, 3 months ago) by jfenwick
File MIME type: text/plain
File size: 1583 byte(s)
Merging dudley and scons updates from branches

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14 /**************************************************************/
15 /* */
16 /* Dudley: ElementFile */
17 /* */
18 /* returns the maximum and minimum node reference number of nodes describing the elements:; */
19 /* */
20 /* */
21 /**************************************************************/
22
23 #include "ElementFile.h"
24 #include "Util.h"
25
26 /**************************************************************/
27
28 void Dudley_ElementFile_setNodeRange(index_t * min_id, index_t * max_id, Dudley_ElementFile * in)
29 {
30 if (in != NULL)
31 {
32 *min_id = Dudley_Util_getMinInt(in->numNodes, in->numElements, in->Nodes);
33 *max_id = Dudley_Util_getMaxInt(in->numNodes, in->numElements, in->Nodes);
34 }
35 else
36 {
37 *min_id = INDEX_T_MAX;
38 *max_id = -INDEX_T_MAX;
39 }
40 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26