Celeritas 0.7+ef734374e
Loading...
Searching...
No Matches
Classes | Functions
PrimaryCapacity.hh File Reference
#include <algorithm>
#include "corecel/Assert.hh"
#include "corecel/Types.hh"

Classes

struct  celeritas::detail::PrimaryCapacityInput
 

Functions

size_type celeritas::detail::calc_primary_capacity (PrimaryCapacityInput const &input)
 Calculate how many primaries can be added without reducing secondary space.
 

Detailed Description

See also
PrimaryCapacity.test.cc

Function Documentation

◆ calc_primary_capacity()

size_type celeritas::detail::calc_primary_capacity ( PrimaryCapacityInput const input)
inline

Calculate how many primaries can be added without reducing secondary space.

Primaries must first fit alongside existing initializers. At the start of the step, queued initializers and primaries fill vacant track slots. Any initializers left after that must preserve the usable secondary capacity.