1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

_var -> var_

This commit is contained in:
ferben 2019-11-15 13:26:24 +00:00
parent 9f75065205
commit 7f06c40107

View File

@ -181,13 +181,13 @@ public:
assert( nd <= in.Grid()->Nd() ); assert( nd <= in.Grid()->Nd() );
conformable( in, out ); conformable( in, out );
out = ( ( Real ) ( 2 * nd ) ) * in; out = ( ( Real ) ( 2 * nd ) ) * in;
Field _tmp(in.Grid()); Field tmp_(in.Grid());
typedef typename GaugeField::vector_type vCoeff_t; typedef typename GaugeField::vector_type vCoeff_t;
for (int mu = 0 ; mu < nd ; mu++) for (int mu = 0 ; mu < nd ; mu++)
{ {
out -= U[mu] * Cshift( in, mu, 1); out -= U[mu] * Cshift( in, mu, 1);
_tmp = adj( U[mu] ) * in; tmp_ = adj( U[mu] ) * in;
out -= Cshift(_tmp,mu,-1); out -= Cshift(tmp_,mu,-1);
} }
} }
@ -202,13 +202,13 @@ public:
template<typename Field> template<typename Field>
class Laplacian3DHerm : public LinearFunction<Field> { class Laplacian3DHerm : public LinearFunction<Field> {
public: public:
OperatorFunction<Field> & _poly; OperatorFunction<Field> & poly_;
LinearOperatorBase<Field> &_Linop; LinearOperatorBase<Field> &Linop_;
Laplacian3DHerm(OperatorFunction<Field> & poly,LinearOperatorBase<Field>& linop) Laplacian3DHerm(OperatorFunction<Field> & poly,LinearOperatorBase<Field>& linop)
: _poly{poly}, _Linop{linop} {} : poly_{poly}, Linop_{linop} {}
void operator()(const Field& in, Field& out) void operator()(const Field& in, Field& out)
{ {
_poly(_Linop,in,out); poly_(Linop_,in,out);
} }
}; };