[ADKernel][Custom Kernel Problem][adCoupledGradient error] #16406
-
Dear Moose users, I am trying to make a simple ADKernel in moose application. But I have a problem with adCoupledGradient term! When I am trying to compile it, the following error has pop up.In file included from /opt/moose/moose/scripts/../libmesh/installed/include/metaphysicl/dualnumberarray.h:32:0, I can't understand what's this error... How can I fix this error? If I eliminate adCoupledGradient terms, the kernel works fine. The following is .c and .h file of my custom ADKernel. #pragma once #include "ADKernel.h" class ChargeT; template <> class ChargeT : public ADKernel ChargeT(const InputParameters & parameters); protected: const ADVariableValue & _EP; Real _z; const Real _F; const ADVariableGradient & _grad_EP; };#include "ChargeT.h" registerMooseObject("corrosionApp",ChargeT); template<> params.addRequiredParam("Charge", "Charge of chemical species"); return params; ChargeT::ChargeT(const InputParameters & parameters)
{ ADReal |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Never mind! I found my mistake in here |
Beta Was this translation helpful? Give feedback.
-
was probably getParam and addParam missing their template specialization |
Beta Was this translation helpful? Give feedback.
was probably getParam and addParam missing their template specialization