Commit 4fa9e7a
Fix cpp source flags in new API (#698)
* Add CLAUDE.md for Claude Code onboarding
Provides build/test commands, architecture overview, and project-specific
naming conventions so future Claude Code sessions can be productive immediately.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix CppSimulation source flags to write signal length, not boolean
The C++ binary expects p_source_flag / u{x,y,z}_source_flag to contain
the number of time steps in the source signal (matching legacy
kWaveSimulation.source_p behavior), not just 0/1. Writing a boolean
caused the binary to reject valid HDF5 input files with time-varying
sources.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Add comment clarifying misleading *_source_flag HDF5 field names
These fields carry the source signal length, not a boolean — the naming
is inherited from the C++ binary's HDF5 API.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Use .shape[-1] instead of len([0]) for source flag values
Safer for both 1-D and 2-D source arrays and communicates intent
more clearly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Walter Simson <waltsims@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2ea27db commit 4fa9e7a
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
199 | 202 | | |
200 | | - | |
201 | | - | |
202 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
| |||
0 commit comments