42 #ifndef ANASAZI_OUTPUT_STREAM_TRAITS_HPP 43 #define ANASAZI_OUTPUT_STREAM_TRAITS_HPP 52 #include "Teuchos_FancyOStream.hpp" 53 #include "Teuchos_RCP.hpp" 70 template<
class OperatorType>
75 static Teuchos::RCP<Teuchos::FancyOStream>
76 getOutputStream (
const OperatorType& ,
int rootRank = 0)
78 Teuchos::RCP<Teuchos::FancyOStream> fos = Teuchos::getFancyOStream(Teuchos::rcpFromRef(std::cout));
86 MPI_Initialized(&mpiStarted);
89 MPI_Comm_rank(MPI_COMM_WORLD, &myRank);
90 MPI_Comm_size(MPI_COMM_WORLD, &numProcs);
92 fos->setProcRankAndSize(myRank, numProcs);
93 fos->setOutputToRootOnly(rootRank);
Output managers remove the need for the eigensolver to know any information about the required output...
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package...
Anasazi header file which uses auto-configuration information to include necessary C++ headers...
Types and exceptions used within Anasazi solvers and interfaces.