Memosa-FVM  0.2
StorageSite.cpp
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 #include "StorageSite.h"
6 #include "OneToOneIndexMap.h"
7 
8 
9 StorageSite::StorageSite(const int selfCount, const int nGhost,
10  const int offset, const StorageSite* parent):
11  _count(selfCount+nGhost),
12  _selfCount(selfCount),
13  _offset(offset),
14  _parent(parent),
15  _countLevel1(_count),
16  _scatterProcID(-1),
17  _gatherProcID(-1),
18  _tag(-1)
19 {
20  logCtorVerbose("of size %d", _count);
21 }
22 
24 {
25  logDtorVerbose("of size %d" ,_count);
26 }
27 
28 
29 void
31 {
32  _gatherMap.clear();
33  _scatterMap.clear();
34 }
virtual ~StorageSite()
Definition: StorageSite.cpp:23
#define logCtorVerbose(str,...)
Definition: RLogInterface.h:29
ScatterMap _scatterMap
Definition: StorageSite.h:97
StorageSite(const int selfCount, const int nGhost=0, const int offset=0, const StorageSite *parent=0)
Definition: StorageSite.cpp:9
void clearGatherScatterMaps()
Definition: StorageSite.cpp:30
GatherMap _gatherMap
Definition: StorageSite.h:98
#define logDtorVerbose(str,...)
Definition: RLogInterface.h:36