Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92005072
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
Sat, Nov 16, 13:23
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Nov 18, 13:23 (2 d)
Engine
blob
Format
Raw Data
Handle
22362201
Attached To
R9316 Omid_Ashtari
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