OpenAtom  Version1.5a
PhysScratchCache.h
1 /** \file atomsCache.h
2  */
3 #ifndef PHYSSCRATCHCACHE_H
4 #define PHYSSCRATCHCACHE_H
5 #include "src_piny_physics_v1.0/include/class_defs/CP/class_psnonlocal.h"
6 #include "PhysScratchCache.decl.h"
7 
8 
9 
10 /** PhysScratchCache class.
11  *
12  * PhysScratchCache is an entirely passive structure for thread safe
13  * data scratch spaces used in for various computations. In some
14  * future, post C++11, world this could be replaced by thread local
15  * storage.
16  *
17  * This cannot be a nodegroup unless the scratch structures are
18  * protected from data races. Some savings in memory footprint could
19  * be realized by a pooling scheme to satisfy simultaneous usage, but
20  * the effort implementing that has not yet been sufficiently
21  * motivated.
22  */
23 
24 
25 
26 class PhysScratchCache: public Group {
27  public:
28  PSSCRATCH *psscratch;
30  PhysScratchCache(CkMigrateMessage *m) {}
31  ~PhysScratchCache(){ delete psscratch; }
32 
33 };
34 
35 
36 #endif // PHYSSCRATCHCACHE_H
PhysScratchCache class.