|
IterationPack: General framework for building iterative algorithms Version of the Day
|
00001 // ///////////////////////////////////////////////////// 00002 // IterQuantity.cpp 00003 00004 #include "IterationPack_IterQuantity.hpp" 00005 #include "Teuchos_TestForException.hpp" 00006 00007 namespace IterationPack { 00008 00009 void IterQuantity::assert_has_storage_k(int offset) const { 00010 if(!has_storage_k(offset)) 00011 TEST_FOR_EXCEPTION( 00012 true, NoStorageAvailable 00013 ,"IterQuantity::assert_has_storage_k(offset) : There is not storage available for " 00014 << name() << " for the k" << std::showpos << offset << " iteration" ); 00015 } 00016 00017 void IterQuantity::assert_updated_k(int offset) const { 00018 if(!updated_k(offset)) 00019 TEST_FOR_EXCEPTION( 00020 true, QuanityNotSet 00021 ,"IterQuantity::assert_updated_k(offset) : The interation quantity " << name() 00022 << " has not been been updated for the k" << std::showpos << offset 00023 << " iteration yet." ); 00024 } 00025 00026 } // end namespace IterationPack
1.7.4