Memosa-FVM  0.2
Model.h
Go to the documentation of this file.
1 // This file os part of FVM
2 // Copyright (c) 2012 FVM Authors
3 // See LICENSE file for terms.
4 
5 #ifndef _MODEL_H_
6 #define _MODEL_H_
7 
8 
9 #include "StorageSite.h"
10 #include "Mesh.h"
11 #include "ArrayBase.h"
12 
13 class Model
14 {
15 public:
16  Model(const MeshList& meshes);
17  virtual ~Model();
18 
19  DEFINE_TYPENAME("Model");
20 
21  virtual void init() = 0;
22 
23  virtual map<string,shared_ptr<ArrayBase> >&
25 
26  virtual void restart();
27 
28 protected:
32  map<string,shared_ptr<ArrayBase> > _persistenceData;
33 };
34 
35 #endif
virtual void init()=0
Model(const MeshList &meshes)
Definition: Model.cpp:8
DEFINE_TYPENAME("Model")
vector< const StorageSite * > StorageSiteList
Definition: StorageSite.h:114
virtual ~Model()
Definition: Model.cpp:14
map< string, shared_ptr< ArrayBase > > _persistenceData
Definition: Model.h:32
StorageSiteList _varSites
Definition: Model.h:30
virtual void restart()
Definition: Model.cpp:24
const MeshList _meshes
Definition: Model.h:29
Definition: Model.h:13
StorageSiteList _fluxSites
Definition: Model.h:31
virtual map< string, shared_ptr< ArrayBase > > & getPersistenceData()
Definition: Model.cpp:18
vector< Mesh * > MeshList
Definition: Mesh.h:439