TimeStepComputer::TimeStepComputer ( const std::string& name ) :
  common::Action(name)
{
  regist_typeinfo(this);

  options().add("time_accurate", true)
    .description("Time Accurate")
    .pretty_name("Time Accurate")
    .mark_basic()
    .add_tag("time_accurate");

  options().add("time_step", m_time_step)
    .description("Time step")
    .pretty_name("Time step")
    .link_to(&m_time_step);

  options().add("wave_speed", m_wave_speed)
    .description("Wave Speed divided by characteristic length")
    .pretty_name("Wave Speed")
    .link_to(&m_wave_speed);

  options().add("time", m_time)
    .description("Time Tracking component")
    .pretty_name("Time")
    .link_to(&m_time);

  regist_signal ( "max_cfl" )
      .description( "Get the maximum cfl number" )
      .pretty_name("Maximum CFL" )
      .connect   ( boost::bind ( &TimeStepComputer::signal_max_cfl,    this, _1 ) )
      .signature ( boost::bind ( &TimeStepComputer::signature_max_cfl, this, _1 ) );
}
示例#2
0
文件: Map.hpp 项目: xyuan/coolfluid3
  /// Contructor
  /// @param[in] name of the component
  Map ( const std::string& name ) : Component(name)
  {
		regist_typeinfo(this);
  }