/[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

trunk/escript/src/DataConstant.h revision 2548 by jfenwick, Mon Jul 20 06:20:06 2009 UTC trunk/escriptcore/src/DataConstant.h revision 5863 by jfenwick, Wed Jan 13 02:25:48 2016 UTC
# Line 1  Line 1 
1    
2  /*******************************************************  /*****************************************************************************
3  *  *
4  * Copyright (c) 2003-2009 by University of Queensland  * Copyright (c) 2003-2016 by The University of Queensland
5  * Earth Systems Science Computational Center (ESSCC)  * http://www.uq.edu.au
 * http://www.uq.edu.au/esscc  
6  *  *
7  * Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
8  * Licensed under the Open Software License version 3.0  * Licensed under the Open Software License version 3.0
9  * http://www.opensource.org/licenses/osl-3.0.php  * http://www.opensource.org/licenses/osl-3.0.php
10  *  *
11  *******************************************************/  * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12    * Development 2012-2013 by School of Earth Sciences
13    * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14    *
15    *****************************************************************************/
16    
17    
18  #if !defined escript_DataConstant_20040323_H  #if !defined escript_DataConstant_20040323_H
# Line 19  Line 22 
22  #include "DataReady.h"  #include "DataReady.h"
23  #include "WrappedArray.h"  #include "WrappedArray.h"
24    
 #include <boost/python/numeric.hpp>  
25    
26  namespace escript {  namespace escript {
27    
# Line 87  typedef DataReady parent; Line 89  typedef DataReady parent;
89                 const DataTypes::ShapeType &shape,                 const DataTypes::ShapeType &shape,
90                 const DataTypes::ValueType &data);                 const DataTypes::ValueType &data);
91    
92      ESCRIPT_DLL_API
93      DataConstant(const FunctionSpace& what,
94                               const DataTypes::ShapeType &shape,
95                               const double v);
96              
97              
98    ESCRIPT_DLL_API    ESCRIPT_DLL_API
99    bool    bool
100    isConstant() const    isConstant() const
# Line 95  typedef DataReady parent; Line 102  typedef DataReady parent;
102      return true;      return true;
103    };    };
104    
105      /**
106      \brief Return true if the value contains a NaN.
107      */
108      ESCRIPT_DLL_API
109      bool
110      hasNaN() const;
111    
112      /**
113      \brief replaces all NaN values with value
114      */
115      ESCRIPT_DLL_API
116      void
117      replaceNaN(double value);
118    
119    /**    /**
120       \brief       \brief
# Line 272  typedef DataReady parent; Line 292  typedef DataReady parent;
292    
293    
294    /**    /**
295        \brief invert square matricies
296        \param out - Where to store the results
297        \return errorcode (0 indicates success)
298      */
299      ESCRIPT_DLL_API
300      virtual int
301      matrixInverse(DataAbstract* out) const;
302    
303      /**
304       \brief       \brief
305       Return a reference to the underlying DataVector.       Return a reference to the underlying DataVector.
306    */    */

Legend:
Removed from v.2548  
changed lines
  Added in v.5863

  ViewVC Help
Powered by ViewVC 1.1.26