Commit Graph

6 Commits

Author SHA1 Message Date
7ca0433c65 Fix lower-order C lopsided boundary fallbacks 2026-05-14 21:36:42 +08:00
1d7d853691 Fix eighth-order C derivative and lopsided stencils 2026-05-14 20:40:28 +08:00
d5d8cda25a Fix C derivative ghost-buffer indexing across FD orders 2026-05-14 16:02:31 +08:00
57c93ecb91 Fix fourth-order C lopsided and KO stencil indexing 2026-05-14 15:20:30 +08:00
fd18380a42 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:36:33 +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