Example #1
0
  void MultiQoIBase::add_qoi(const QoIBase & qoi)
  {
    _qois.push_back(std::unique_ptr<QoIBase>(qoi.clone()));
    _qoi_vals.push_back(0.0);

    if(qoi.assemble_on_sides())
        _assemble_sides = true;

    if(qoi.assemble_on_interior())
        _assemble_interior = true;

  }
Example #2
0
  void CompositeQoI::add_qoi( const QoIBase& qoi )
  {
    _qois.push_back( qoi.clone() );

    if( qoi.assemble_on_interior() )
      {
        this->assemble_qoi_elements = true;
      }

    if( qoi.assemble_on_sides() )
      {
        this->assemble_qoi_sides = true;
      }

    return;
  }