This file is indexed.

/usr/include/rheolef/form_vf_expr_ops_v0.h is in librheolef-dev 6.5-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
#ifndef _RHEOLEF_FORM_VF_EXPR_OPS_V0_H
#define _RHEOLEF_FORM_VF_EXPR_OPS_V0_H
//
// This file is part of Rheolef.
//
// Copyright (C) 2000-2009 Pierre Saramito 
//
// Rheolef is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
// 
// Rheolef is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Rheolef; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
// 
// ==========================================================================
// 
// form_vf: template expressions
//
// author: Pierre.Saramito@imag.fr
//
// date: 20 march 2011
//
#include "rheolef/form_vf_expr.h"
namespace rheolef {

#ifdef TO_CLEAN
// ---------------------------------
// u*v
// ---------------------------------
template<class T, class M, class VfTag1>
inline
form_vf_expr<
  form_vf_expr_bf_field<
      details::multiplies
     ,test_basic<T,M,VfTag1>
     ,test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>
    >
  >
operator* (const test_basic<T,M,VfTag1>& x, const test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>& y)
{
  typedef typename details::dual_vf_tag<VfTag1>::type            VfTag2;
  typedef details::multiplies                                    op_t;
  typedef test_basic<T,M,VfTag1>                                 arg1_t;
  typedef test_basic<T,M,VfTag2>                                 arg2_t;
  typedef form_vf_expr_bf_field<op_t, arg1_t, arg2_t>            expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// field_vf_expr*v
// ---------------------------------
template<class Expr1, class T, class M, class VfTag1>
inline
form_vf_expr<
  form_vf_expr_bf_field<
      details::multiplies
     ,field_vf_expr<Expr1,VfTag1>
     ,test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>
    >
  >
operator* (const field_vf_expr<Expr1,VfTag1>& x, const test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>& y)
{
  typedef typename details::dual_vf_tag<VfTag1>::type            VfTag2;
  typedef details::multiplies                                    op_t;
  typedef field_vf_expr<Expr1,VfTag1>                            arg1_t;
  typedef test_basic<T,M,VfTag2>                                 arg2_t;
  typedef form_vf_expr_bf_field<op_t, arg1_t, arg2_t>            expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// vf_expr(u)*vf_expr(v)
// ---------------------------------
template<class Expr1, class Expr2, class VfTag1>
inline
form_vf_expr<
  form_vf_expr_bf_field<
      details::multiplies
     ,field_vf_expr<Expr1,VfTag1>
     ,field_vf_expr<Expr2,typename details::dual_vf_tag<VfTag1>::type>
    >
  >
operator* (const field_vf_expr<Expr1,VfTag1>& x, const field_vf_expr<Expr2,typename details::dual_vf_tag<VfTag1>::type>& y)
{
  typedef typename details::dual_vf_tag<VfTag1>::type            VfTag2;
  typedef details::multiplies                                    op_t;
  typedef field_vf_expr<Expr1,VfTag1>                            arg1_t;
  typedef field_vf_expr<Expr2,VfTag2>                            arg2_t;
  typedef form_vf_expr_bf_field<op_t, arg1_t, arg2_t>            expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// dot(u,v)
// ---------------------------------
template<class T, class M, class VfTag1>
inline
form_vf_expr<
  form_vf_expr_bf_field<
      details::dot_
     ,test_basic<T,M,VfTag1>
     ,test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>
    >
  >
dot (const test_basic<T,M,VfTag1>& x, const test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>& y)
{
  typedef typename details::dual_vf_tag<VfTag1>::type        VfTag2;
  typedef details::dot_                                      op_t;
  typedef test_basic<T,M,VfTag1>                                 arg1_t;
  typedef test_basic<T,M,VfTag2>                                 arg2_t;
  typedef form_vf_expr_bf_field<op_t, arg1_t, arg2_t>            expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// dot(expr(u),v)
// ---------------------------------
template<class Expr, class T, class M, class VfTag1>
inline
form_vf_expr<
  form_vf_expr_bf_field<
      details::dot_
     ,field_vf_expr<Expr,VfTag1>
     ,test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>
    >
  >
dot (const field_vf_expr<Expr,VfTag1>& x, const test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>& y)
{
  typedef typename details::dual_vf_tag<VfTag1>::type            VfTag2;
  typedef details::dot_                                       op_t;
  typedef field_vf_expr<Expr,VfTag1>                             arg1_t;
  typedef test_basic<T,M,VfTag2>                                 arg2_t;
  typedef form_vf_expr_bf_field<op_t, arg1_t, arg2_t>            expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// dot(u,expr(v))
// ---------------------------------
template<class Expr, class T, class M, class VfTag1>
inline
form_vf_expr<
  form_vf_expr_bf_field<
      details::dot_
     ,test_basic<T,M,VfTag1>
     ,field_vf_expr<Expr,typename details::dual_vf_tag<VfTag1>::type>
    >
  >
dot (const test_basic<T,M,VfTag1>& x, const field_vf_expr<Expr,typename details::dual_vf_tag<VfTag1>::type>& y)
{
  typedef typename details::dual_vf_tag<VfTag1>::type            VfTag2;
  typedef details::dot_                                       op_t;
  typedef test_basic<T,M,VfTag1>                                 arg1_t;
  typedef field_vf_expr<Expr,VfTag2>                             arg2_t;
  typedef form_vf_expr_bf_field<op_t, arg1_t, arg2_t>            expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// dot(expr(u),expr(v))
// ---------------------------------
template<class Expr1, class Expr2, class VfTag1>
inline
form_vf_expr<
  form_vf_expr_bf_field<
      details::dot_
     ,field_vf_expr<Expr1,VfTag1>
     ,field_vf_expr<Expr2,typename details::dual_vf_tag<VfTag1>::type>
    >
  >
dot (const field_vf_expr<Expr1,VfTag1>& x, const field_vf_expr<Expr2,typename details::dual_vf_tag<VfTag1>::type>& y)
{
  typedef typename details::dual_vf_tag<VfTag1>::type            VfTag2;
  typedef details::dot_                                          op_t;
  typedef field_vf_expr<Expr1,VfTag1>                            arg1_t;
  typedef field_vf_expr<Expr2,VfTag2>                            arg2_t;
  typedef form_vf_expr_bf_field<op_t, arg1_t, arg2_t>            expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// ddot(u,v)
// ---------------------------------
template<class T, class M, class VfTag1>
inline
form_vf_expr<
  form_vf_expr_bf_field<
      details::ddot_
     ,test_basic<T,M,VfTag1>
     ,test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>
    >
  >
ddot (const test_basic<T,M,VfTag1>& x, const test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>& y)
{
  typedef typename details::dual_vf_tag<VfTag1>::type            VfTag2;
  typedef details::ddot_                                         op_t;
  typedef test_basic<T,M,VfTag1>                                 arg1_t;
  typedef test_basic<T,M,VfTag2>                                 arg2_t;
  typedef form_vf_expr_bf_field<op_t, arg1_t, arg2_t>            expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// ddot(expr,v)
// ---------------------------------
template<class Expr, class T, class M, class VfTag1>
inline
form_vf_expr<
  form_vf_expr_bf_field<
      details::ddot_
     ,field_vf_expr<Expr,VfTag1>
     ,test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>
    >
  >
ddot (const field_vf_expr<Expr,VfTag1>& x, const test_basic<T,M,typename details::dual_vf_tag<VfTag1>::type>& y)
{
  typedef typename details::dual_vf_tag<VfTag1>::type            VfTag2;
  typedef details::ddot_                                         op_t;
  typedef field_vf_expr<Expr,VfTag1>                             arg1_t;
  typedef test_basic<T,M,VfTag2>                                 arg2_t;
  typedef form_vf_expr_bf_field<op_t, arg1_t, arg2_t>            expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// ddot(expr(u),expr(v))
// ---------------------------------
template<class Expr1, class Expr2, class VfTag1>
inline
form_vf_expr<
  form_vf_expr_bf_field<
      details::ddot_
     ,field_vf_expr<Expr1,VfTag1>
     ,field_vf_expr<Expr2,typename details::dual_vf_tag<VfTag1>::type>
    >
  >
ddot (const field_vf_expr<Expr1,VfTag1>& x, const field_vf_expr<Expr2,typename details::dual_vf_tag<VfTag1>::type>& y)
{
  typedef typename details::dual_vf_tag<VfTag1>::type            VfTag2;
  typedef details::ddot_                                         op_t;
  typedef field_vf_expr<Expr1,VfTag1>                            arg1_t;
  typedef field_vf_expr<Expr2,VfTag2>                            arg2_t;
  typedef form_vf_expr_bf_field<op_t, arg1_t, arg2_t>            expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// form_vf_expr +- form_vf_expr
// ---------------------------------
template<class Expr1, class Expr2>
inline
form_vf_expr<
  form_vf_expr_bf<
      details::plus
     ,form_vf_expr<Expr1>
     ,form_vf_expr<Expr2>
    >
  >
operator+ (const form_vf_expr<Expr1>& x, const form_vf_expr<Expr2>& y)
{
  typedef details::plus                                         op_t;
  typedef form_vf_expr<Expr1>                                   arg1_t;
  typedef form_vf_expr<Expr2>                                   arg2_t;
  typedef form_vf_expr_bf<op_t, arg1_t, arg2_t>                 expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
template<class Expr1, class Expr2>
inline
form_vf_expr<
  form_vf_expr_bf<
      details::minus
     ,form_vf_expr<Expr1>
     ,form_vf_expr<Expr2>
    >
  >
operator- (const form_vf_expr<Expr1>& x, const form_vf_expr<Expr2>& y)
{
  typedef details::minus                                        op_t;
  typedef form_vf_expr<Expr1>                                   arg1_t;
  typedef form_vf_expr<Expr2>                                   arg2_t;
  typedef form_vf_expr_bf<op_t, arg1_t, arg2_t>                 expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
// ---------------------------------
// alpha*form_vf_expr
// ---------------------------------
template<class Expr>
inline
form_vf_expr<
  form_vf_expr_uf<
      std::binder1st<std::multiplies<typename Expr::scalar_type> >
     ,form_vf_expr<Expr>
    >
  >
operator* (const typename Expr::scalar_type& x, const form_vf_expr<Expr>& y)
{
  typedef typename Expr::scalar_type                            T;
  typedef std::multiplies<T>                                    raw_fun_t;
  typedef std::binder1st<raw_fun_t>                             fun_t;
  typedef form_vf_expr<Expr>                                    arg_t;
  typedef form_vf_expr_uf<fun_t, arg_t>                         expr_t;
  return form_vf_expr<expr_t>(expr_t(fun_t(raw_fun_t(), x), y));
}
// ---------------------------------
// eta_h*form_vf_expr
// ---------------------------------
template<class T, class M, class Expr>
inline
form_vf_expr<
  form_vf_expr_binded_bf<
    details::multiplies
   ,field_expr_terminal_field<T,M>
   ,form_vf_expr<Expr>
  >
>
operator* (const field_basic<T,M>& x, const form_vf_expr<Expr>& y)
{
  typedef details::multiplies                               op_t;
  typedef field_expr_terminal_field<T,M>                    arg1_t;
  typedef form_vf_expr<Expr>                                arg2_t;
  typedef form_vf_expr_binded_bf<op_t, arg1_t, arg2_t>      expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), arg1_t(x), y));
}
// ---------------------------------
// field_nl_expr*form_vf_expr
// ---------------------------------
template<class Expr1, class Expr2>
inline
form_vf_expr<
  form_vf_expr_binded_bf<
    details::multiplies
   ,field_nonlinear_expr<Expr1>
   ,form_vf_expr<Expr2>
  >
>
operator* (const field_nonlinear_expr<Expr1>& x, const form_vf_expr<Expr2>& y)
{
  typedef details::multiplies                               op_t;
  typedef field_nonlinear_expr<Expr1>                       arg1_t;
  typedef form_vf_expr<Expr2>                               arg2_t;
  typedef form_vf_expr_binded_bf<op_t, arg1_t, arg2_t>      expr_t;
  return form_vf_expr<expr_t>(expr_t(op_t(), x, y));
}
#endif // TO_CLEAN 

} // namespace rheolef
#endif // _RHEOLEF_FORM_VF_EXPR_OPS_V0_H