Remove airfoil and stl paramters#1524
Conversation
Claude Code ReviewHead SHA: 0d27a5e Files changed:
Findings1. Unguarded print *, " * Reading model: " // trim(stl_models(stl_id)%model_filepath)The old code had 2. Potential out-of-bounds array access in airfoil IB checker — correctness bug @:PROHIBIT(n == 0 .or. p > 0 .or. patch_ib(patch_id)%airfoil_id <= 0 &
& .or. ib_airfoil(patch_ib(patch_id)%airfoil_id)%c <= 0._wp &When 3. Wrong Fortran constant in -NIB = _fc("num_ib_patches_max_namelist", 50000) # patch_ib namelist limit
+NIB = _fc("num_ib_patches_max", 50000) # patch_ib (Fortran array bound)Both constants exist in |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1524 +/- ##
==========================================
+ Coverage 60.64% 60.81% +0.16%
==========================================
Files 73 73
Lines 20213 20193 -20
Branches 2936 2931 -5
==========================================
+ Hits 12259 12281 +22
+ Misses 5966 5926 -40
+ Partials 1988 1986 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@sbryngelson approval for benchmark? |
|
AI commanets have been addressed, btw |
Description
The patch_ib array has become bloated as many variable have been added to this struct, growing each element to 962 bytes. Several of these variables are unused except in niche cases. Two such examples are the STL models and airfoils. Particularly the STL model is responsible for 492 bytes of this usage (over half).
Since we are not MPI communicating the patch_ib elements regularly, it is important to try to optimize their size. This will improve communication time as well as likely providing a noticeable performance benefit. This was done by creating separate smaller data structures that the patches will call out to that actually contain airfoil and STL information. This will make minor modifications to the case file, which other users should be made aware of.
Fixes #1451
Type of change
Testing
Ran test suite.
Checklist