]> https://gitweb.dealii.org/ - dealii.git/commit
Update the way DataPostprocessor receives its input.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 31 Oct 2016 21:37:19 +0000 (15:37 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 2 Nov 2016 22:27:33 +0000 (16:27 -0600)
commitfc022ee5768cc94d5dd934648402a2523a0129cc
tree640b2b71451a5bbcb2b1c4116c734d8953818932
parent8dc3e5513b54e396c9f448c49118544253a82eb5
Update the way DataPostprocessor receives its input.

In the past, the two functions we use to postprocess data got lists of arguments
for the solution, its derivatives, the evaluation points, and normal vectors.
This is not flexible enough: We can not easily add other information that
we have needed in the past or that users have requested, such as a pointer
to the cell we're currently on, or the material-id of the cell.

Rather than adding each possible argument anyone may want to use
individually to the list of the postprocessor function arguments, we use
a technique here that has proven useful in ASPECT: the functions simply
take a reference to a structure that contains these individual pieces
of information. We can extend the members of these structures without
backward compatibility issues because the functions still get a
reference to the same structure, we just grow the structure
itself. Functions that never used the new members of the structure
will continue to work as they always did.
include/deal.II/numerics/data_out_dof_data.h
include/deal.II/numerics/data_out_faces.h
include/deal.II/numerics/data_postprocessor.h
source/numerics/data_out.cc
source/numerics/data_out_dof_data.cc
source/numerics/data_out_faces.cc
source/numerics/data_out_rotation.cc
source/numerics/data_postprocessor.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.