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

AffineConstraints: fix warnings #15800

Merged
merged 1 commit into from Jul 26, 2023
Merged

AffineConstraints: fix warnings #15800

merged 1 commit into from Jul 26, 2023

Conversation

peterrum
Copy link
Member

In file included from /home/munch/sw-adaflo-simplex2/dealii/include/deal.II/dofs/dof_accessor.templates.h:31,
                 from /home/munch/sw-adaflo-simplex2/dealii/include/deal.II/dofs/dof_accessor.h:2146,
                 from /home/munch/sw-adaflo-simplex2/dealii/include/deal.II/dofs/dof_handler.h:31,
                 from /home/munch/sw-adaflo-simplex2/dealii/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h:30,
                 from /home/munch/sw-adaflo-simplex2/dealii/source/multigrid/mg_transfer_global_coarsening.cc:16:
/home/munch/sw-adaflo-simplex2/dealii/include/deal.II/lac/affine_constraints.h: In instantiation of ‘void dealii::AffineConstraints<number>::merge(const dealii::AffineConstraints<other_number>&, dealii::AffineConstraints<number>::MergeConflictBehavior, bool) [with other_number = double; number = float]’:
/home/munch/sw-adaflo-simplex2/dealii/include/deal.II/multigrid/mg_constrained_dofs.h:624:24:   required from ‘void dealii::MGConstrainedDoFs::merge_constraints(dealii::AffineConstraints<number>&, unsigned int, bool, bool, bool, bool) const [with Number = float]’
/home/munch/sw-adaflo-simplex2/dealii/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h:3477:45:   required from ‘void dealii::MGTransferMF<dim, Number>::intitialize_internal_transfer(const dealii::DoFHandler<dim>&, const dealii::SmartPointer<const dealii::MGConstrainedDoFs>&) [with int dim = 1; Number = float]’
/home/munch/sw-adaflo-simplex2/dealii-build/source/multigrid/mg_transfer_global_coarsening.inst:43:17:   required from here
/home/munch/sw-adaflo-simplex2/dealii/include/deal.II/lac/affine_constraints.h:2527:56: warning: loop variable ‘other_entry’ of type ‘const std::pair<unsigned int, float>&’ binds to a temporary constructed from type ‘const std::pair<unsigned int, double>’ [-Wrange-loop-construct]
 2527 |               for (const std::pair<size_type, number> &other_entry :
      |                                                        ^~~~~~~~~~~
/home/munch/sw-adaflo-simplex2/dealii/include/deal.II/lac/affine_constraints.h:2527:56: note: use non-reference type ‘const std::pair<unsigned int, float>’ to make the copy explicit or ‘const std::pair<unsigned int, double>&’ to prevent copying
/home/munch/sw-adaflo-simplex2/dealii/include/deal.II/lac/affine_constraints.h:2603:26: warning: narrowing conversion of ‘(double)line.dealii::AffineConstraints<double>::ConstraintLine::inhomogeneity’ from ‘double’ to ‘float’ [-Wnarrowing]
 2603 |                     line.inhomogeneity};

@peterrum peterrum merged commit 7f8a274 into dealii:master Jul 26, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants