Xiangyu-Hu / SPHinXsys

SPHinXsys provides C++ APIs for engineering simulation and optimization. It aims at complex systems driven by fluid, structure, multi-body dynamics and beyond. The multi-physics library is based on a unique and unified computational framework by which strong coupling has been achieved for all involved physics.
https://www.sphinxsys.org/
Apache License 2.0
259 stars 199 forks source link

The bug when Register a shared variable in the base part without a signal, and the bug in the test case: multiresotion flow around cylinder #485

Closed FengWang3119 closed 1 month ago

FengWang3119 commented 5 months ago
  1. When Register a shared variable in the base part without a signal &, the inherited clase that also uses this variable has trouble. To be more specific, when use the emiiter function, the size of the variable that is used in the inherited classs is not updated.

  2. And in the test case: multiresotion flow around cylinder, the velocity at the interface between high and low resolution seems to have Intermittent

Xiangyu-Hu commented 1 month ago

The error is due to registering a shared variable without using reference.