You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restart is inherently broken with new particle generation approach. For any particle generator, initializeOtherVariables happens after the function implemented by the user, the initialization of extra variable based on a function such as
is (1) crashing if the variable was registered by the user inadvertently (avoidable and ok, requires removing some lines), and (2) overriding any user/file loaded values (more problematic from design POV). See the sources of problems in base_particles.hpp
Yes. This issue is very relevant to that a variable is only allowed once. The other Variable are only those in particle classes. Any new variable will be defined in method will be initialized in the specific method class. My original design is separate geometric model variable, physical model variables and dynamics relevant variables. The first two are defined in particles, the third in method classes. However, the clear separation between the three is not very obvious.
SPHinXsys/SPHINXsys/src/shared/bodies/base_body.h
Lines 137 to 144 in e5d224d
Restart is inherently broken with new particle generation approach. For any particle generator,
initializeOtherVariables
happens after the function implemented by the user, the initialization of extra variable based on a function such asSPHinXsys/SPHINXsys/src/shared/particles/solid_particles.cpp
Lines 30 to 32 in e5d224d
is (1) crashing if the variable was registered by the user inadvertently (avoidable and ok, requires removing some lines), and (2) overriding any user/file loaded values (more problematic from design POV). See the sources of problems in
base_particles.hpp
SPHinXsys/SPHINXsys/src/shared/particles/base_particles.hpp
Lines 45 to 56 in e5d224d
and
SPHinXsys/SPHINXsys/src/shared/particles/base_particles.hpp
Lines 59 to 71 in e5d224d
The text was updated successfully, but these errors were encountered: