Skip to content

Commit

Permalink
Added status check to optical input for model builders
Browse files Browse the repository at this point in the history
  • Loading branch information
Hollenbeck-Hayden committed Mar 4, 2025
1 parent 4f004b0 commit 5d391f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/celeritas/optical/OpticalCollector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ class OpticalCollector
{
return material && (scintillation || cherenkov)
&& num_track_slots > 0 && buffer_capacity > 0
&& initializer_capacity > 0 && auto_flush > 0;
&& initializer_capacity > 0 && auto_flush > 0
&& !model_builders.empty();
}
};

Expand Down

0 comments on commit 5d391f3

Please sign in to comment.