/[escript]/trunk/escript/test/DataTestCase.cpp
ViewVC logotype

Diff of /trunk/escript/test/DataTestCase.cpp

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

revision 1354 by matt, Mon Oct 1 06:28:24 2007 UTC revision 1355 by ksteube, Thu Nov 29 00:53:31 2007 UTC
# Line 760  void DataTestCase::testOperations() { Line 760  void DataTestCase::testOperations() {
760    resultTag.copy(baseTag.powD(power));    resultTag.copy(baseTag.powD(power));
761    for (int i=0;i<shape[0];i++) {    for (int i=0;i<shape[0];i++) {
762      for (int j=0;j<shape[1];j++) {      for (int j=0;j<shape[1];j++) {
763        tmp=pow(dataView.index(i,j),3.0);        tmp=pow((double)dataView.index(i,j),(double)3.0);
764        assert(std::abs(resultEx.getPointDataView()(i,j) - tmp) <= REL_TOL*std::abs(tmp));        assert(std::abs(resultEx.getPointDataView()(i,j) - tmp) <= REL_TOL*std::abs(tmp));
765        assert(std::abs(resultCon.getPointDataView()(i,j)- tmp) <= REL_TOL*std::abs(tmp));        assert(std::abs(resultCon.getPointDataView()(i,j)- tmp) <= REL_TOL*std::abs(tmp));
766        assert(std::abs(resultTag.getPointDataView()(i,j)- tmp) <= REL_TOL*std::abs(tmp));        assert(std::abs(resultTag.getPointDataView()(i,j)- tmp) <= REL_TOL*std::abs(tmp));

Legend:
Removed from v.1354  
changed lines
  Added in v.1355

  ViewVC Help
Powered by ViewVC 1.1.26