From f4f77f0884a48075da836939cebe3ee0ac179abf Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 1 Jul 2024 15:51:49 -0600 Subject: [PATCH] Rename plugin manager member functions. --- include/aspect/boundary_composition/interface.h | 12 ++++++------ include/aspect/boundary_temperature/interface.h | 12 ++++++------ include/aspect/heating_model/interface.h | 12 ++++++------ include/aspect/initial_composition/interface.h | 12 ++++++------ include/aspect/initial_temperature/interface.h | 12 ++++++------ include/aspect/mesh_refinement/interface.h | 12 ++++++------ include/aspect/particle/property/interface.h | 12 ++++++------ include/aspect/plugins.h | 10 +++++----- include/aspect/postprocess/interface.h | 14 +++++++------- source/boundary_temperature/dynamic_core.cc | 4 ++-- source/heating_model/interface.cc | 4 ++-- source/particle/property/cpo_bingham_average.cc | 2 +- source/particle/property/cpo_elastic_tensor.cc | 2 +- source/postprocess/core_statistics.cc | 2 +- .../postprocess/crystal_preferred_orientation.cc | 2 +- source/postprocess/dynamic_topography.cc | 2 +- source/postprocess/geoid.cc | 6 +++--- source/postprocess/sea_level.cc | 6 +++--- .../visualization/boundary_strain_rate_residual.cc | 4 ++-- .../visualization/boundary_velocity_residual.cc | 2 +- .../visualization/dynamic_topography.cc | 2 +- source/postprocess/visualization/geoid.cc | 2 +- source/postprocess/visualization/shear_stress.cc | 2 +- source/postprocess/visualization/strain_rate.cc | 2 +- .../visualization/strain_rate_tensor.cc | 2 +- source/postprocess/visualization/stress.cc | 2 +- .../visualization/stress_second_invariant.cc | 2 +- .../visualization/surface_dynamic_topography.cc | 2 +- .../visualization/surface_strain_rate_tensor.cc | 2 +- source/postprocess/visualization/surface_stress.cc | 2 +- .../visualization/volumetric_strain_rate.cc | 2 +- source/simulator/core.cc | 2 +- source/simulator/helper_functions.cc | 2 +- source/volume_of_fluid/handler.cc | 2 +- .../screen-output | 2 +- tests/find_mesh_refinement_fail_1/screen-output | 2 +- tests/find_postprocess_fail_1/screen-output | 2 +- 37 files changed, 89 insertions(+), 89 deletions(-) diff --git a/include/aspect/boundary_composition/interface.h b/include/aspect/boundary_composition/interface.h index 7a2d9ac99d0..45a5511dd87 100644 --- a/include/aspect/boundary_composition/interface.h +++ b/include/aspect/boundary_composition/interface.h @@ -160,8 +160,8 @@ namespace aspect * argument) is a class derived from the Interface class in this namespace. * * @deprecated Instead of this function, use the - * Plugins::ManagerBase::has_matching_plugin() and - * Plugins::ManagerBase::get_matching_plugin() functions of the base + * Plugins::ManagerBase::has_matching_active_plugin() and + * Plugins::ManagerBase::get_matching_active_plugin() functions of the base * class of the current class. */ template ::has_matching_boundary_composition_model () const { - return this->template has_matching_plugin(); + return this->template has_matching_active_plugin(); } @@ -269,7 +269,7 @@ namespace aspect const BoundaryCompositionType & Manager::get_matching_boundary_composition_model () const { - return this->template get_matching_plugin(); + return this->template get_matching_active_plugin(); } diff --git a/include/aspect/boundary_temperature/interface.h b/include/aspect/boundary_temperature/interface.h index 603e46479b8..f00d8e8eb9a 100644 --- a/include/aspect/boundary_temperature/interface.h +++ b/include/aspect/boundary_temperature/interface.h @@ -194,8 +194,8 @@ namespace aspect * argument) is a class derived from the Interface class in this namespace. * * @deprecated Instead of this function, use the - * Plugins::ManagerBase::has_matching_plugin() and - * Plugins::ManagerBase::get_matching_plugin() functions of the base + * Plugins::ManagerBase::has_matching_active_plugin() and + * Plugins::ManagerBase::get_matching_active_plugin() functions of the base * class of the current class. */ template ::has_matching_boundary_temperature_model () const { - return this->template has_matching_plugin(); + return this->template has_matching_active_plugin(); } @@ -302,7 +302,7 @@ namespace aspect const BoundaryTemperatureType & Manager::get_matching_boundary_temperature_model () const { - return this->template get_matching_plugin(); + return this->template get_matching_active_plugin(); } diff --git a/include/aspect/heating_model/interface.h b/include/aspect/heating_model/interface.h index dfc6bd39b1d..571c806717c 100644 --- a/include/aspect/heating_model/interface.h +++ b/include/aspect/heating_model/interface.h @@ -275,8 +275,8 @@ namespace aspect * argument) is a class derived from the Interface class in this namespace. * * @deprecated Instead of this function, use the - * Plugins::ManagerBase::has_matching_plugin() and - * Plugins::ManagerBase::get_matching_plugin() functions of the base + * Plugins::ManagerBase::has_matching_active_plugin() and + * Plugins::ManagerBase::get_matching_active_plugin() functions of the base * class of the current class. */ template ::has_matching_heating_model () const { - return this->template has_matching_plugin(); + return this->template has_matching_active_plugin(); } @@ -349,7 +349,7 @@ namespace aspect const HeatingModelType & Manager::get_matching_heating_model () const { - return this->template get_matching_plugin(); + return this->template get_matching_active_plugin(); } diff --git a/include/aspect/initial_composition/interface.h b/include/aspect/initial_composition/interface.h index f73bef3d189..c001a0af9d8 100644 --- a/include/aspect/initial_composition/interface.h +++ b/include/aspect/initial_composition/interface.h @@ -149,8 +149,8 @@ namespace aspect * argument) is a class derived from the Interface class in this namespace. * * @deprecated Instead of this function, use the - * Plugins::ManagerBase::has_matching_plugin() and - * Plugins::ManagerBase::get_matching_plugin() functions of the base + * Plugins::ManagerBase::has_matching_active_plugin() and + * Plugins::ManagerBase::get_matching_active_plugin() functions of the base * class of the current class. */ template ::has_matching_initial_composition_model () const { - return this->template has_matching_plugin(); + return this->template has_matching_active_plugin(); } @@ -230,7 +230,7 @@ namespace aspect const InitialCompositionType & Manager::get_matching_initial_composition_model () const { - return this->template get_matching_plugin(); + return this->template get_matching_active_plugin(); } diff --git a/include/aspect/initial_temperature/interface.h b/include/aspect/initial_temperature/interface.h index 0c287e9a70c..1496b37d438 100644 --- a/include/aspect/initial_temperature/interface.h +++ b/include/aspect/initial_temperature/interface.h @@ -146,8 +146,8 @@ namespace aspect * argument) is a class derived from the Interface class in this namespace. * * @deprecated Instead of this function, use the - * Plugins::ManagerBase::has_matching_plugin() and - * Plugins::ManagerBase::get_matching_plugin() functions of the base + * Plugins::ManagerBase::has_matching_active_plugin() and + * Plugins::ManagerBase::get_matching_active_plugin() functions of the base * class of the current class. */ template ::has_matching_initial_temperature_model () const { - return this->template has_matching_plugin(); + return this->template has_matching_active_plugin(); } @@ -228,7 +228,7 @@ namespace aspect const InitialTemperatureType & Manager::get_matching_initial_temperature_model () const { - return this->template get_matching_plugin(); + return this->template get_matching_active_plugin(); } diff --git a/include/aspect/mesh_refinement/interface.h b/include/aspect/mesh_refinement/interface.h index c9b70a74bd0..477e6868319 100644 --- a/include/aspect/mesh_refinement/interface.h +++ b/include/aspect/mesh_refinement/interface.h @@ -162,8 +162,8 @@ namespace aspect * argument) is a class derived from the Interface class in this namespace. * * @deprecated Instead of this function, use the - * Plugins::ManagerBase::has_matching_plugin() and - * Plugins::ManagerBase::get_matching_plugin() functions of the base + * Plugins::ManagerBase::has_matching_active_plugin() and + * Plugins::ManagerBase::get_matching_active_plugin() functions of the base * class of the current class. */ template ::has_matching_mesh_refinement_strategy () const { - return this->template has_matching_plugin(); + return this->template has_matching_active_plugin(); } @@ -284,7 +284,7 @@ namespace aspect const MeshRefinementType & Manager::get_matching_mesh_refinement_strategy () const { - return this->template get_matching_plugin(); + return this->template get_matching_active_plugin(); } diff --git a/include/aspect/particle/property/interface.h b/include/aspect/particle/property/interface.h index c159f4c8187..7b6184847b1 100644 --- a/include/aspect/particle/property/interface.h +++ b/include/aspect/particle/property/interface.h @@ -616,8 +616,8 @@ namespace aspect * argument) is a class derived from the Interface class in this namespace. * * @deprecated Instead of this function, use the - * Plugins::ManagerBase::has_matching_plugin() and - * Plugins::ManagerBase::get_matching_plugin() functions of the base + * Plugins::ManagerBase::has_matching_active_plugin() and + * Plugins::ManagerBase::get_matching_active_plugin() functions of the base * class of the current class. */ template ::has_matching_property () const { - return this->template has_matching_plugin(); + return this->template has_matching_active_plugin(); } @@ -780,7 +780,7 @@ namespace aspect const ParticlePropertyType & Manager::get_matching_property () const { - return this->template get_matching_plugin(); + return this->template get_matching_active_plugin(); } diff --git a/include/aspect/plugins.h b/include/aspect/plugins.h index 2f11d74f580..68f89b71786 100644 --- a/include/aspect/plugins.h +++ b/include/aspect/plugins.h @@ -237,7 +237,7 @@ namespace aspect template ::value>> bool - has_matching_plugin () const; + has_matching_active_plugin () const; /** * Go through the list of all plugins that have been selected @@ -253,7 +253,7 @@ namespace aspect template ::value>> const PluginType & - get_matching_plugin () const; + get_matching_active_plugin () const; protected: /** @@ -343,7 +343,7 @@ namespace aspect template inline bool - ManagerBase::has_matching_plugin () const + ManagerBase::has_matching_active_plugin () const { for (const auto &p : plugin_objects) if (Plugins::plugin_type_matches(*p)) @@ -356,9 +356,9 @@ namespace aspect template inline const PluginType & - ManagerBase::get_matching_plugin () const + ManagerBase::get_matching_active_plugin () const { - AssertThrow(has_matching_plugin (), + AssertThrow(has_matching_active_plugin (), ExcMessage("You asked the object managing a collection of plugins for a " "plugin object of type <" + boost::core::demangle(typeid(PluginType).name()) + "> " "that could not be found in the current model. You need to " diff --git a/include/aspect/postprocess/interface.h b/include/aspect/postprocess/interface.h index e4ef8080e03..861d22b3fe1 100644 --- a/include/aspect/postprocess/interface.h +++ b/include/aspect/postprocess/interface.h @@ -111,7 +111,7 @@ namespace aspect * This can be done by deriving your postprocessor from * SimulatorAccess, and then using the * SimulatorAccess::get_postprocess_manager() function, followed - * by asking the resulting object via get_matching_plugin() + * by asking the resulting object via get_matching_active_plugin() * for a specific postprocessor object. */ virtual @@ -196,8 +196,8 @@ namespace aspect * argument) is a class derived from the Interface class in this namespace. * * @deprecated Instead of this function, use the - * Plugins::ManagerBase::has_matching_plugin() and - * Plugins::ManagerBase::get_matching_plugin() functions of the base + * Plugins::ManagerBase::has_matching_active_plugin() and + * Plugins::ManagerBase::get_matching_active_plugin() functions of the base * class of the current class. */ template ::has_matching_postprocessor () const { - return this->template has_matching_plugin(); + return this->template has_matching_active_plugin(); } @@ -363,7 +363,7 @@ namespace aspect const PostprocessorType & Manager::get_matching_postprocessor () const { - return this->template get_matching_plugin(); + return this->template get_matching_active_plugin(); } diff --git a/source/boundary_temperature/dynamic_core.cc b/source/boundary_temperature/dynamic_core.cc index c1a386c0c02..0ed0dc1aec5 100644 --- a/source/boundary_temperature/dynamic_core.cc +++ b/source/boundary_temperature/dynamic_core.cc @@ -594,11 +594,11 @@ namespace aspect // It is not available at the time initialize() function of boundary temperature is called. if (is_first_call==true) { - AssertThrow(this->get_postprocess_manager().template has_matching_plugin>(), + AssertThrow(this->get_postprocess_manager().template has_matching_active_plugin>(), ExcMessage ("Dynamic core boundary condition has to work with dynamic core statistics postprocessor.")); const Postprocess::CoreStatistics &core_statistics - = this->get_postprocess_manager().template get_matching_plugin>(); + = this->get_postprocess_manager().template get_matching_active_plugin>(); // The restart data is stored in 'core statistics' postprocessor. // If restart from checkpoint, extract data from there. core_data = core_statistics.get_core_data(); diff --git a/source/heating_model/interface.cc b/source/heating_model/interface.cc index b19eb087f08..a9293e8480a 100644 --- a/source/heating_model/interface.cc +++ b/source/heating_model/interface.cc @@ -59,7 +59,7 @@ namespace aspect bool Manager::adiabatic_heating_enabled() const { - return this->template has_matching_plugin>() ; + return this->template has_matching_active_plugin>() ; } @@ -68,7 +68,7 @@ namespace aspect bool Manager::shear_heating_enabled() const { - return this->template has_matching_plugin>() ; + return this->template has_matching_active_plugin>() ; } diff --git a/source/particle/property/cpo_bingham_average.cc b/source/particle/property/cpo_bingham_average.cc index 6c29000e3fa..cfdfd423a32 100644 --- a/source/particle/property/cpo_bingham_average.cc +++ b/source/particle/property/cpo_bingham_average.cc @@ -252,7 +252,7 @@ namespace aspect { // Get a pointer to the CPO particle property. cpo_particle_property = std::make_unique> ( - this->get_particle_world(this->get_particle_world_index()).get_property_manager().template get_matching_plugin>()); + this->get_particle_world(this->get_particle_world_index()).get_property_manager().template get_matching_active_plugin>()); random_number_seed = prm.get_integer ("Random number seed"); n_grains = cpo_particle_property->get_number_of_grains(); diff --git a/source/particle/property/cpo_elastic_tensor.cc b/source/particle/property/cpo_elastic_tensor.cc index 514000be41d..5a947da1d37 100644 --- a/source/particle/property/cpo_elastic_tensor.cc +++ b/source/particle/property/cpo_elastic_tensor.cc @@ -147,7 +147,7 @@ namespace aspect { // Get a reference to the CPO particle property. const Particle::Property::CrystalPreferredOrientation &cpo_particle_property = - this->get_particle_world(this->get_particle_world_index()).get_property_manager().template get_matching_plugin>(); + this->get_particle_world(this->get_particle_world_index()).get_property_manager().template get_matching_active_plugin>(); const SymmetricTensor<2,6> C_average = voigt_average_elastic_tensor(cpo_particle_property, diff --git a/source/postprocess/core_statistics.cc b/source/postprocess/core_statistics.cc index 64d80c18dc0..1a86bd31f37 100644 --- a/source/postprocess/core_statistics.cc +++ b/source/postprocess/core_statistics.cc @@ -47,7 +47,7 @@ namespace aspect std::ostringstream screen_text; const BoundaryTemperature::DynamicCore &dynamic_core = - this->get_boundary_temperature_manager().template get_matching_plugin>(); + this->get_boundary_temperature_manager().template get_matching_active_plugin>(); core_data = dynamic_core.get_core_data(); diff --git a/source/postprocess/crystal_preferred_orientation.cc b/source/postprocess/crystal_preferred_orientation.cc index 7ebc0d7405e..38bdd6b9054 100644 --- a/source/postprocess/crystal_preferred_orientation.cc +++ b/source/postprocess/crystal_preferred_orientation.cc @@ -180,7 +180,7 @@ namespace aspect // Get a reference to the CPO particle property. const Particle::Property::CrystalPreferredOrientation &cpo_particle_property = - manager.template get_matching_plugin>(); + manager.template get_matching_active_plugin>(); const unsigned int n_grains = cpo_particle_property.get_number_of_grains(); const unsigned int n_minerals = cpo_particle_property.get_number_of_minerals(); diff --git a/source/postprocess/dynamic_topography.cc b/source/postprocess/dynamic_topography.cc index 47a183105cb..09600ddf48c 100644 --- a/source/postprocess/dynamic_topography.cc +++ b/source/postprocess/dynamic_topography.cc @@ -35,7 +35,7 @@ namespace aspect DynamicTopography::execute (TableHandler &) { const Postprocess::BoundaryPressures &boundary_pressures = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); // Get the average pressure at the top and bottom boundaries. // This will be used to compute the dynamic pressure at the boundaries. diff --git a/source/postprocess/geoid.cc b/source/postprocess/geoid.cc index a69a397a8dc..70c8353b2a8 100644 --- a/source/postprocess/geoid.cc +++ b/source/postprocess/geoid.cc @@ -182,7 +182,7 @@ namespace aspect { // Get a pointer to the boundary densities postprocessor. const Postprocess::BoundaryDensities<3> &boundary_densities = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); const double top_layer_average_density = boundary_densities.density_at_top(); const double bottom_layer_average_density = boundary_densities.density_at_bottom(); @@ -270,7 +270,7 @@ namespace aspect { // Get a reference to the dynamic topography postprocessor. const Postprocess::DynamicTopography<3> &dynamic_topography = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); // Get the already-computed dynamic topography solution. const LinearAlgebra::BlockVector &topo_vector = dynamic_topography.topography_vector(); @@ -317,7 +317,7 @@ namespace aspect { // Get a reference to the dynamic topography postprocessor. const Postprocess::DynamicTopography<3> &dynamic_topography = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); // Get the already-computed dynamic topography solution. const LinearAlgebra::BlockVector &topo_vector = dynamic_topography.topography_vector(); diff --git a/source/postprocess/sea_level.cc b/source/postprocess/sea_level.cc index 606fde34fda..ff5c067414d 100644 --- a/source/postprocess/sea_level.cc +++ b/source/postprocess/sea_level.cc @@ -84,7 +84,7 @@ namespace aspect const int dim = 3; const Postprocess::Geoid &geoid = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); const double geoid_displacement = geoid.evaluate(position); // TODO: check sign of geoid_displacement const double topography = this->get_geometry_model().height_above_reference_surface(position); @@ -125,7 +125,7 @@ namespace aspect const types::boundary_id top_boundary_id = this->get_geometry_model().translate_symbolic_boundary_name_to_id("top"); const Postprocess::Geoid &geoid = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); const unsigned int quadrature_degree = this->introspection().polynomial_degree.temperature; const QGauss quadrature_formula_face(quadrature_degree); @@ -266,7 +266,7 @@ namespace aspect const types::boundary_id top_boundary_id = this->get_geometry_model().translate_symbolic_boundary_name_to_id("top"); const Postprocess::Geoid &geoid = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); // Get the sea level offset (constant for every location). sea_level_offset = compute_sea_level_offset(); diff --git a/source/postprocess/visualization/boundary_strain_rate_residual.cc b/source/postprocess/visualization/boundary_strain_rate_residual.cc index c41ec11caf6..578c5cb5d79 100644 --- a/source/postprocess/visualization/boundary_strain_rate_residual.cc +++ b/source/postprocess/visualization/boundary_strain_rate_residual.cc @@ -73,7 +73,7 @@ namespace aspect const double unit_scaling_factor = this->convert_output_to_years() ? year_in_seconds : 1.0; const Postprocess::BoundaryStrainRateResidualStatistics &boundary_strain_rate_residual_statistics = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); // We only want the output at the top boundary, so only compute it if the current cell // has a face at the top boundary. @@ -106,7 +106,7 @@ namespace aspect } - const auto &viz = this->get_postprocess_manager().template get_matching_plugin>(); + const auto &viz = this->get_postprocess_manager().template get_matching_active_plugin>(); if (!viz.output_pointwise_stress_and_strain()) average_quantities(computed_quantities); diff --git a/source/postprocess/visualization/boundary_velocity_residual.cc b/source/postprocess/visualization/boundary_velocity_residual.cc index 515f85d1a64..b1835cafda6 100644 --- a/source/postprocess/visualization/boundary_velocity_residual.cc +++ b/source/postprocess/visualization/boundary_velocity_residual.cc @@ -68,7 +68,7 @@ namespace aspect this->convert_output_to_years() ? year_in_seconds : 1.0; const Postprocess::BoundaryVelocityResidualStatistics &boundary_velocity_residual_statistics = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); // We only want the output at the top boundary, so only compute it if the current cell // has a face at the top boundary. diff --git a/source/postprocess/visualization/dynamic_topography.cc b/source/postprocess/visualization/dynamic_topography.cc index 6c263feec2d..875b306741d 100644 --- a/source/postprocess/visualization/dynamic_topography.cc +++ b/source/postprocess/visualization/dynamic_topography.cc @@ -50,7 +50,7 @@ namespace aspect quantity(0) = 0; const Postprocess::DynamicTopography &dynamic_topography = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); auto cell = input_data.template get_cell(); diff --git a/source/postprocess/visualization/geoid.cc b/source/postprocess/visualization/geoid.cc index 8a3c9b631b6..60e91d84ab0 100644 --- a/source/postprocess/visualization/geoid.cc +++ b/source/postprocess/visualization/geoid.cc @@ -68,7 +68,7 @@ namespace aspect quantity(0) = 0; const Postprocess::Geoid &geoid = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); auto cell = input_data.template get_cell(); diff --git a/source/postprocess/visualization/shear_stress.cc b/source/postprocess/visualization/shear_stress.cc index d45162f77b4..eb67b7d3ed3 100644 --- a/source/postprocess/visualization/shear_stress.cc +++ b/source/postprocess/visualization/shear_stress.cc @@ -111,7 +111,7 @@ namespace aspect } // average the values if requested - const auto &viz = this->get_postprocess_manager().template get_matching_plugin>(); + const auto &viz = this->get_postprocess_manager().template get_matching_active_plugin>(); if (!viz.output_pointwise_stress_and_strain()) average_quantities(computed_quantities); } diff --git a/source/postprocess/visualization/strain_rate.cc b/source/postprocess/visualization/strain_rate.cc index c7b1f908c9d..a3ee7e90ca9 100644 --- a/source/postprocess/visualization/strain_rate.cc +++ b/source/postprocess/visualization/strain_rate.cc @@ -65,7 +65,7 @@ namespace aspect } // average the values if requested - const auto &viz = this->get_postprocess_manager().template get_matching_plugin>(); + const auto &viz = this->get_postprocess_manager().template get_matching_active_plugin>(); if (!viz.output_pointwise_stress_and_strain()) average_quantities(computed_quantities); } diff --git a/source/postprocess/visualization/strain_rate_tensor.cc b/source/postprocess/visualization/strain_rate_tensor.cc index 70184778966..ccc2223f824 100644 --- a/source/postprocess/visualization/strain_rate_tensor.cc +++ b/source/postprocess/visualization/strain_rate_tensor.cc @@ -71,7 +71,7 @@ namespace aspect = deviatoric_strain_rate[d][e]; } - const auto &viz = this->get_postprocess_manager().template get_matching_plugin>(); + const auto &viz = this->get_postprocess_manager().template get_matching_active_plugin>(); if (!viz.output_pointwise_stress_and_strain()) average_quantities(computed_quantities); diff --git a/source/postprocess/visualization/stress.cc b/source/postprocess/visualization/stress.cc index a3c64b3a878..0e6cf268b00 100644 --- a/source/postprocess/visualization/stress.cc +++ b/source/postprocess/visualization/stress.cc @@ -111,7 +111,7 @@ namespace aspect } // average the values if requested - const auto &viz = this->get_postprocess_manager().template get_matching_plugin>(); + const auto &viz = this->get_postprocess_manager().template get_matching_active_plugin>(); if (!viz.output_pointwise_stress_and_strain()) average_quantities(computed_quantities); } diff --git a/source/postprocess/visualization/stress_second_invariant.cc b/source/postprocess/visualization/stress_second_invariant.cc index 35bf2c61320..2f70e38405d 100644 --- a/source/postprocess/visualization/stress_second_invariant.cc +++ b/source/postprocess/visualization/stress_second_invariant.cc @@ -109,7 +109,7 @@ namespace aspect } // average the values if requested - const auto &viz = this->get_postprocess_manager().template get_matching_plugin>(); + const auto &viz = this->get_postprocess_manager().template get_matching_active_plugin>(); if (!viz.output_pointwise_stress_and_strain()) average_quantities(computed_quantities); } diff --git a/source/postprocess/visualization/surface_dynamic_topography.cc b/source/postprocess/visualization/surface_dynamic_topography.cc index 35e7353da3b..ef6662e7676 100644 --- a/source/postprocess/visualization/surface_dynamic_topography.cc +++ b/source/postprocess/visualization/surface_dynamic_topography.cc @@ -50,7 +50,7 @@ namespace aspect quantity(0) = 0; const Postprocess::DynamicTopography &dynamic_topography = - this->get_postprocess_manager().template get_matching_plugin>(); + this->get_postprocess_manager().template get_matching_active_plugin>(); auto cell = input_data.template get_cell(); diff --git a/source/postprocess/visualization/surface_strain_rate_tensor.cc b/source/postprocess/visualization/surface_strain_rate_tensor.cc index ccd404dccbe..f73ccf1da25 100644 --- a/source/postprocess/visualization/surface_strain_rate_tensor.cc +++ b/source/postprocess/visualization/surface_strain_rate_tensor.cc @@ -72,7 +72,7 @@ namespace aspect } // average the values if requested - const auto &viz = this->get_postprocess_manager().template get_matching_plugin>(); + const auto &viz = this->get_postprocess_manager().template get_matching_active_plugin>(); if (!viz.output_pointwise_stress_and_strain()) average_quantities(computed_quantities); diff --git a/source/postprocess/visualization/surface_stress.cc b/source/postprocess/visualization/surface_stress.cc index 65ccc2ed3cd..66b8bc148c6 100644 --- a/source/postprocess/visualization/surface_stress.cc +++ b/source/postprocess/visualization/surface_stress.cc @@ -103,7 +103,7 @@ namespace aspect } // average the values if requested - const auto &viz = this->get_postprocess_manager().template get_matching_plugin>(); + const auto &viz = this->get_postprocess_manager().template get_matching_active_plugin>(); if (!viz.output_pointwise_stress_and_strain()) average_quantities(computed_quantities); } diff --git a/source/postprocess/visualization/volumetric_strain_rate.cc b/source/postprocess/visualization/volumetric_strain_rate.cc index 4a53c5c2a1f..c735958eb5f 100644 --- a/source/postprocess/visualization/volumetric_strain_rate.cc +++ b/source/postprocess/visualization/volumetric_strain_rate.cc @@ -62,7 +62,7 @@ namespace aspect } // average the values if requested - const auto &viz = this->get_postprocess_manager().template get_matching_plugin>(); + const auto &viz = this->get_postprocess_manager().template get_matching_active_plugin>(); if (!viz.output_pointwise_stress_and_strain()) average_quantities(computed_quantities); } diff --git a/source/simulator/core.cc b/source/simulator/core.cc index b1a35c03fa0..c932c8fd195 100644 --- a/source/simulator/core.cc +++ b/source/simulator/core.cc @@ -446,7 +446,7 @@ namespace aspect postprocess_manager.initialize_simulator (*this); postprocess_manager.parse_parameters (prm); - if (postprocess_manager.template has_matching_plugin>()) + if (postprocess_manager.template has_matching_active_plugin>()) { particle_worlds.emplace_back(std::move(std::make_unique>())); for (unsigned int particle_world_index = 0 ; particle_world_index < particle_worlds.size(); ++particle_world_index) diff --git a/source/simulator/helper_functions.cc b/source/simulator/helper_functions.cc index f0a760024cf..22ef169e64c 100644 --- a/source/simulator/helper_functions.cc +++ b/source/simulator/helper_functions.cc @@ -2242,7 +2242,7 @@ namespace aspect "Please check the consistency of your input file.")); const bool use_simplified_adiabatic_heating = - heating_model_manager.template get_matching_plugin>() + heating_model_manager.template get_matching_active_plugin>() .use_simplified_adiabatic_heating(); AssertThrow(use_simplified_adiabatic_heating == true, diff --git a/source/volume_of_fluid/handler.cc b/source/volume_of_fluid/handler.cc index 7118e31b5de..15062022b51 100644 --- a/source/volume_of_fluid/handler.cc +++ b/source/volume_of_fluid/handler.cc @@ -427,7 +427,7 @@ namespace aspect if ( this->get_parameters().initial_adaptive_refinement > 0 || this->get_parameters().adaptive_refinement_interval > 0 ) { - AssertThrow(this->get_mesh_refinement_manager().template has_matching_plugin>(), + AssertThrow(this->get_mesh_refinement_manager().template has_matching_active_plugin>(), ExcMessage("Volume of Fluid Interface Tracking requires that the 'volume of fluid interface' strategy be used for AMR")); AssertThrow(this->get_parameters().adaptive_refinement_interval <(1/this->get_parameters().CFL_number), diff --git a/tests/find_boundary_composition_model_fail_1/screen-output b/tests/find_boundary_composition_model_fail_1/screen-output index 26d1b10a963..5fa21091ddb 100644 --- a/tests/find_boundary_composition_model_fail_1/screen-output +++ b/tests/find_boundary_composition_model_fail_1/screen-output @@ -18,7 +18,7 @@ Exception on MPI process <0> while running plugin of file in function (line in output replaced by default.sh script) The violated condition was: - has_matching_plugin () + has_matching_active_plugin () Additional information: You asked the object managing a collection of plugins for a plugin object of type > that could not be diff --git a/tests/find_mesh_refinement_fail_1/screen-output b/tests/find_mesh_refinement_fail_1/screen-output index a7d7cbeaa57..a7cb18a865e 100644 --- a/tests/find_mesh_refinement_fail_1/screen-output +++ b/tests/find_mesh_refinement_fail_1/screen-output @@ -18,7 +18,7 @@ Exception on MPI process <0> while running plugin of file in function (line in output replaced by default.sh script) The violated condition was: - has_matching_plugin () + has_matching_active_plugin () Additional information: You asked the object managing a collection of plugins for a plugin object of type > that could not be diff --git a/tests/find_postprocess_fail_1/screen-output b/tests/find_postprocess_fail_1/screen-output index c3a5b0049af..b8914fd8a37 100644 --- a/tests/find_postprocess_fail_1/screen-output +++ b/tests/find_postprocess_fail_1/screen-output @@ -18,7 +18,7 @@ Exception on MPI process <0> while running plugin of file in function (line in output replaced by default.sh script) The violated condition was: - has_matching_plugin () + has_matching_active_plugin () Additional information: You asked the object managing a collection of plugins for a plugin object of type > that could