Skip to content

Add optical problem input and setup#2189

Merged
amandalund merged 6 commits intoceleritas-project:developfrom
amandalund:optical-problem
Jan 13, 2026
Merged

Add optical problem input and setup#2189
amandalund merged 6 commits intoceleritas-project:developfrom
amandalund:optical-problem

Conversation

@amandalund
Copy link
Contributor

This adds an optical-only problem input and setup for cases where we only want to run the optical stepping loop in Celeritas. For now it's only used and tested in accel (when offloading optical distributions) but will be used standalone optical problems as well. I struggled a bit trying to figure out how best to set this up and could definitely use some feedback on how to improve it.

@amandalund amandalund requested a review from sethrj as a code owner January 10, 2026 23:51
@codecov
Copy link

codecov bot commented Jan 11, 2026

Codecov Report

❌ Patch coverage is 83.12236% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.11%. Comparing base (5336a7f) to head (ba8021c).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
src/celeritas/setup/Problem.cc 71.27% 15 Missing and 12 partials ⚠️
src/accel/SetupOptions.cc 78.26% 3 Missing and 2 partials ⚠️
src/celeritas/setup/FrameworkInput.cc 85.71% 3 Missing and 1 partial ⚠️
src/accel/LocalOpticalOffload.cc 66.66% 0 Missing and 1 partial ⚠️
src/accel/SharedParams.cc 95.65% 0 Missing and 1 partial ⚠️
src/accel/SharedParams.hh 90.00% 1 Missing ⚠️
src/celeritas/optical/PhysicsParams.cc 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2189      +/-   ##
===========================================
- Coverage    86.15%   86.11%   -0.04%     
===========================================
  Files         1287     1288       +1     
  Lines        40709    40810     +101     
  Branches     12994    12590     -404     
===========================================
+ Hits         35074    35145      +71     
+ Misses        4624     4472     -152     
- Partials      1011     1193     +182     
Files with missing lines Coverage Δ
src/accel/LocalTransporter.cc 67.96% <ø> (ø)
src/accel/LocalTransporter.hh 95.23% <ø> (ø)
src/accel/SetupOptions.hh 89.28% <ø> (-1.04%) ⬇️
src/celeritas/global/CoreParams.cc 87.16% <100.00%> (-0.82%) ⬇️
src/celeritas/inp/Events.hh 69.23% <ø> (ø)
src/celeritas/inp/Physics.hh 100.00% <ø> (ø)
src/celeritas/inp/Problem.hh 100.00% <100.00%> (ø)
src/celeritas/io/OffloadWriter.hh 100.00% <ø> (ø)
src/celeritas/optical/CoreParams.cc 89.85% <100.00%> (+3.06%) ⬆️
src/celeritas/optical/CoreParams.hh 94.73% <100.00%> (+0.61%) ⬆️
... and 15 more

... and 118 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Jan 11, 2026

Test summary

 5 757 files   9 242 suites   17m 43s ⏱️
 2 099 tests  2 072 ✅  27 💤 0 ❌
31 482 runs  31 350 ✅ 132 💤 0 ❌

Results for commit ba8021c.

♻️ This comment has been updated with latest results.

Copy link
Member

@sethrj sethrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! The OpticalProblem may warrant some refinement in the future but getting this in is a huge step in the right direction. Thanks!

(PS this will conflict with #2135 but since @Rashika-Gupta has been out I think we can work with her on merging that when she returns.)

@amandalund amandalund added minor Refactoring or minor internal changes/fixes external Dependencies and framework-oriented features labels Jan 13, 2026
@amandalund amandalund merged commit 3bc3c16 into celeritas-project:develop Jan 13, 2026
42 checks passed
@amandalund amandalund deleted the optical-problem branch January 13, 2026 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external Dependencies and framework-oriented features minor Refactoring or minor internal changes/fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants