/[escript]/branches/trilinos_from_5897/escriptcore/src/DataConstant.h
ViewVC logotype

Diff of /branches/trilinos_from_5897/escriptcore/src/DataConstant.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 800 by gross, Tue Aug 8 11:23:18 2006 UTC revision 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC
# Line 1  Line 1 
1  //$Id$  
2  /*  /* $Id$ */
3   ************************************************************  
4   *          Copyright 2006 by ACcESS MNRF                   *  /*******************************************************
5   *                                                          *   *
6   *              http://www.access.edu.au                    *   *           Copyright 2003-2007 by ACceSS MNRF
7   *       Primary Business: Queensland, Australia            *   *       Copyright 2007 by University of Queensland
8   *  Licensed under the Open Software License version 3.0    *   *
9   *     http://www.opensource.org/licenses/osl-3.0.php       *   *                http://esscc.uq.edu.au
10   *                                                          *   *        Primary Business: Queensland, Australia
11   ************************************************************   *  Licensed under the Open Software License version 3.0
12  */   *     http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16  #if !defined escript_DataConstant_20040323_H  #if !defined escript_DataConstant_20040323_H
17  #define escript_DataConstant_20040323_H  #define escript_DataConstant_20040323_H
# Line 104  class DataConstant : public DataAbstract Line 106  class DataConstant : public DataAbstract
106    ESCRIPT_DLL_API    ESCRIPT_DLL_API
107    std::string    std::string
108    toString() const;    toString() const;
109     /**
110         \brief
111         dumps the object into a netCDF file
112      */
113      ESCRIPT_DLL_API
114      virtual
115      void
116      dump(const std::string fileName) const;
117    
118     /**
119         \brief
120        sets all values to zero
121      */
122      ESCRIPT_DLL_API
123      virtual
124      void
125      setToZero();
126    
127    /**    /**
128       \brief       \brief
# Line 166  class DataConstant : public DataAbstract Line 185  class DataConstant : public DataAbstract
185             const DataArrayView::RegionType& region);             const DataArrayView::RegionType& region);
186    
187    /**    /**
      \brief  
      Reshape the data point if the data point is currently rank 0.  
      The original data point value is used for all values of the new  
      data point.  
   */  
   ESCRIPT_DLL_API  
   void  
   reshapeDataPoint(const DataArrayView::ShapeType& shape);  
   
   /**  
188      \brief      \brief
189      Archive the underlying data values to the file referenced      Archive the underlying data values to the file referenced
190      by ofstream. A count of the number of values expected to be written      by ofstream. A count of the number of values expected to be written
# Line 246  class DataConstant : public DataAbstract Line 255  class DataConstant : public DataAbstract
255    
256    /**    /**
257       \brief       \brief
258       swaps components axis_offset and axis_offset+1       swaps components axis0 and axis1
259    
260       \param ev - Output - swapped components       \param ev - Output - swapped components
261    
262    */    */
263    ESCRIPT_DLL_API    ESCRIPT_DLL_API
264    virtual void    virtual void
265    swap(DataAbstract* ev, int axis_offset);    swapaxes(DataAbstract* ev, int axis0, int axis1);
266    
267    
268    /**    /**

Legend:
Removed from v.800  
changed lines
  Added in v.1388

  ViewVC Help
Powered by ViewVC 1.1.26