-
Notifications
You must be signed in to change notification settings - Fork 950
Fix: patch bundled Boost hash.hpp to remove std::unary_function for C++17 compatibility#2749
Fix: patch bundled Boost hash.hpp to remove std::unary_function for C++17 compatibility#2749Sahilll10 wants to merge 66 commits intosu2code:masterfrom
Conversation
Root Cause
boost/container_hash/hash.hpp uses a guard #if defined(_HAS_AUTO_PTR_ETC)
which is MSVC-only. On MacOS/clang and GCC with -std=c++17, this guard never
activates, so hash_base inherits from std::unary_function
which was removed in C++17 -- causing a build failure.
Fix
Patched the #else branch of hash_base in the bundled Boost headers inside
externals/tecio/boost.tar.gz to use explicit typedef declarations instead
of std::unary_function inheritance. This is identical to what the #if branch
already does correctly for MSVC. No behaviour change whatsoever.
Verification
After repacking, confirmed zero occurrences of unary_function remain in
boost/container_hash/hash.hpp.
Files Changed
externals/tecio/boost.tar.gz-- one struct patched inboost/container_hash/hash.hpp
Fixes #2583
Please let me know if there are further adjustments required.
- CSinglezoneDriver: Detects final_time_reached = (cur_time >= max_time)
- CMultizoneDriver: Applies same pattern for all zones
- Maintains original functionality with clearer, more maintainable code
- Specific to time-domain simulations with second-order time stepping
This addresses maintainer feedback to use explicit time checks instead of
generic stopping conditions, ensuring the fix properly generalizes to all
problem types and follows SU2 monitoring patterns.
This replaces the previous unsafe solution-swapping approach with a more robust pattern modeled after PR su2code#1237. The delay mechanism leverages existing Cauchy convergence infrastructure and properly handles second-order time stepping.
Fixes su2code#2493
* Moved options for initial guess of density and internal energy for data-driven fluid model to deprecated
* Added initial guess function through a small thermodynamic table and prevent Newton solver processes from getting stuck on bounds of the lookup algorithm
* Simplified expression for speed of sound
Add functionality for unsteady restart handling in CSinglezoneDriver ...
|
You opened the PR against the wrong branch, I advise you to read the PR checklist and the contributing guidelines. |