Swarm-NG  1.1
swarm::EnsembleBase< _CHUNK_SIZE, _NUM_BODY_ATTRIBUTES, _NUM_SYS_ATTRIBUTES >::Sys Struct Reference

Structure for quantities stored per system. More...

#include <ensemble.hpp>

Public Types

enum  ActivationStates
 Constanst that are used as values for state variable Value 0 is the active state, it means that the integrator will integrate the ensemble. More...
 

Public Member Functions

GENERIC double & time ()
 wall clock time for the system
 
GENERIC int & state ()
 Activity state of the system. c.f. ActivationStates.
 
GENERIC int & id ()
 Unique identifier of the system. c.f. SysRef::id.
 
GENERIC const double & attribute (const int &i) const
 Access extra attributes of the system.
 

Detailed Description

template<int _CHUNK_SIZE, int _NUM_BODY_ATTRIBUTES = NUM_PLANET_ATTRIBUTES, int _NUM_SYS_ATTRIBUTES = NUM_SYSTEM_ATTRIBUTES>
struct swarm::EnsembleBase< _CHUNK_SIZE, _NUM_BODY_ATTRIBUTES, _NUM_SYS_ATTRIBUTES >::Sys

Structure for quantities stored per system.

This structure is specifically designed for efficient coalesced access and should only be used with CoalescedStructArray.

Definition at line 227 of file ensemble.hpp.

Member Enumeration Documentation

template<int _CHUNK_SIZE, int _NUM_BODY_ATTRIBUTES = NUM_PLANET_ATTRIBUTES, int _NUM_SYS_ATTRIBUTES = NUM_SYSTEM_ATTRIBUTES>
enum swarm::EnsembleBase::Sys::ActivationStates

Constanst that are used as values for state variable Value 0 is the active state, it means that the integrator will integrate the ensemble.

All other values are considered inactive state. However The policy on how they get reactivated depends on the value

SYSTEM_INACTIVE: will be reactivated for next integration SYSTEM_NEEDS_EXAM: needs to be examined before reactivation SYSTEM_DISABLED: it is permenantly deactivated.

Definition at line 269 of file ensemble.hpp.


The documentation for this struct was generated from the following file: