/[escript]/trunk/escript/src/Data.cpp
ViewVC logotype

Diff of /trunk/escript/src/Data.cpp

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

revision 3389 by jfenwick, Fri Nov 19 05:59:46 2010 UTC revision 3390 by jfenwick, Thu Dec 2 00:34:37 2010 UTC
# Line 423  Data::Data(const object& value, Line 423  Data::Data(const object& value,
423    m_protected=false;    m_protected=false;
424  }  }
425    
426    
427  Data::~Data()  Data::~Data()
428  {  {
429    set_m_data(DataAbstract_ptr());    set_m_data(DataAbstract_ptr());
# Line 4238  escript::condEval(escript::Data& mask, e Line 4239  escript::condEval(escript::Data& mask, e
4239      }      }
4240    
4241  }  }
4242    
4243    
4244    Data escript::randomData(const boost::python::tuple& shape,
4245           const FunctionSpace& what,
4246           double seed)
4247    {
4248        Data   towipe(0, shape, what, true);
4249        DataExpanded* de=dynamic_cast<DataExpanded*>(towipe.m_data.get());
4250        if (de==0)
4251        {
4252        throw DataException("Programmer Error: Expanded data is not expanded");
4253        }
4254        de->randomFill(seed);
4255        return towipe;
4256    }

Legend:
Removed from v.3389  
changed lines
  Added in v.3390

  ViewVC Help
Powered by ViewVC 1.1.26