diff options
author | tradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef> | 2004-08-30 16:55:16 +0000 |
---|---|---|
committer | tradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef> | 2004-08-30 16:55:16 +0000 |
commit | 7583c1f9d2bcab7833f3ad741e089e4a96918fac (patch) | |
tree | c001bd536b73f019c1b47bc6fea11317c6dd3441 /src/AMRHierLib/AMRGridCell.cc | |
parent | 4bc44285491ac553e14b26d6888104c0d7e18f54 (diff) |
Bring development version in sync with stable version from /packages/FlexIO.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@68 21a6bef8-4479-4f54-8f8d-0db94a2919ef
Diffstat (limited to 'src/AMRHierLib/AMRGridCell.cc')
-rw-r--r-- | src/AMRHierLib/AMRGridCell.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/AMRHierLib/AMRGridCell.cc b/src/AMRHierLib/AMRGridCell.cc new file mode 100644 index 0000000..6d6cdf1 --- /dev/null +++ b/src/AMRHierLib/AMRGridCell.cc @@ -0,0 +1,32 @@ +//------------------------------------------------------------------------------ +// +// Project: AMR Visualization +// Module: $RCSfile$ +// Language: C++ +// Date: $Date$ +// Author: $Author$ +// Version: $Revision$ +// +//------------------------------------------------------------------------------ + +#include <AMRGridCell.hh> + +AMRGridCell::AMRGridCell(AMRGrid *g, int i, int j, int k, int id) : mGrid(g), mRefiningGridId(id) +{ + mIdx[0] = i; + mIdx[1] = j; + mIdx[2] = k; + assert(0<=i && i<mGrid->dims[0]); + assert(0<=j && j<mGrid->dims[1]); + assert(0<=k && k<mGrid->dims[2]); +} + +AMRGridCell::AMRGridCell(AMRGrid *g, int i[3], int id) : mGrid(g), mRefiningGridId(id) +{ + mIdx[0] = i[0]; + mIdx[1] = i[1]; + mIdx[2] = i[2]; + assert(0<=i[0] && i[0]<mGrid->dims[0]); + assert(0<=i[1] && i[1]<mGrid->dims[1]); + assert(0<=i[2] && i[2]<mGrid->dims[2]); +} |