66 int nr = fGradient.
size();
69 for(
int i = 0; i<nr; i++)
71 f[0] += (STATE)(pt[i] - fCenter[i])*falphaK*fGradient[i];
virtual int NFunctions() const
Returns number of functions.
virtual void Execute(const TPZVec< REAL > &x, const TPZFMatrix< REAL > &axes, TPZVec< STATE > &f, TPZFMatrix< STATE > &df)
Execute method receiving axes. It is used in shape functions.
TPZManVector< STATE, 3 > fGradient
Implements a function. Utility.
TPZGradient & operator=(const TPZGradient ©)
virtual int PolynomialOrder() const
Polynomial order of this function.
int64_t size() const
Returns the number of elements of the vector.
#define DebugStop()
Returns a message to user put a breakpoint in.
void SetData(TPZManVector< REAL, 3 > ¢er, TPZManVector< STATE, 3 > &grad, STATE u0, STATE alphak)
virtual void Execute(const TPZVec< REAL > &pt, TPZVec< STATE > &f)
Simpler version of Execute method which does not compute function derivatives.
TPZManVector< REAL, 3 > fCenter
virtual void Execute(const TPZVec< REAL > &x, TPZVec< STATE > &f, TPZFMatrix< STATE > &df)
Performs function computation.
virtual void Execute(const TPZVec< REAL > &x, REAL ftime, TPZVec< STATE > &f, TPZFMatrix< STATE > &gradf)
Performs time dependent function computation.