00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef CHECK_DECOMPOSITION_FROM_PY_STEP_H
00030 #define CHECK_DECOMPOSITION_FROM_PY_STEP_H
00031
00032 #include "MoochoPack_NewDecompositionSelection_Strategy.hpp"
00033 #include "IterationPack_AlgorithmStep.hpp"
00034 #include "Teuchos_StandardCompositionMacros.hpp"
00035 #include "Teuchos_StandardMemberCompositionMacros.hpp"
00036
00037 namespace MoochoPack {
00038
00063 class CheckDecompositionFromPy_Step
00064 : public IterationPack::AlgorithmStep
00065 {
00066 public:
00067
00069 STANDARD_COMPOSITION_MEMBERS( NewDecompositionSelection_Strategy, new_decomp_strategy );
00071 STANDARD_MEMBER_COMPOSITION_MEMBERS( value_type, max_decomposition_cond_change_frac );
00073 STANDARD_MEMBER_COMPOSITION_MEMBERS( value_type, max_cond );
00074
00076 CheckDecompositionFromPy_Step(
00077 const new_decomp_strategy_ptr_t &new_decomp_strategy
00078 ,value_type max_decomposition_cond_change_frac = 100.0
00079 );
00080
00082 void reset();
00083
00087 bool do_step(Algorithm& algo, poss_type step_poss, IterationPack::EDoStepType type
00088 , poss_type assoc_step_poss);
00090 void print_step( const Algorithm& algo, poss_type step_poss, IterationPack::EDoStepType type
00091 , poss_type assoc_step_poss, std::ostream& out, const std::string& leading_str ) const;
00093
00094 private:
00095
00096 value_type beta_min_;
00097
00098
00099 CheckDecompositionFromPy_Step();
00100
00101 };
00102
00103 }
00104
00105 #endif // CHECK_DECOMPOSITION_FROM_PY_STEP_H