Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

gios.hpp

Go to the documentation of this file.
00001 //************************************************************************************
00002 // Module       : gios.hpp
00003 // Date         : 12/10/02 (DLR)
00004 // Copyright    : 2002-2006 Copyright University Corporation for Atmospheric
00005 //                Research
00006 // Description  : Namespace encapsulating file opening modes
00007 // Derived From : none.
00008 // Modifications:
00009 //************************************************************************************
00010 #if !defined(GIOS_HPP)
00011 #define GIOS_HPP
00012 
00013 #include "gtypes.h"
00014 #if defined(MPI_IO_DEFAULT)
00015 #  include "mpi.h"
00016 #endif
00017 
00018 
00019 namespace gios
00020 {
00021 #if defined(MPI_IO_DEFAULT)
00022   GIOS_MODE app       = MPI_MODE_APPEND;
00023   GIOS_MODE ate       = MPI_MODE_APPEND;
00024   GIOS_MODE binary    = 0;
00025   GIOS_MODE in        = MPI_MODE_RDONLY;
00026   GIOS_MODE nocreate  = 0;
00027   GIOS_MODE noreplace = MPI_MODE_EXCL;
00028   GIOS_MODE out       = MPI_MODE_WRONLY;
00029   GIOS_MODE trunc     = 0;
00030 #else
00031   GIOS_MODE app       = ios::app;
00032   GIOS_MODE ate       = ios::ate;
00033   GIOS_MODE binary    = ios::binary;
00034   GIOS_MODE in        = ios::in;
00035   GIOS_MODE nocreate  = ios::nocreate;
00036   GIOS_MODE noreplace = ios::noreplace;
00037   GIOS_MODE out       = ios::out;
00038   GIOS_MODE trunc     = ios::trunc;
00039 #endif
00040 } // end of namespace gios
00041 
00042 #endif
00043 

Generated on Wed Dec 21 16:00:48 2005 for Geophysics & Astrophysics Spectral Element Adaptive Refinement (GASpAR) 2D Code by  doxygen 1.4.4