Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::search::NeverRebuild Struct Reference

Rebuilder that suppresses all rebuilds after the first. More...

#include <NeighborListRebuilder.hpp>

Public Member Functions

Rebuild policy
void setup (const stk::mesh::BulkData &, const stk::mesh::Selector &, const stk::mesh::Selector &) noexcept
 No per-update setup needed.
template<typename TargetInput, typename SourceInput>
bool needs_rebuild (const stk::mesh::BulkData &, const TargetInput &, const SourceInput &) noexcept
 Never signal that a rebuild is needed after the first build.
template<typename TargetInput, typename SourceInput>
void snapshot (const stk::mesh::BulkData &, const TargetInput &, const SourceInput &) noexcept
 No state to snapshot after a rebuild.
Chaining
template<RebuilderType Next>
RebuilderChain< NeverRebuild, Next > rebuild_if (const Next &next) const
 Return a chain of this rebuilder OR-combined with next.
template<RebuilderType Next>
RebuilderChain< NeverRebuild, Next > operator| (const Next &next) const

Detailed Description

The list is built exactly once on the first update() call and then reused unchanged for all subsequent calls regardless of geometry or connectivity changes. Call ManagedNeighborList::invalidate() to force a manual rebuild.

Member Function Documentation

◆ setup()

void mundy::search::NeverRebuild::setup ( const stk::mesh::BulkData & ,
const stk::mesh::Selector & ,
const stk::mesh::Selector &  )
inlinenoexcept

◆ needs_rebuild()

template<typename TargetInput, typename SourceInput>
bool mundy::search::NeverRebuild::needs_rebuild ( const stk::mesh::BulkData & ,
const TargetInput & ,
const SourceInput &  )
inlinenoexcept

◆ snapshot()

template<typename TargetInput, typename SourceInput>
void mundy::search::NeverRebuild::snapshot ( const stk::mesh::BulkData & ,
const TargetInput & ,
const SourceInput &  )
inlinenoexcept

◆ rebuild_if()

template<RebuilderType Next>
RebuilderChain< NeverRebuild, Next > mundy::search::NeverRebuild::rebuild_if ( const Next & next) const
inline

◆ operator|()

template<RebuilderType Next>
RebuilderChain< NeverRebuild, Next > mundy::search::NeverRebuild::operator| ( const Next & next) const
inline