51 using namespace Teuchos;
63 int main(
int argc,
char* argv[])
71 MPI_Init(&argc, &argv);
75 for( i=-100; i<100; i++ ) {
81 for( i=0; i<100; i++ ) {
103 return ( x*x - 1.0 );
113 if( x == 0 )
return 0.0;
114 if( x == 1 )
return 1.0;
117 return ( (
double) x *
factFunc(x-1) );
double quadFunc(double x)
static void summarize(Ptr< const Comm< int > > comm, std::ostream &out=std::cout, const bool alwaysWriteLocal=false, const bool writeGlobalStats=true, const bool writeZeroTimers=true, const ECounterSetOp setOp=Intersection, const std::string &filter="", const bool ignoreZeroTimers=false)
Print summary statistics for all timers on the given communicator.
std::string Teuchos_Version()
int main(int argc, char *argv[])
Scope protection wrapper for Teuchos::Time, with timer reporting functionality.
Smart reference counting pointer class for automatic garbage collection.
A scope-safe timer wrapper class, that can compute global timer statistics.