~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to packages/sacado/test/performance/fad_expr.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Johannes Ring
  • Date: 2009-12-13 12:53:22 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213125322-in0nrdjc55deqsw9
Tags: 10.0.3.dfsg-1
[Christophe Prud'homme]
* New upstream release

[Johannes Ring]
* debian/patches/libname.patch: Add prefix 'libtrilinos_' to all
  libraries. 
* debian/patches/soname.patch: Add soversion to libraries.
* debian/watch: Update download URL.
* debian/control:
  - Remove python-numeric from Build-Depends (virtual package).
  - Remove automake and autotools from Build-Depends and add cmake to
    reflect switch to CMake.
  - Add python-support to Build-Depends.
* debian/rules: 
  - Cleanup and updates for switch to CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: fad_expr.cpp,v 1.5 2007/11/14 00:20:29 etphipp Exp $ 
2
 
// $Source: /space/CVS/Trilinos/packages/sacado/test/performance/fad_expr.cpp,v $ 
 
1
// $Id$ 
 
2
// $Source$ 
3
3
// @HEADER
4
4
// ***********************************************************************
5
5
// 
31
31
 
32
32
#include "Sacado_Random.hpp"
33
33
#include "Sacado.hpp"
 
34
#include "Sacado_CacheFad_DFad.hpp"
34
35
 
35
36
#include "Fad/fad.h"
36
37
#include "TinyFadET/tfad.h"
72
73
do_time(int nderiv, int nloop)
73
74
{
74
75
  FadType x1, x2, y;
75
 
  Sacado::Random urand(0.0, 1.0);
 
76
  Sacado::Random<double> urand(0.0, 1.0);
76
77
 
77
78
  x1 = FadType(nderiv,  urand.number());
78
79
  x2 = FadType(nderiv,  urand.number());
97
98
{
98
99
  double x1, x2, y;
99
100
  double *x1dot, *x2dot, *ydot;
100
 
  Sacado::Random urand(0.0, 1.0);
 
101
  Sacado::Random<double> urand(0.0, 1.0);
101
102
 
102
103
  x1 = urand.number();
103
104
  x2 = urand.number();
184
185
    
185
186
    t = do_time< Sacado::CacheFad::DFad<double> >(nderiv, nloop);
186
187
    std::cout << "CacheFad:  " << std::setw(w) << t << "\t" << std::setw(w) << t/ta << std::endl;
 
188
 
 
189
    t = do_time< Sacado::Fad::DVFad<double> >(nderiv, nloop);
 
190
    std::cout << "DVFad:     " << std::setw(w) << t << "\t" << std::setw(w) << t/ta << std::endl;
187
191
    
188
192
  }
189
193
  catch (std::exception& e) {