-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core] Derive Dof
from Flags
#12196
base: master
Are you sure you want to change the base?
[Core] Derive Dof
from Flags
#12196
Conversation
Fine from my side, but this must be approved by technical committee. In any case I hope the performance penalty is not super high |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is actually a good idea. One problem is that how flags are implemented as of now they occupy 2 doubles, so it is a memory increase. Nevertheless the idea is definitely worth exploring
This PR will also open the possibility to make the Kratos/applications/StructuralMechanicsApplication/python_scripts/structural_mechanics_solver.py Lines 198 to 220 in 358979a
One possible solution to this issue is setting |
I was wondering about that, and got quite confused about what the purpose of Kratos/kratos/containers/flags.h Lines 466 to 467 in 358979a
I'd usually assume that a flag is either set or it isn't, but kratos
@RiccardoRossi Do we ever make a distinction between flags that are neither defined nor set, and flags that are defined but not set? |
If you remove the defined/not defined you will break a lot of code, because someone (like me) assumed that and we did developments assuming that logic. |
Yes, if I remember correctly an element is considered ACTIVE (so we have to compute its local matrix and rhs) if the flag is not defined or if it is set to ACTIVE
|
And not just that, in Contact I use it for an advance logic, for the frictional contact. I guess I can rewrite it, but It woul not be trivial. |
Ah well ¯\_(ツ)_/¯ Anyway, reducing the footprint of |
Sotty :P |
well nope, it's already the smallest it can be. @pooyan-dadvand can you please review? |
Co-authored-by: Philipp Bucher <[email protected]>
Co-authored-by: Philipp Bucher <[email protected]>
See #11916
Changes
Dof
fromFlags
FIXED
mIsFixed
boolean member with theFIXED
flagDof
to includeFlags