/[escript]/trunk/escript/src/DataFactory.h
ViewVC logotype

Diff of /trunk/escript/src/DataFactory.h

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

trunk/esys2/escript/src/Data/DataFactory.h revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC trunk/escript/src/DataFactory.h revision 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC
# Line 1  Line 1 
1  // $Id$  
2  /*  /* $Id$ */
3   ******************************************************************************  
4   *                                                                            *  /*******************************************************
5   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *   *
6   *                                                                            *   *           Copyright 2003-2007 by ACceSS MNRF
7   * This software is the property of ACcESS. No part of this code              *   *       Copyright 2007 by University of Queensland
8   * may be copied in any form or by any means without the expressed written    *   *
9   * consent of ACcESS.  Copying, use or modification of this software          *   *                http://esscc.uq.edu.au
10   * by any unauthorised person is illegal unless that person has a software    *   *        Primary Business: Queensland, Australia
11   * license agreement with ACcESS.                                             *   *  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_DataFactory_20040721_H  #if !defined escript_DataFactory_20040721_H
17  #define escript_DataFactory_20040721_H  #define escript_DataFactory_20040721_H
18    #include "system_dep.h"
19    
20  #include "escript/Data/FunctionSpace.h"  #include "AbstractDomain.h"
21  #include "escript/Data/Data.h"  #include "FunctionSpace.h"
22    #include "Data.h"
23    
24  #include <boost/python/object.hpp>  #include <boost/python/object.hpp>
25    
# Line 39  namespace escript { Line 41  namespace escript {
41                       the value. Otherwise a more efficient storage                       the value. Otherwise a more efficient storage
42                       mechanism will be used.                       mechanism will be used.
43  */  */
44  Data  ESCRIPT_DLL_API Data
45  Scalar(double value,  Scalar(double value,
46         const FunctionSpace& what=FunctionSpace(),         const FunctionSpace& what=FunctionSpace(),
47         bool expanded=false);         bool expanded=false);
# Line 49  Scalar(double value, Line 51  Scalar(double value,
51     Return a Data object containing vector data-points.     Return a Data object containing vector data-points.
52     ie: rank 1 data-points.     ie: rank 1 data-points.
53  */  */
54  Data  ESCRIPT_DLL_API Data
55  Vector(double value,  Vector(double value,
56         const FunctionSpace& what=FunctionSpace(),         const FunctionSpace& what=FunctionSpace(),
57         bool expanded=false);         bool expanded=false);
# Line 59  Vector(double value, Line 61  Vector(double value,
61     Return a Data object containing tensor datapoints.     Return a Data object containing tensor datapoints.
62     ie: rank 2 data-points.     ie: rank 2 data-points.
63  */  */
64  Data  ESCRIPT_DLL_API Data
65  Tensor(double value,  Tensor(double value,
66         const FunctionSpace& what=FunctionSpace(),         const FunctionSpace& what=FunctionSpace(),
67         bool expanded=false);         bool expanded=false);
# Line 69  Tensor(double value, Line 71  Tensor(double value,
71     Return a Data object containing tensor3 datapoints.     Return a Data object containing tensor3 datapoints.
72     ie: rank 3 data-points.     ie: rank 3 data-points.
73  */  */
74  Data  ESCRIPT_DLL_API Data
75  Tensor3(double value,  Tensor3(double value,
76          const FunctionSpace& what=FunctionSpace(),          const FunctionSpace& what=FunctionSpace(),
77          bool expanded=false);          bool expanded=false);
# Line 79  Tensor3(double value, Line 81  Tensor3(double value,
81     Return a Data object containing tensor4 datapoints.     Return a Data object containing tensor4 datapoints.
82     ie: rank 4 data-points.     ie: rank 4 data-points.
83  */  */
84  Data  ESCRIPT_DLL_API Data
85  Tensor4(double value,  Tensor4(double value,
86          const FunctionSpace& what=FunctionSpace(),          const FunctionSpace& what=FunctionSpace(),
87          bool expanded=false);          bool expanded=false);
88    /**
89       \brief
90       reads Data on domain from file in netCDF format
91    */
92    ESCRIPT_DLL_API Data
93    load(const std::string fileName,
94         const AbstractDomain& domain);
95    /**
96       \brief
97       returns true if the load funtion is configured.
98    */
99    ESCRIPT_DLL_API bool
100    loadConfigured();
101    
102  /**  /**
103     \brief     \brief
# Line 91  Tensor4(double value, Line 106  Tensor4(double value,
106     interpolated data of values are returned. If value is not a data object it is tried to generate     interpolated data of values are returned. If value is not a data object it is tried to generate
107     the corresponding data object. escript::DataEmpty() is returned if value is identified as empty.     the corresponding data object. escript::DataEmpty() is returned if value is identified as empty.
108  */  */
109  Data  ESCRIPT_DLL_API Data
110  convertToData(const boost::python::object& value,  convertToData(const boost::python::object& value,
111                const FunctionSpace& what=FunctionSpace());                const FunctionSpace& what=FunctionSpace());
112    

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

  ViewVC Help
Powered by ViewVC 1.1.26