custom material object can't be registered #29101
Unanswered
RWTHLHK
asked this question in
Q&A General
Replies: 1 comment 2 replies
-
Hello
which ones? Guillaume |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Check these boxes if you have followed the posting rules.
Question
I developed a custom material object that inherits 2 classes in solid mehcanics. So far I haven't added any new parameters and methods yet. But the i always get the error:
/home/linghao/projects/moose/framework/build/header_symlinks/Registry.h:275:42: error: could not convert 'std::make_unique(_Args&& ...) [with _Tp = ComputePFCFStress; _Args = {const InputParameters&}; __detail::__unique_ptr_t<_Tp> = __detail::__unique_ptr_t<ComputePFCFStress>]()' from 'unique_ptr<ComputePFCFStress,default_delete<ComputePFCFStress>>' to 'unique_ptr<MooseObject,default_delete<MooseObject>>' 275 | return std::make_unique<T>(parameters); | ^ | | | unique_ptr<ComputePFCFStress,default_delete<ComputePFCFStress>> make: *** [/home/linghao/projects/moose/framework/build.mk:151: /home/linghao/projects/isotropic_hardening/build/unity_src/material_Unity.x86_64-conda-linux-gnu.opt.lo] Error 1
I have no idea why this occurs. Can somebody please tell me how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions