]> https://gitweb.dealii.org/ - dealii.git/commit
Remove all remaining usages of the Boundary class.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 12 May 2018 14:44:10 +0000 (10:44 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 13 May 2018 18:21:59 +0000 (14:21 -0400)
commit1621ff316ead9849f950e534c40c03ddf4d91066
tree177aefe07891e08cd7f8b3a856a901d602d62106
parent125e64799932b72b103c1b39a8e499531f9d8308
Remove all remaining usages of the Boundary class.

Requiescat in pace

March 4, 1998 (commit 8: 184639502b4) - May 12, 2018 (41,058 commits and
counting).

Manifold has not gone too far from that original design: in the beginning we had
the in_between function:

template <int dim>
class Boundary {
  public:
     /**
      *  Typedef an array of the needed number
      *  of old points.
      */
    typedef const Point<dim>* PointArray[1<<(dim-1)];

     /**
      *  This function calculates the position
      *  of the new vertex.
      */
    virtual Point<dim> in_between (const PointArray &neighbors) const = 0;
};

/**
    Specialisation of \Ref{Boundary}<dim>, which places the new point right
    into the middle of the given points. The middle is defined as the
    arithmetic mean of the points.
    */
template <int dim>
class StraightBoundary : public Boundary<dim> {
  public:
     /**
      *  This function calculates the position
      *  of the new vertex.
      */
    virtual Point<dim> in_between (const PointArray &neighbors) const {
      Point<dim> p;
      for (int i=0; i<(1<<(dim-1)); ++i)
p += *neighbors[i];
      p /= (1<<(dim-1))*1.0;
      return p;
    };
};

which is essentially Manifold::get_intermediate_point without the weight.
36 files changed:
contrib/python-bindings/include/triangulation_wrapper.h
contrib/python-bindings/source/export_triangulation.cc
doc/doxygen/headers/boundary.h [deleted file]
examples/step-32/doc/intro.dox
examples/step-59/step-59.cc
include/deal.II/grid/tria.h
include/deal.II/grid/tria_accessor.h
include/deal.II/grid/tria_accessor.templates.h
include/deal.II/grid/tria_boundary.h [deleted file]
include/deal.II/grid/tria_boundary_lib.h [deleted file]
source/dofs/dof_accessor.cc
source/dofs/dof_accessor_get.cc
source/dofs/dof_accessor_set.cc
source/fe/fe.cc
source/fe/fe_values.cc
source/fe/mapping_c1.cc
source/fe/mapping_fe_field.cc
source/fe/mapping_manifold.cc
source/fe/mapping_q_generic.cc
source/grid/CMakeLists.txt
source/grid/tria.cc
source/grid/tria_accessor.cc
source/grid/tria_boundary.cc [deleted file]
source/grid/tria_boundary.inst.in [deleted file]
source/grid/tria_boundary_lib.cc [deleted file]
source/grid/tria_boundary_lib.inst.in [deleted file]
tests/fe/fe_nedelec_sz_non_rect_face.cc
tests/grid/normal_vector_01.cc
tests/matrix_free/faces_value_optimization.cc
tests/matrix_free/interpolate_functions_common.h
tests/matrix_free/matrix_vector_faces_04.cc
tests/matrix_free/matrix_vector_faces_common.h
tests/matrix_free/multigrid_dg_periodic.cc
tests/matrix_free/multigrid_dg_sip_01.cc
tests/matrix_free/multigrid_dg_sip_02.cc
tests/mpi/step-37.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.