Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

NodeAMRIO.H

Go to the documentation of this file.
00001 /* _______              __
00002   / ___/ /  ___  __ _  / /  ___
00003  / /__/ _ \/ _ \/  ' \/ _ \/ _ \
00004  \___/_//_/\___/_/_/_/_.__/\___/
00005 */
00006 //
00007 // This software is copyright (C) by the Lawrence Berkeley
00008 // National Laboratory.  Permission is granted to reproduce
00009 // this software for non-commercial purposes provided that
00010 // this notice is left intact.
00011 //
00012 // It is acknowledged that the U.S. Government has rights to
00013 // this software under Contract DE-AC03-765F00098 between
00014 // the U.S.  Department of Energy and the University of
00015 // California.
00016 //
00017 // This software is provided as a professional and academic
00018 // contribution for joint exchange. Thus it is experimental,
00019 // is provided ``as is'', with no warranties of any kind
00020 // whatsoever, no support, no promise of updates, or printed
00021 // documentation. By using this software, you acknowledge
00022 // that the Lawrence Berkeley National Laboratory and
00023 // Regents of the University of California shall have no
00024 // liability with respect to the infringement of other
00025 // copyrights by any part of this software.
00026 //
00027 
00028 // NodeAMRIO.H
00029 // petermc, 4 March 2003
00030 // adapted from AMRIO by DTGraves, Fri, Dec 3, 1999
00031 
00032 #ifndef NODEAMRIO_H
00033 #define NODEAMRIO_H
00034 #include "REAL.H"
00035 
00036 #ifndef WRAPPER
00037 
00038 #include "LevelData.H"
00039 #include "REAL.H"
00040 #include "Vector.H"
00041 #include "NodeFArrayBox.H"
00042 #include <string>
00043 
00044 #include "IntVect.H"
00045 using std::string;
00046 using std::istream;
00047 #endif
00048 
00050 
00056 void
00057 WriteAMRHierarchyHDF5(
00058                       const string& filename,
00060                       const Vector<DisjointBoxLayout>& a_vectGrids,
00062                       const Vector<LevelData<NodeFArrayBox>* > & a_vectData,
00064                       const Vector<string>& a_vectNames,
00066                       const Box& a_domain,
00068                       const Real& a_dx,
00070                       const Real& a_dt,
00072                       const Real& a_time,
00074                       const Vector<int>& a_vectRatio,
00076                       const int& a_numLevels,
00078                       const RealVect& a_origin = RealVect::Zero,
00080                       const Interval& a_comps = Interval() );
00081 
00083 
00094 void
00095 WriteAMRHierarchyHDF5(
00096                       const string& filename,
00098                       const Vector<DisjointBoxLayout>& a_vectGrids,
00100                       const Vector<Vector<LevelData<NodeFArrayBox>* > >& a_vectData,
00102                       const Vector<string>& a_vectNames,
00104                       const Box& a_domain,
00106                       const Real& a_dx,
00108                       const Real& a_dt,
00110                       const Real& a_time,
00112                       const Vector<int>& a_vectRatio,
00114                       const int& a_numLevels);
00115 
00117 
00123 void
00124 WriteAMRHierarchyHDF5(
00125                       HDF5Handle& handle,
00127                       const Vector<DisjointBoxLayout>& a_vectGrids,
00129                       const Vector<LevelData<NodeFArrayBox>* > & a_vectData,
00131                       const Vector<string>& a_vectNames,
00133                       const Box& a_domain,
00135                       const Real& a_dx,
00137                       const Real& a_dt,
00139                       const Real& a_time,
00141                       const Vector<int>& a_vectRatio,
00143                       const int& a_numLevels,
00145                       const RealVect& a_origin = RealVect::Zero,
00147                       const Interval& a_comps = Interval() );
00148 
00150 
00156 void
00157 WriteAMRHierarchyHDF5(
00158                       const string& filename,
00160                       const Vector<DisjointBoxLayout>& a_vectGrids,
00162                       const Vector<LevelData<NodeFArrayBox>* > & a_vectData,
00164                       const Box& a_domain,
00166                       const Vector<int>& a_vectRatio,
00168                       const int& a_numLevels);
00169 
00171 
00177 void
00178 WriteAMRHierarchyHDF5(
00179                       HDF5Handle& handle,
00181                       const Vector<DisjointBoxLayout>& a_vectGrids,
00183                       const Vector<LevelData<NodeFArrayBox>* > & a_vectData,
00185                       const Box& a_domain,
00187                       const Vector<int>& a_vectRatio,
00189                       const int& a_numLevels);
00190 
00191 #ifndef WRAPPER
00192 
00193 
00206 int
00207 ReadAMRHierarchyHDF5(
00208                      const string& filename,
00210                      Vector<DisjointBoxLayout>& a_vectGrids,
00212                      Vector<LevelData<NodeFArrayBox>* > & a_vectData,
00214                      Vector<string>& a_vectNames,
00216                      Box& a_domain,
00218                      Real& a_dx,
00220                      Real& a_dt,
00222                      Real& a_time,
00224                      Vector<int>& a_refRatio,
00226                      int& a_numLevels,
00228                      const IntVect& a_ghostVector = IntVect::TheZeroVector());
00229 
00231 
00244 int
00245 ReadAMRHierarchyHDF5(
00246                      HDF5Handle& handle,
00248                      Vector<DisjointBoxLayout>& a_vectGrids,
00250                      Vector<LevelData<NodeFArrayBox>* > & a_vectData,
00252                      Vector<string>& a_vectNames,
00254                      Box& a_domain,
00256                      Real& a_dx,
00258                      Real& a_dt,
00260                      Real& a_time,
00262                      Vector<int>& a_refRatio,
00264                      int& a_numLevels,
00266                      const IntVect& a_ghostVector = IntVect::TheZeroVector());
00267 
00268 
00270 
00283 int
00284 ReadAMRHierarchyHDF5(
00285                      const string& filename,
00287                      Vector<DisjointBoxLayout>& a_vectGrids,
00289                      Vector<LevelData<NodeFArrayBox>* > & a_vectData,
00291                      Box& a_domain,
00293                      Vector<int>& a_refRatio,
00295                      int& a_numLevels,
00297                      const IntVect& a_ghostVector = IntVect::TheZeroVector());
00298 
00300 
00313 int
00314 ReadAMRHierarchyHDF5(
00315                      HDF5Handle& handle,
00317                      Vector<DisjointBoxLayout>& a_vectGrids,
00319                      Vector<LevelData<NodeFArrayBox>* > & a_vectData,
00321                      Box& a_domain,
00323                      Vector<int>& a_refRatio,
00325                      int& a_numLevels,
00327                      const IntVect& a_ghostVector = IntVect::TheZeroVector());
00328 
00329 #endif
00330 
00332 
00337 void
00338 writeNFAB(const NodeFArrayBox* a_dataPtr);
00339 
00341 
00348 void
00349 viewNFAB(const NodeFArrayBox* a_dataPtr);
00350 
00352 
00357 void
00358 writeNFABname(const NodeFArrayBox* a_dataPtr,
00359               const char*      a_filename);
00360 
00362 
00367 void
00368 writeNodeLevel(const LevelData<NodeFArrayBox>* a_dataPtr);
00369 
00371 
00378 void
00379 viewNodeLevel(const LevelData<NodeFArrayBox>* a_dataPtr);
00380 
00382 
00387 void
00388 writeNodeLevelname(const LevelData<NodeFArrayBox>* a_dataPtr,
00389                    const char*                 a_filename);
00390 
00392 
00401 void
00402 WritePartialAMRHierarchyHDF5(
00403                              const string& filename,
00405                              const Vector<DisjointBoxLayout>& a_vectGrids,
00407                              const Vector<LevelData<FArrayBox>* > & a_vectData,
00409                              const Vector<string>& a_vectNames,
00411                              const Box& a_baseDomain,
00413                              const Real& a_baseDx,
00415                              const Real& a_dt,
00417                              const Real& a_time,
00419                              const Vector<int>& a_vectRatio,
00421                              const Interval& a_levels);
00422 
00424 
00438 void
00439 WritePartialAMRHierarchyHDF5(
00440                              const string& filename,
00442                              const Vector<DisjointBoxLayout>& a_vectGrids,
00444                              const Vector<Vector<LevelData<NodeFArrayBox>* > >& a_vectData,
00446                              const Vector<string>& a_vectNames,
00448                              const Box& a_baseDomain,
00450                              const Real& a_baseDx,
00452                              const Real& a_dt,
00454                              const Real& a_time,
00456                              const Vector<int>& a_vectRatio,
00458                              const Interval& a_levels);
00459 
00460 #endif

Generated on Fri Jul 2 17:53:42 2004 for Chombo by doxygen 1.3.2