/[escript]/trunk/escriptcore/src/DataConstant.cpp
ViewVC logotype

Diff of /trunk/escriptcore/src/DataConstant.cpp

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

revision 6468 by jfenwick, Wed Nov 2 06:09:25 2016 UTC revision 6469 by jfenwick, Tue Jan 17 07:45:36 2017 UTC
# Line 238  DataAbstract* DataConstant::deepCopy() c Line 238  DataAbstract* DataConstant::deepCopy() c
238  }  }
239    
240    
241    DataAbstract* DataConstant::zeroedCopy() const
242    {
243        DataConstant* p=0;
244        if (isComplex())
245        {
246            p=new DataConstant(this->getFunctionSpace(), this->getShape(), DataTypes::cplx_t(0));
247        }
248        else
249        {
250            p=new DataConstant(this->getFunctionSpace(), this->getShape(), DataTypes::real_t(0));
251        }
252        return p;
253    }
254    
255    
256    
257  DataTypes::RealVectorType::size_type  DataTypes::RealVectorType::size_type
258  DataConstant::getPointOffset(int sampleNo,  DataConstant::getPointOffset(int sampleNo,
259                               int dataPointNo) const                               int dataPointNo) const

Legend:
Removed from v.6468  
changed lines
  Added in v.6469

  ViewVC Help
Powered by ViewVC 1.1.26