c4b9bd3788
Add full FD order support (2nd/4th/6th/8th) to C derivative kernels via ghost_width dispatch
...
Wrap each C kernel in #if (ghost_width == N) blocks matching Fortran stencil
coefficients from diff_new.f90, kodiss.f90, and lopsidediff.f90. Add fast-path
indexing for ord=1,4,5 in share_func.h.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-14 11:33:52 +08:00
e11363e06e
Optimize fdderivs: skip redundant 2nd-order work in 4th-order overlap
2026-03-02 03:21:21 +08:00
6024708a48
derivs_c: split low/high stencil regions to reduce branch overhead
2026-02-28 15:42:31 +08:00
34d6922a66
fdderivs_c: 全量清零改为只清零边界面,减少无效内存写入
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-02-28 13:20:06 +08:00
dfb79e3e11
Initialize output arrays to zero in fdderivs_c.C and fderivs_c.C
2026-02-26 14:18:31 +08:00
284ab80baf
Remove OpenMP from C rewrite kernel
...
The C rewrite introduced OpenMP parallelism. Remove all OpenMP.
2026-02-25 22:21:20 +08:00
wingrew
8a9c775705
Replace Fortran bssn_rhs with C implementation and add C helper kernels
...
- Modify bssn_rhs_c.C to use existing project headers (macrodef.h, bssn_rhs.h)
- Update makefile: remove bssn_rhs.o from F90FILES, add CFILES with OpenMP
- Keep Fortran helper files (diff_new.f90, kodiss.f90, lopsidediff.f90) for other Fortran callers
[copilot: fix compiling errors & a nan error]
Co-authored-by: ianchb <i@4t.pw >
Co-authored-by: copilot-swe-agent[bot] <198982749+copilot@users.noreply.github.com >
2026-02-25 22:21:19 +08:00