Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElastoPlasticTorsion uses removed interface #129

Open
bangerth opened this issue Apr 10, 2023 · 1 comment
Open

ElastoPlasticTorsion uses removed interface #129

bangerth opened this issue Apr 10, 2023 · 1 comment

Comments

@bangerth
Copy link
Member

This program uses the following virtual function:

  template <int dim>
  class ComputeMultiplier : public DataPostprocessor<dim>
  {
  private:
    double p;
  public:
    ComputeMultiplier (double pe);

    virtual
    void compute_derived_quantities_scalar (
      const std::vector< double > &,
      const std::vector< Tensor< 1, dim > > &,
      const std::vector< Tensor< 2, dim > > &,
      const std::vector< Point< dim > > &,
      const std::vector< Point< dim > > &,
      std::vector< Vector< double > > &
    ) const;

    virtual std::vector<std::string> get_names () const override;

    virtual
    std::vector<DataComponentInterpretation::DataComponentInterpretation>
    get_data_component_interpretation () const;
    virtual UpdateFlags get_needed_update_flags () const override;
  };

But the compute_derived_quantities_scalar () function has been removed. The class here should instead derive from DataPostprocessorScalar.

@marcfehling
Copy link
Member

marcfehling commented Sep 7, 2023

But the compute_derived_quantities_scalar () function has been removed.

The function has been deprecated in 8.5.1 and removed in 9.0.0 . The deprecation message suggests to use evaluate_scalar_field() instead. The code still compiles as evaluate_scalar_field() is not a pure virtual function, but instead triggers an assertion when called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants