Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

samtut-0.1.7/samrai_supplement/arrayConversionX.C.sed

Go to the documentation of this file.
00001 
00009 #include "arrayConversionX.h"
00010 #include "MultiDimArrayAccess.h"
00011 #include <pdat_ArrayDataX.h>
00012 
00013 MultiDimArrayAccess<double,NDIM> arrayData2ArrayAccess (
00014   pdat_ArrayDataX<double> &adat
00015 , int depth
00016 ) {
00017   return MultiDimArrayAccess<double,NDIM>(
00018            adat.getPointer(depth)
00019            , (const int*)adat.getBox().lower()
00020            , (const int*)adat.getBox().upper()
00021            , true
00022            );
00023 }
00024 
00025 ConstMultiDimArrayAccess<double,NDIM> arrayData2ArrayAccess (
00026   const pdat_ArrayDataX<double> &adat
00027 , int depth
00028 ) {
00029   return ConstMultiDimArrayAccess<double,NDIM>(
00030            adat.getPointer(depth)
00031            , (const int*)adat.getBox().lower()
00032            , (const int*)adat.getBox().upper()
00033            , true
00034            );
00035 }

Generated on Wed Apr 17 12:51:45 2002 for samtut by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001