Closed tjhei closed 3 months ago
This one if for you @bangerth . :-)
There are numerous errors such as these:
In file included from /Users/jenkins/jenkins/workspace/aspect-osx_PR-5802/build/CMakeFiles/aspect-release.dir/Unity/unity_40_cxx.cxx:16:
[1m/Users/jenkins/jenkins/workspace/aspect-osx_PR-5802/source/simulator/helper_functions.cc:1690:74: [0m[0;1;31merror: [0m[1mno viable conversion from 'const std::vector<unsigned int>' to 'unsigned int'[0m
const Quadrature<dim> quadrature_C(dof_handler.get_fe().base_element(introspection.base_elements.compositional_fields).get_unit_support_points());
[0;1;32m ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[1m/Users/jenkins/jenkins/workspace/aspect-osx_PR-5802/source/simulator/helper_functions.cc:2578:22: [0m[0;1;30mnote: [0min instantiation of member function 'aspect::Simulator<2>::compute_reactions' requested here[0m
ASPECT_INSTANTIATE(INSTANTIATE)
[0;1;32m ^
[0m[1m/Users/jenkins/candi-9.5.1-r1b/deal.II-v9.5.1/include/deal.II/fe/fe.h:1622:35: [0m[0;1;30mnote: [0mpassing argument to parameter 'index' here[0m
base_element(const unsigned int index) const;
[0;1;32m ^
[0mIn file included from /Users/jenkins/jenkins/workspace/aspect-osx_PR-5802/build/CMakeFiles/aspect-release.dir/Unity/unity_40_cxx.cxx:16:
[1m/Users/jenkins/jenkins/workspace/aspect-osx_PR-5802/source/simulator/helper_functions.cc:1785:74: [0m[0;1;31merror: [0m[1mno viable conversion from 'const std::vector<unsigned int>' to 'unsigned int'[0m
for (unsigned int j=0; j<dof_handler.get_fe().base_element(introspection.base_elements.compositional_fields).dofs_per_cell; ++j)
[0;1;32m ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[1m/Users/jenkins/candi-9.5.1-r1b/deal.II-v9.5.1/include/deal.II/fe/fe.h:1622:35: [0m[0;1;30mnote: [0mpassing argument to parameter 'index' here[0m
base_element(const unsigned int index) const;
[0;1;32m ^
[0mIn file included from /Users/jenkins/jenkins/workspace/aspect-osx_PR-5802/build/CMakeFiles/aspect-release.dir/Unity/unity_40_cxx.cxx:16:
[1m/Users/jenkins/jenkins/workspace/aspect-osx_PR-5802/source/simulator/helper_functions.cc:1826:70: [0m[0;1;31merror: [0m[1mno viable conversion from 'const std::vector<unsigned int>' to 'unsigned int'[0m
for (unsigned int j=0; j<dof_handler.get_fe().base_element(introspection.base_elements.compositional_fields).dofs_per_cell; ++j)
[0;1;32m ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I would assume that you get those on your machine too?
Updated and rebased.
Updated. Thank you for the comments! :+1:
Fingers crossed, this might be good to go now.
The two tests are changing very slightly due to the reordering of the loops in the composition mesh refinement plugin.
updated.
We now store different base_element indices in introspection (one index for each compositional field). This is no functional change, as we do not support different FiniteElements so far.
To be able to make this change, I had to fix various places that use base_elements or assume that all compositional fields have the same base element.
part of #5748