/[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 1026 by phornby, Tue Mar 13 08:25:00 2007 UTC revision 1131 by gross, Tue May 8 05:52:21 2007 UTC
# Line 758  void DataTestCase::testOperations() { Line 758  void DataTestCase::testOperations() {
758    resultTag.copy(baseTag.powD(power));    resultTag.copy(baseTag.powD(power));
759    for (int i=0;i<shape[0];i++) {    for (int i=0;i<shape[0];i++) {
760      for (int j=0;j<shape[1];j++) {      for (int j=0;j<shape[1];j++) {
761        tmp=pow(dataView.index(i,j),3.0);        double arg=dataView.index(i,j);
762          tmp=pow(arg,3.0);
763        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));
764        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));
765        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.1026  
changed lines
  Added in v.1131

  ViewVC Help
Powered by ViewVC 1.1.26