Commit 2238d81
committed
fix: Fix five bugs and code formatting issues
Fixed three critical division by zero bugs, two moderate bugs, and
resolved code formatting issues:
1. Wall model convergence - zero-check before division
2. Wall model Gamma - epsilon check for exp(1/Gamma)
3. Radiation emissivity - clamp to [0,1] range
4. Restart metadata - correct ITER= offset 95
5. Filename buffer - replace strcpy with strncpy
Formatting Fixes:
- CSolver.cpp: Removed space before parentheses
- CRadP1Solver.cpp: Converted single-line ifs to block style
- wall_model.cpp & CPhysicalGeometry.cpp: Verified indentation
Improves solver stability, correctness, security, and code style.
Signed-off-by: shbhmexe <[email protected]>1 parent 89a1fe4 commit 2238d81
2 files changed
+21
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8252 | 8252 | | |
8253 | 8253 | | |
8254 | 8254 | | |
8255 | | - | |
| 8255 | + | |
| 8256 | + | |
8256 | 8257 | | |
8257 | 8258 | | |
8258 | 8259 | | |
| |||
8565 | 8566 | | |
8566 | 8567 | | |
8567 | 8568 | | |
8568 | | - | |
| 8569 | + | |
| 8570 | + | |
8569 | 8571 | | |
8570 | 8572 | | |
8571 | 8573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
312 | 316 | | |
313 | 317 | | |
314 | 318 | | |
| |||
390 | 394 | | |
391 | 395 | | |
392 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
393 | 408 | | |
394 | 409 | | |
395 | | - | |
| 410 | + | |
396 | 411 | | |
397 | 412 | | |
398 | 413 | | |
| |||
0 commit comments