Error for C code in Moose #16357
-
Dear All for help I modified the code as follows: #include "PFFracBulkRateMaterial.h" registerMooseObject("PhaseFieldApp", PFFracBulkRateMaterial); template<> return params; PFFracBulkRateMaterial::PFFracBulkRateMaterial(const InputParameters & parameters) : void void
void #include "Material.h" /**
class PFFracBulkRateMaterial; template<> class PFFracBulkRateMaterial : public Material protected:
///Input parameter for homogeneous gc ///Material property where the gc values are stored private: }; I compiled my code in phase field model. I received the error as follows: /projects/moose/modules/phase_field/src/materials/PFFracBulkRateMaterial.C: In constructor 'PFFracBulkRateMaterial::PFFracBulkRateMaterial(const InputParameters&)': Could everyone help to correct this error ? i really appreciate it . Kind regards, Toan |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
addParam needs a type: ie. Also no semicolon is needed after the constructor |
Beta Was this translation helpful? Give feedback.
addParam needs a type: ie.
params.addParam<FunctionName>("function", "Function describing energy release rate type parameter distribution");
Also no semicolon is needed after the constructor
_function_prop(isParamValid("function") ? &getFunction("function") : NULL)