Struct DecomposedDomain
pub struct DecomposedDomain<I, S, C> {
pub n_subdomains: NonZero<usize>,
pub index_subdomain_cells: Vec<(I, S, Vec<C>)>,
pub neighbor_map: BTreeMap<I, BTreeSet<I>>,
pub rng_seed: u64,
}elli only.Expand description
Generated by the decompose method. The backend will know how to deal with this type and crate a working simulation from it.
Fields§
§n_subdomains: NonZero<usize>Number of spawned SubDomains. This number is guaranteed to be smaller or equal to the number may be different to the one given to the Domain::decompose method. Such behaviour can result from not being able to construct as many subdomains as desired. Note that this function will attempt to construct more SubDomains than available CPUs if given a larger number.
index_subdomain_cells: Vec<(I, S, Vec<C>)>Vector containing properties of individual SubDomains. Entries are Domain::SubDomainIndex, SubDomain, and a vector of cells.
neighbor_map: BTreeMap<I, BTreeSet<I>>Encapsulates how the subdomains are linked to each other. Eg. two subdomains without any boundary will never appear in each others collection of neighbors. For the future, we might opt to change to an undirected graph rather than a BTreeMap.
rng_seed: u64Initial seed of the simulation for random number generation.
Auto Trait Implementations§
impl<I, S, C> Freeze for DecomposedDomain<I, S, C>
impl<I, S, C> RefUnwindSafe for DecomposedDomain<I, S, C>
impl<I, S, C> Send for DecomposedDomain<I, S, C>
impl<I, S, C> Sync for DecomposedDomain<I, S, C>
impl<I, S, C> Unpin for DecomposedDomain<I, S, C>
impl<I, S, C> UnwindSafe for DecomposedDomain<I, S, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.