Debian Codegraph @

dune/uggrid/parallel/ddd/mgr/attr.cc

raw
1 // SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2 // SPDX-License-Identifier: LGPL-2.1-or-later
3 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4 // vi: set et ts=4 sw=2 sts=2:
5 /****************************************************************************/
6 /* */
7 /* File: attr.c */
8 /* */
9 /* Purpose: object attr management for ddd */
10 /* */
11 /* Author: Klaus Birken */
12 /* Rechenzentrum Uni Stuttgart */
13 /* Universitaet Stuttgart */
14 /* Allmandring 30 */
15 /* 70550 Stuttgart */
16 /* internet: [email protected] */
17 /* */
18 /* History: 94/04/25 kb begin */
19 /* 96/01/08 kb renamed range to attr */
20 /* */
21 /* Remarks: */
22 /* */
23 /****************************************************************************/
24
25 /****************************************************************************/
26 /* */
27 /* include files */
28 /* system include files */
29 /* application include files */
30 /* */
31 /****************************************************************************/
32
33 /* standard C library */
34 #include <config.h>
35 #include <cstdlib>
36 #include <cstdio>
37
38 #include <dune/uggrid/parallel/ddd/dddi.h>
39
40 START_UGDIM_NAMESPACE
41
42 /****************************************************************************/
43 /* */
44 /* defines in the following order */
45 /* */
46 /* compile time constants defining static data size (i.e. arrays) */
47 /* other constants */
48 /* macros */
49 /* */
50 /****************************************************************************/
51
52
53
54
55 /****************************************************************************/
56 /* */
57 /* data structures */
58 /* */
59 /****************************************************************************/
60
61
62 /****************************************************************************/
63 /* */
64 /* definition of static variables */
65 /* */
66 /****************************************************************************/
67
68
69
70
71
72 /****************************************************************************/
73 /* */
74 /* routines */
75 /* */
76 /****************************************************************************/
77
78
79 /* not allowed. do this only on object construction.
80
81 960603 kb enabled DDD_AttrSet, due to ug has to use it.
82 (TODO remove this dangerous exception!)
83 */
84
85 void DDD_AttrSet (DDD_HDR hdr, DDD_ATTR attr)
86 {
87 OBJ_ATTR(hdr) = attr;
88
89 /* TODO: does attr has to be told the other copies via communication?? */
90 }
91
92 END_UGDIM_NAMESPACE