46 #ifndef MUELU_REPARTITIONBLOCKDIAGONALFACTORY_DEF_HPP_ 
   47 #define MUELU_REPARTITIONBLOCKDIAGONALFACTORY_DEF_HPP_ 
   60 #include "MueLu_Utilities.hpp" 
   64  template <
class Scalar, 
class LocalOrdinal, 
class GlobalOrdinal, 
class Node>
 
   69     return validParamList;
 
   73   template <
class Scalar, 
class LocalOrdinal, 
class GlobalOrdinal, 
class Node>
 
   75     Input(currentLevel, 
"A");
 
   78   template <
class Scalar, 
class LocalOrdinal, 
class GlobalOrdinal, 
class Node>
 
   83     RCP<Matrix> originalA = Get< RCP<Matrix> >(currentLevel, 
"A");    
 
   84     RCP<BlockCrs> A = Teuchos::rcp_dynamic_cast<BlockCrs>(originalA);
 
   91     for(
size_t i=0; i< A->Rows(); i++)
 
   92       DiagonalMatrix->setMatrix(i,i,A->getMatrix(i,i));
 
   94     Set(currentLevel,
"A",Teuchos::rcp_dynamic_cast<Matrix>(DiagonalMatrix));
 
Exception indicating invalid cast attempted. 
 
RCP< const ParameterList > GetValidParameterList() const 
Return a const parameter list of valid parameters that setParameterList() will accept. 
 
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
 
Timer to be used in factories. Similar to Monitor but with additional timers. 
 
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
 
void DeclareInput(Level &level) const 
Specifies the data that this class needs, and the factories that generate that data. 
 
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
 
Class that holds all level-specific information. 
 
void Build(Level &level) const 
Build an object with this factory.