Dear all,
In my dealii code hosted on the GitHub:
https://github.com/taojinllnl/Phasefield_gradient_projection_monolithic_solver
I have the following line of code defining a block_operator in line *5378:*
const auto op_zT_wMwT_z =
block_operator<2, 2, BlockVector<double>>({op_uMuT, op_uMdT,
op_dMuT, op_dMdT});
*My code could compile and run as expected. *However, I always get the
following warning message:
"""
/home/taojin/Dropbox/dealII_Code/PhaseField/L-BFGS-B/main.cc:5378:70:
warning: *missing braces around initializer *for
‘std::__array_traits<std::array<dealii::LinearOperator<dealii::Vector<double>,
dealii::Vector<double>,
dealii::internal::LinearOperatorImplementation::EmptyPayload>, 2>,
2>::_Type’ {aka ‘std::array<dealii::LinearOperator<dealii::Vector<double>,
dealii::Vector<double>,
dealii::internal::LinearOperatorImplementation::EmptyPayload>, 2> [2]’}
[-Wmissing-braces]
5378 | const auto op_zT_wMwT_z = block_operator<2, 2,
BlockVector<double>>({op_uMuT, op_uMdT,
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
5379 | op_dMuT, op_dMdT});
/home/taojin/Dropbox/dealII_Code/PhaseField/L-BFGS-B/main.cc:5378:70:
warning: *missing braces around initializer *for
‘std::array<dealii::LinearOperator<dealii::Vector<double>,
dealii::Vector<double>,
dealii::internal::LinearOperatorImplementation::EmptyPayload>, 2>’
[-Wmissing-braces]
"""
I tried to place some extra curly braces but the warining message is still
there.
Does anyone have any idea how to get rid of the warning message?
Thanks,
Tao
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/dealii/6b6e7aba-bd3c-4d2c-91c7-5d250c26e5c8n%40googlegroups.com.