They are just warnings, but thank you for reporting them...  What compiler are 
you using, by the way?

Sent from my iPhone

> On Oct 30, 2015, at 2:08 PM, Xujun Zhao <xzha...@gmail.com> wrote:
> 
> Hi all,
> 
> When I re-compile my code, libMesh gives out the following warning messages
> from the header files fe.h and fe_abstract.h
> These never appear before. It looks like they are caused by override of
> virtual functions. is it OK?
> 
> 
> In file included from sedimentation_assemble_ex1.C:22:
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:215:24:
> **warning:
> **'n_shape_functions' overrides a member*
> 
> *      function but is not marked 'override'
> [-Winconsistent-missing-override]*
> 
>  virtual unsigned int n_shape_functions () const;
> 
> *                       ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:547:6:
> note: *in instantiation of template class
> 
>      'libMesh::FE<2, libMesh::FEFamily::SUBDIVISION>' requested here
> 
> Real FE<2,SUBDIVISION>::shape(const Elem* elem,
> 
> *     ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe_abstract.h:392:24:
> note: *overridden virtual function is
> 
>      here
> 
>  virtual unsigned int n_shape_functions () const = 0;
> 
> *                       ^*
> 
> In file included from sedimentation_assemble_ex1.C:22:
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:258:24:
> **warning:
> **'get_continuity' overrides a member*
> 
> *      function but is not marked 'override'
> [-Winconsistent-missing-override]*
> 
>  virtual FEContinuity get_continuity() const;
> 
> *                       ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe_abstract.h:426:24:
> note: *overridden virtual function is
> 
>      here
> 
>  virtual FEContinuity get_continuity() const = 0;
> 
> *                       ^*
> 
> In file included from sedimentation_assemble_ex1.C:22:
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:264:16:
> **warning:
> **'is_hierarchic' overrides a member*
> 
> *      function but is not marked 'override'
> [-Winconsistent-missing-override]*
> 
>  virtual bool is_hierarchic() const;
> 
> *               ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe_abstract.h:432:16:
> note: *overridden virtual function is
> 
>      here
> 
>  virtual bool is_hierarchic() const = 0;
> 
> *               ^*
> 
> In file included from sedimentation_assemble_ex1.C:22:
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:327:16:
> **warning:
> **'reinit' overrides a member function but*
> 
> *      is not marked 'override' [-Winconsistent-missing-override]*
> 
>  virtual void reinit (const Elem* elem,
> 
> *               ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe_abstract.h:136:16:
> note: *overridden virtual function is
> 
>      here
> 
>  virtual void reinit (const Elem* elem,
> 
> *               ^*
> 
> In file included from sedimentation_assemble_ex1.C:22:
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:340:16:
> **warning:
> **'reinit' overrides a member function but*
> 
> *      is not marked 'override' [-Winconsistent-missing-override]*
> 
>  virtual void reinit (const Elem* elem,
> 
> *               ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe_abstract.h:148:16:
> note: *overridden virtual function is
> 
>      here
> 
>  virtual void reinit (const Elem* elem,
> 
> *               ^*
> 
> In file included from sedimentation_assemble_ex1.C:22:
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:355:16:
> **warning:
> **'edge_reinit' overrides a member*
> 
> *      function but is not marked 'override'
> [-Winconsistent-missing-override]*
> 
>  virtual void edge_reinit (const Elem* elem,
> 
> *               ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe_abstract.h:162:16:
> note: *overridden virtual function is
> 
>      here
> 
>  virtual void edge_reinit (const Elem* elem,
> 
> *               ^*
> 
> In file included from sedimentation_assemble_ex1.C:22:
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:365:16:
> **warning:
> **'side_map' overrides a member function*
> 
> *      but is not marked 'override' [-Winconsistent-missing-override]*
> 
>  virtual void side_map (const Elem* elem,
> 
> *               ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe_abstract.h:172:16:
> note: *overridden virtual function is
> 
>      here
> 
>  virtual void side_map (const Elem* elem,
> 
> *               ^*
> 
> In file included from sedimentation_assemble_ex1.C:22:
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:376:16:
> **warning:
> **'attach_quadrature_rule' overrides a*
> 
> *      member function but is not marked 'override'
> [-Winconsistent-missing-override]*
> 
>  virtual void attach_quadrature_rule (QBase* q);
> 
> *               ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe_abstract.h:385:16:
> note: *overridden virtual function is
> 
>      here
> 
>  virtual void attach_quadrature_rule (QBase* q) = 0;
> 
> *               ^*
> 
> In file included from sedimentation_assemble_ex1.C:22:
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:383:24:
> **warning:
> **'n_quadrature_points' overrides a member*
> 
> *      function but is not marked 'override'
> [-Winconsistent-missing-override]*
> 
>  virtual unsigned int n_quadrature_points () const;
> 
> *                       ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe_abstract.h:398:24:
> note: *overridden virtual function is
> 
>      here
> 
>  virtual unsigned int n_quadrature_points () const = 0;
> 
> *                       ^*
> 
> In file included from sedimentation_assemble_ex1.C:22:
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe.h:404:16:
> **warning:
> **'shapes_need_reinit' overrides a member*
> 
> *      function but is not marked 'override'
> [-Winconsistent-missing-override]*
> 
>  virtual bool shapes_need_reinit() const;
> 
> *               ^*
> 
> */Users/xzhao/software/libmesh/libmesh-dev/include/libmesh/fe_abstract.h:587:16:
> note: *overridden virtual function is
> 
>      here
> 
>  virtual bool shapes_need_reinit() const = 0;
> 
> *               ^*
> ------------------------------------------------------------------------------
> _______________________________________________
> Libmesh-users mailing list
> Libmesh-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libmesh-users

------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to