Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78724446
system_evolution.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 22, 15:14
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Aug 24, 15:14 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20020147
Attached To
R7571 SP4E-TB-TL-FR
system_evolution.hh
View Options
#ifndef __SYSTEM_EVOLUTION__HH__
#define __SYSTEM_EVOLUTION__HH__
/* -------------------------------------------------------------------------- */
#include "compute.hh"
#include "system.hh"
/* -------------------------------------------------------------------------- */
//! Manager for system evolution
class
SystemEvolution
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
//! Construct using existing system (takes ownership)
SystemEvolution
(
std
::
unique_ptr
<
System
>
system
);
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
//! Evolve all time steps
void
evolve
();
//! Add compute to list of computes
void
addCompute
(
const
std
::
shared_ptr
<
Compute
>&
compute
);
//! Get the system object
System
&
getSystem
();
void
setNSteps
(
UInt
nsteps
);
void
setDumpFreq
(
UInt
freq
);
/* ------------------------------------------------------------------------ */
/* Members */
/* ------------------------------------------------------------------------ */
protected
:
std
::
vector
<
std
::
shared_ptr
<
Compute
>>
computes
;
std
::
unique_ptr
<
System
>
system
;
UInt
nsteps
,
freq
;
};
/* -------------------------------------------------------------------------- */
#endif
//__SYSTEM_EVOLUTION__HH__
Event Timeline
Log In to Comment