-
Notifications
You must be signed in to change notification settings - Fork 1k
Protected Class #28295
Replies: 1 comment · 13 replies
-
Hello A material property in moose is an array (indexed by quadrature point) of the type of the property. So here, you have an array of std::vector. And you are trying to cast it into a vector, with this value() function which does not exist for arrays. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Next
|
Beta Was this translation helpful? Give feedback.
All reactions
-
first one is a missing symbol, maybe a comma _acc_slip[qp] is not a vector. |
Beta Was this translation helpful? Give feedback.
All reactions
-
This is my header file now. @GiudGiud
And below is a snippet of my constructor
|
Beta Was this translation helpful? Give feedback.
All reactions
-
I started all over again and this is the only error I have now when I compile
What is the best way to do this?
|
Beta Was this translation helpful? Give feedback.
All reactions
-
The first error is one too many comma in the initializer list The second error is tryin g to resize a double because you are already accessing into the array. You don't need to resize the components of the array, just the array |
Beta Was this translation helpful? Give feedback.
-
Check these boxes if you have followed the posting rules.
Question
What is the right way to get a value from the protected class in MOOSE if it's possible.
I added this line in one of the source codes
I get this error when I try to compile
Any suggestions
Beta Was this translation helpful? Give feedback.
All reactions