]> https://gitweb.dealii.org/ - dealii.git/log
dealii.git
8 years agofix test 3084/head
Timo Heister [Thu, 8 Sep 2016 17:07:24 +0000 (13:07 -0400)]
fix test

8 years agoMerge pull request #3074 from bangerth/improve-error
David Wells [Wed, 7 Sep 2016 19:29:39 +0000 (15:29 -0400)]
Merge pull request #3074 from bangerth/improve-error

Remove exceptions without error messages.

8 years agoMerge pull request #3068 from masterleinad/assert_limit_level_difference_at_vertices
Wolfgang Bangerth [Wed, 7 Sep 2016 18:39:48 +0000 (12:39 -0600)]
Merge pull request #3068 from masterleinad/assert_limit_level_difference_at_vertices

Assert limit_level_difference_at_vertices for multigrid

8 years agoRemove exceptions without error messages. 3074/head
Wolfgang Bangerth [Tue, 6 Sep 2016 22:28:03 +0000 (16:28 -0600)]
Remove exceptions without error messages.

Here, just check that a valid value is set for the finite difference formula. Later on,
we should then not ever get an invalid value any more, but if we do, we can just say
that whatever we got is not implemented.

8 years agoMerge pull request #3061 from adamqc/shared-tria-copy
Wolfgang Bangerth [Wed, 7 Sep 2016 18:28:34 +0000 (12:28 -0600)]
Merge pull request #3061 from adamqc/shared-tria-copy

Reimplement copy_triangulation and load in p::s::Triangulation.

8 years agoMerge pull request #3033 from tjhei/data_out_unique_names
Timo Heister [Wed, 7 Sep 2016 14:55:12 +0000 (10:55 -0400)]
Merge pull request #3033 from tjhei/data_out_unique_names

assert unique names in DataOut

8 years agoMerge pull request #3076 from kronbichler/master
Bruno Turcksin [Wed, 7 Sep 2016 13:35:07 +0000 (09:35 -0400)]
Merge pull request #3076 from kronbichler/master

Update comment

8 years agoReimplement copy_triangulation and load in p::s::Triangulation. 3061/head
Ce Qin [Sun, 4 Sep 2016 06:34:59 +0000 (14:34 +0800)]
Reimplement copy_triangulation and load in p::s::Triangulation.

This commit fixes issue #2798.
The original implementation caused p::s::Triangulation to be in an
invalid state after copy_triangulation and load.

8 years agoUpdate comment 3076/head
Martin Kronbichler [Wed, 7 Sep 2016 13:23:23 +0000 (15:23 +0200)]
Update comment

8 years agoMerge pull request #3066 from gassmoeller/reduce_manifold_quadrature_use
Martin Kronbichler [Wed, 7 Sep 2016 07:58:38 +0000 (09:58 +0200)]
Merge pull request #3066 from gassmoeller/reduce_manifold_quadrature_use

Use cxx11 sort

8 years agoEnforce limit_level_difference_at_vertices if construct_multigrid_hierarchy is set 3068/head
Daniel Arndt [Tue, 6 Sep 2016 15:40:13 +0000 (17:40 +0200)]
Enforce limit_level_difference_at_vertices if construct_multigrid_hierarchy is set

8 years agoUse struct and call std::sort 3066/head
Rene Gassmoeller [Mon, 5 Sep 2016 16:50:20 +0000 (10:50 -0600)]
Use struct and call std::sort

8 years agofix tests 3033/head
Timo Heister [Mon, 5 Sep 2016 17:36:57 +0000 (13:36 -0400)]
fix tests

8 years agoassert unique names in DataOut
Timo Heister [Mon, 29 Aug 2016 19:28:02 +0000 (15:28 -0400)]
assert unique names in DataOut

8 years agoMerge pull request #3071 from tjhei/exception_doc_improvements
Wolfgang Bangerth [Tue, 6 Sep 2016 21:15:32 +0000 (15:15 -0600)]
Merge pull request #3071 from tjhei/exception_doc_improvements

Exception improvements

8 years agochangelog entry 3071/head
Timo Heister [Tue, 6 Sep 2016 13:01:07 +0000 (09:01 -0400)]
changelog entry

8 years agoException message improvements
Timo Heister [Tue, 6 Sep 2016 12:57:35 +0000 (08:57 -0400)]
Exception message improvements

- keep quotes in the output
- fix formatting/grammar for a couple of exceptions

8 years agoMerge pull request #3070 from bangerth/improve-error-message
Wolfgang Bangerth [Tue, 6 Sep 2016 12:32:36 +0000 (06:32 -0600)]
Merge pull request #3070 from bangerth/improve-error-message

Improve an error message by duplicating text from the input file.

8 years agoCompare with Triangulation::none instead of true
Daniel Arndt [Tue, 6 Sep 2016 12:14:41 +0000 (14:14 +0200)]
Compare with Triangulation::none instead of true

8 years agoImprove an error message by duplicating text from the input file. 3070/head
Wolfgang Bangerth [Tue, 6 Sep 2016 00:01:05 +0000 (18:01 -0600)]
Improve an error message by duplicating text from the input file.

This is motivated by a question on the mailing list. We only printed the internal
number of the cell, edge, or point, but should really be printing the number that
is used in the input file.

8 years agoMerge pull request #3069 from bangerth/doc-update-74
David Wells [Tue, 6 Sep 2016 01:30:34 +0000 (21:30 -0400)]
Merge pull request #3069 from bangerth/doc-update-74

Update documentation of step-10.

8 years agoUpdate documentation of step-10. 3069/head
Wolfgang Bangerth [Mon, 5 Sep 2016 23:02:37 +0000 (17:02 -0600)]
Update documentation of step-10.

We do not need to enclose class names in <code>....</code> any more (doxygen
already does that correctly). Also update the description of MappingQ1.

8 years agoFix tests
Daniel Arndt [Mon, 5 Sep 2016 17:22:48 +0000 (19:22 +0200)]
Fix tests

8 years agoMerge pull request #3067 from tjhei/doxygen_exception_formatting
Wolfgang Bangerth [Mon, 5 Sep 2016 20:13:25 +0000 (14:13 -0600)]
Merge pull request #3067 from tjhei/doxygen_exception_formatting

doxygen: format exception messages

8 years agodoxygen: format exception messages 3067/head
Timo Heister [Mon, 5 Sep 2016 19:40:34 +0000 (15:40 -0400)]
doxygen: format exception messages

This creates pretty formatting in the doxygen documentation for the
exception texts. We do this by including a javascript function that does
a couple of string replacements. It is difficult to do this
transformation before generating the documentation as detailed in #2571.

Fixes #2571

8 years agoMerge pull request #3065 from drwells/fix-initfinalize-links
Timo Heister [Mon, 5 Sep 2016 15:29:40 +0000 (11:29 -0400)]
Merge pull request #3065 from drwells/fix-initfinalize-links

Fix links to Utilities::MPI::MPI_InitFinalize.

8 years agoFix links to Utilities::MPI::MPI_InitFinalize. 3065/head
David Wells [Mon, 5 Sep 2016 13:54:30 +0000 (09:54 -0400)]
Fix links to Utilities::MPI::MPI_InitFinalize.

8 years agoAssert limit_level_difference_at_vertices for multigrid
Daniel Arndt [Mon, 5 Sep 2016 13:14:05 +0000 (15:14 +0200)]
Assert limit_level_difference_at_vertices for multigrid

8 years agoMerge pull request #3064 from drwells/sparsity-tools-typo
Wolfgang Bangerth [Mon, 5 Sep 2016 08:51:33 +0000 (02:51 -0600)]
Merge pull request #3064 from drwells/sparsity-tools-typo

Fix a documentation function link.

8 years agoMerge pull request #2992 from gassmoeller/reduce_manifold_quadrature_use
Martin Kronbichler [Mon, 5 Sep 2016 07:05:54 +0000 (09:05 +0200)]
Merge pull request #2992 from gassmoeller/reduce_manifold_quadrature_use

Reduce use of Quadrature objects in Manifolds.

8 years agoFix a documentation function link. 3064/head
David Wells [Sun, 4 Sep 2016 22:13:12 +0000 (18:13 -0400)]
Fix a documentation function link.

The other function returns a vector of index sets, which is not what we
want here.

8 years agoMerge pull request #3062 from jppelteret/read_abaqus_error_msg_2
Wolfgang Bangerth [Sun, 4 Sep 2016 19:40:00 +0000 (13:40 -0600)]
Merge pull request #3062 from jppelteret/read_abaqus_error_msg_2

Fix multiline comments in GridIn::read_abaqus()

8 years agoFix multiline comments in GridIn::read_abaqus() 3062/head
Jean-Paul Pelteret [Sun, 4 Sep 2016 08:01:23 +0000 (10:01 +0200)]
Fix multiline comments in GridIn::read_abaqus()

Addresses comment in #3054

8 years agoMerge pull request #3058 from drwells/ignore-global-indent-options
Daniel Arndt [Sat, 3 Sep 2016 18:00:40 +0000 (20:00 +0200)]
Merge pull request #3058 from drwells/ignore-global-indent-options

Set --options=none when indenting .inst.in files.

8 years agoSet --options=none when indenting .inst.in files. 3058/head
David Wells [Sat, 3 Sep 2016 16:31:49 +0000 (12:31 -0400)]
Set --options=none when indenting .inst.in files.

This works around a problem where, if one has global astyle options
turned on, they will be used to indent all of the .inst.in files when
one calls 'make indent'.

8 years agoUpdate some documentation 2992/head
Rene Gassmoeller [Fri, 2 Sep 2016 20:10:45 +0000 (14:10 -0600)]
Update some documentation

8 years agoReduce use of Quadrature objects in Manifolds.
Rene Gassmoeller [Fri, 19 Aug 2016 23:16:36 +0000 (17:16 -0600)]
Reduce use of Quadrature objects in Manifolds.

8 years agoMerge pull request #3055 from kronbichler/master
Bruno Turcksin [Fri, 2 Sep 2016 16:24:15 +0000 (12:24 -0400)]
Merge pull request #3055 from kronbichler/master

Add assertion

8 years agoAdd assertion 3055/head
Martin Kronbichler [Fri, 2 Sep 2016 16:09:44 +0000 (18:09 +0200)]
Add assertion

8 years agoMerge pull request #3054 from jppelteret/read_abaqus_error_msg
Bruno Turcksin [Fri, 2 Sep 2016 12:52:36 +0000 (08:52 -0400)]
Merge pull request #3054 from jppelteret/read_abaqus_error_msg

Improve error message for GridIn::read_abaqus

8 years agoImprove error message for GridIn::read_abaqus 3054/head
Jean-Paul Pelteret [Fri, 2 Sep 2016 12:38:34 +0000 (14:38 +0200)]
Improve error message for GridIn::read_abaqus

To assist debugging, where possible the error thrown internally when the
UCD grid is created is now displayed before the terminal error message
is given.

8 years agoMerge pull request #3053 from tamiko/changes_h_entry
Wolfgang Bangerth [Fri, 2 Sep 2016 01:12:41 +0000 (19:12 -0600)]
Merge pull request #3053 from tamiko/changes_h_entry

add a news/changes.h entry

8 years agoMerge pull request #3051 from davydden/unit_test_psTria_subdomain
Wolfgang Bangerth [Fri, 2 Sep 2016 01:12:05 +0000 (19:12 -0600)]
Merge pull request #3051 from davydden/unit_test_psTria_subdomain

tiny unit test to check that p::s::Tria::locally_owned_subdomai works…

8 years agoadd a news/changes.h entry 3053/head
Matthias Maier [Thu, 1 Sep 2016 23:59:18 +0000 (18:59 -0500)]
add a news/changes.h entry

8 years agotiny unit test to check that p::s::Tria::locally_owned_subdomai works in 1d 3051/head
Denis Davydov [Thu, 1 Sep 2016 22:01:54 +0000 (00:01 +0200)]
tiny unit test to check that p::s::Tria::locally_owned_subdomai works in 1d

8 years agoMerge pull request #3050 from davydden/distributed_trias_dim1
Wolfgang Bangerth [Thu, 1 Sep 2016 17:06:32 +0000 (11:06 -0600)]
Merge pull request #3050 from davydden/distributed_trias_dim1

remove assert in distributed Tria for dim==1

8 years agoMerge pull request #3048 from tamiko/update_news
Timo Heister [Thu, 1 Sep 2016 17:02:29 +0000 (13:02 -0400)]
Merge pull request #3048 from tamiko/update_news

update changes and news for release

8 years agoremove assert in distributed Tria for dim==1 3050/head
Denis Davydov [Thu, 1 Sep 2016 15:47:13 +0000 (17:47 +0200)]
remove assert in distributed Tria for dim==1

the assert was copy-pasted from p::d::Tria::locally_owned_subdomain()
to the based class p::Tria. Not sure why it was there for distributed
case, but for shared tria + metis, everything should work ok.

8 years agoupdate changes and news for release 3048/head
Matthias Maier [Thu, 1 Sep 2016 03:16:13 +0000 (22:16 -0500)]
update changes and news for release

8 years agoMerge pull request #3047 from class4kayaker/remove_update_q_points_tests
Wolfgang Bangerth [Thu, 1 Sep 2016 13:29:36 +0000 (07:29 -0600)]
Merge pull request #3047 from class4kayaker/remove_update_q_points_tests

Remove deprecated UpdateFlags values from from places other than definitions

8 years agoMerge pull request #3041 from jperryhouts/another_woraround_for_mpi_error
Timo Heister [Thu, 1 Sep 2016 12:12:05 +0000 (08:12 -0400)]
Merge pull request #3041 from jperryhouts/another_woraround_for_mpi_error

Workaround for cases where MPI_Finalize is called before MPI_Comm_free

8 years agoEnsure that MPI_Comm_free is called before MPI_Finalize 3041/head
Jonathan Perry-Houts [Wed, 31 Aug 2016 18:08:29 +0000 (11:08 -0700)]
Ensure that MPI_Comm_free is called before MPI_Finalize

8 years agoMerge pull request #3044 from tamiko/use_correct_fpic
Wolfgang Bangerth [Thu, 1 Sep 2016 01:43:37 +0000 (19:43 -0600)]
Merge pull request #3044 from tamiko/use_correct_fpic

CMake: Use -fPIC instead of -fpic

8 years agoFix documentation 3047/head
Jonathan Robey [Thu, 1 Sep 2016 01:33:22 +0000 (18:33 -0700)]
Fix documentation

8 years agoChange update_cell_normal_vectors to update_normal_vectors
Jonathan Robey [Thu, 1 Sep 2016 01:01:06 +0000 (18:01 -0700)]
Change update_cell_normal_vectors to update_normal_vectors

8 years agoChange update_second_derivatives to update_hessians
Jonathan Robey [Thu, 1 Sep 2016 00:48:58 +0000 (17:48 -0700)]
Change update_second_derivatives to update_hessians

8 years agoChange update_q_points to update_quadrature_points
Jonathan Robey [Wed, 31 Aug 2016 21:02:36 +0000 (14:02 -0700)]
Change update_q_points to update_quadrature_points

8 years agoadd a news/changes.h entry 3044/head
Matthias Maier [Wed, 31 Aug 2016 22:55:00 +0000 (17:55 -0500)]
add a news/changes.h entry

8 years agoCMake: Use -fPIC instead of -fpic
Matthias Maier [Wed, 31 Aug 2016 22:48:17 +0000 (17:48 -0500)]
CMake: Use -fPIC instead of -fpic

This resolves a build failure on architectures that differentiate between
-fpic and -fPIC.

Special thanks to Matthias Klose and Graham Inggs.

8 years agoMerge pull request #3040 from kronbichler/master
Wolfgang Bangerth [Wed, 31 Aug 2016 19:48:39 +0000 (13:48 -0600)]
Merge pull request #3040 from kronbichler/master

Fix bad complexity in copy of sparsity pattern.

8 years agoAdd test 3040/head
Martin Kronbichler [Wed, 31 Aug 2016 16:37:25 +0000 (18:37 +0200)]
Add test

8 years agoFix bad complexity in copy of sparsity pattern.
Martin Kronbichler [Wed, 31 Aug 2016 13:40:00 +0000 (15:40 +0200)]
Fix bad complexity in copy of sparsity pattern.

8 years agoMerge pull request #3038 from drwells/improve-mapping-manifold-docs
Matthias Maier [Tue, 30 Aug 2016 21:14:16 +0000 (16:14 -0500)]
Merge pull request #3038 from drwells/improve-mapping-manifold-docs

Better describe a limitation of MappingManifold.

8 years agoBetter describe a limitation of MappingManifold. 3038/head
David Wells [Tue, 30 Aug 2016 20:41:26 +0000 (16:41 -0400)]
Better describe a limitation of MappingManifold.

As mentioned in the documentation of SphericalManifold, MappingManifold
cannot be used with SphericalManifold.

8 years agoMerge pull request #3032 from tjhei/mapping_q_parallel_test
Wolfgang Bangerth [Tue, 30 Aug 2016 02:53:26 +0000 (20:53 -0600)]
Merge pull request #3032 from tjhei/mapping_q_parallel_test

add parallel MappingQEulerian test

8 years agoMerge pull request #3035 from drwells/remove-optimize-diagonal-remark
Wolfgang Bangerth [Tue, 30 Aug 2016 02:52:53 +0000 (20:52 -0600)]
Merge pull request #3035 from drwells/remove-optimize-diagonal-remark

Remove a reference to optimize_diagonal.

8 years agoRemove a reference to optimize_diagonal. 3035/head
David Wells [Tue, 30 Aug 2016 01:18:23 +0000 (21:18 -0400)]
Remove a reference to optimize_diagonal.

Commit 2dfcd899ad4 (February 2013) deprecated
SparsityPattern::optimize_diagonal() and it has since been removed from
the library.

8 years agoadd parallel MappingQEulerian test 3032/head
Timo Heister [Mon, 29 Aug 2016 19:25:57 +0000 (15:25 -0400)]
add parallel MappingQEulerian test

fixes #3014

8 years agoMerge pull request #3031 from jppelteret/symm_tensor_invariants
Denis Davydov [Mon, 29 Aug 2016 18:21:56 +0000 (20:21 +0200)]
Merge pull request #3031 from jppelteret/symm_tensor_invariants

Fixed: SymmetricTensor::third_invariant returns Tensor number type

8 years agoFixed: SymmetricTensor::third_invariant returns Tensor number type 3031/head
Jean-Paul Pelteret [Mon, 29 Aug 2016 18:19:39 +0000 (20:19 +0200)]
Fixed: SymmetricTensor::third_invariant returns Tensor number type

8 years agoMerge pull request #3030 from tjhei/doc_1
Wolfgang Bangerth [Mon, 29 Aug 2016 17:01:31 +0000 (11:01 -0600)]
Merge pull request #3030 from tjhei/doc_1

clarify documentation of subdivided_hyper_rectangle

8 years agoclarify documentation of subdivided_hyper_rectangle 3030/head
Timo Heister [Mon, 29 Aug 2016 16:57:27 +0000 (12:57 -0400)]
clarify documentation of subdivided_hyper_rectangle

8 years agoMerge pull request #3026 from drwells/oned-manifold-fix
Wolfgang Bangerth [Mon, 29 Aug 2016 03:20:57 +0000 (21:20 -0600)]
Merge pull request #3026 from drwells/oned-manifold-fix

Fix get_intermediate_point in 1D.

8 years agoMerge pull request #3027 from drwells/improve-hp-namespace-doc-links
Wolfgang Bangerth [Mon, 29 Aug 2016 03:18:37 +0000 (21:18 -0600)]
Merge pull request #3027 from drwells/improve-hp-namespace-doc-links

Fix some links to classes in the hp namespace.

8 years agoFix some links to classes in the hp namespace. 3027/head
David Wells [Sun, 28 Aug 2016 23:41:24 +0000 (19:41 -0400)]
Fix some links to classes in the hp namespace.

8 years agoMerge pull request #3025 from drwells/remove-coarse-grid-common
Timo Heister [Sun, 28 Aug 2016 21:25:43 +0000 (17:25 -0400)]
Merge pull request #3025 from drwells/remove-coarse-grid-common

Remove tests/mpi/coarse_grid_common.h.

8 years agoFix get_intermediate_point in 1D. 3026/head
David Wells [Sun, 28 Aug 2016 18:38:55 +0000 (14:38 -0400)]
Fix get_intermediate_point in 1D.

Since geometrical entities with spacedim == 1 are line segments, we
should just do a linear combination to find the intermediate
point (there is no need for angle calculations).

8 years agoMerge pull request #3024 from kronbichler/master
David Wells [Sun, 28 Aug 2016 14:02:44 +0000 (10:02 -0400)]
Merge pull request #3024 from kronbichler/master

Re-enable and fix matrix free test

8 years agoRemove tests/mpi/coarse_grid_common.h. 3025/head
David Wells [Sun, 28 Aug 2016 01:04:29 +0000 (21:04 -0400)]
Remove tests/mpi/coarse_grid_common.h.

The only functions in this header file that are actually used in this
directory are some extra LogStream::operator<< overloads: those
belong (logically) in the tests.h header file.

8 years agoAdd similar test to matrix_vector_14b for the FE_Q case. 3024/head
Martin Kronbichler [Sat, 27 Aug 2016 13:51:16 +0000 (15:51 +0200)]
Add similar test to matrix_vector_14b for the FE_Q case.

8 years agoRe-introduce and fix matrix_vector_14b test
Martin Kronbichler [Sat, 27 Aug 2016 13:48:45 +0000 (15:48 +0200)]
Re-introduce and fix matrix_vector_14b test

8 years agoEnable computations with different numbers of quadrature points and degrees of freedo...
Martin Kronbichler [Sat, 27 Aug 2016 13:48:05 +0000 (15:48 +0200)]
Enable computations with different numbers of quadrature points and degrees of freedom per cell.

Cleanup manifolds.

8 years agoMerge pull request #3023 from dealii/tjhei-styles-readme-format
David Wells [Sat, 27 Aug 2016 20:29:37 +0000 (16:29 -0400)]
Merge pull request #3023 from dealii/tjhei-styles-readme-format

Format contrib/styles/README.md

8 years agoMerge pull request #3021 from bangerth/remove-unused-declaration
David Wells [Sat, 27 Aug 2016 12:29:30 +0000 (08:29 -0400)]
Merge pull request #3021 from bangerth/remove-unused-declaration

Remove a declaration that is no longer needed.

8 years agoFormat contrib/styles/README.md 3023/head
Timo Heister [Sat, 27 Aug 2016 12:21:14 +0000 (08:21 -0400)]
Format contrib/styles/README.md

8 years agoMerge pull request #3022 from bangerth/add-assertion
Denis Davydov [Sat, 27 Aug 2016 06:01:52 +0000 (08:01 +0200)]
Merge pull request #3022 from bangerth/add-assertion

Add an assertion for clearer errors.

8 years agoAdd an assertion for clearer errors. 3022/head
Wolfgang Bangerth [Sat, 27 Aug 2016 03:03:07 +0000 (21:03 -0600)]
Add an assertion for clearer errors.

Specifically, say that we can use GridGenerator::extract_boundary_mesh() for p::d::Triangulation.

8 years agoRemove a declaration that is no longer needed. 3021/head
Wolfgang Bangerth [Sat, 27 Aug 2016 02:52:18 +0000 (20:52 -0600)]
Remove a declaration that is no longer needed.

It was used in a function that has been used from namespace GridTools to
namespace GridGenerator, where the structure is now duplicated. It was
only used for MS Visual Studio in any case.

8 years agoMerge pull request #3009 from tjhei/ide_files
Wolfgang Bangerth [Fri, 26 Aug 2016 17:49:30 +0000 (11:49 -0600)]
Merge pull request #3009 from tjhei/ide_files

Add IDE format styles

8 years agoMerge pull request #3016 from bangerth/update-exceptions
David Wells [Fri, 26 Aug 2016 12:42:31 +0000 (08:42 -0400)]
Merge pull request #3016 from bangerth/update-exceptions

Remove further instances of the ExcInvalidConstructorCall exception.

8 years agoMerge pull request #3012 from gassmoeller/add_visit_time_information
Bruno Turcksin [Fri, 26 Aug 2016 11:59:22 +0000 (07:59 -0400)]
Merge pull request #3012 from gassmoeller/add_visit_time_information

Add time information to .visit files created by DataOut

8 years agoRemove further instances of the ExcInvalidConstructorCall exception. 3016/head
Wolfgang Bangerth [Thu, 25 Aug 2016 19:23:58 +0000 (13:23 -0600)]
Remove further instances of the ExcInvalidConstructorCall exception.

8 years agoAdd .visit time information 3012/head
Rene Gassmoeller [Wed, 24 Aug 2016 23:11:34 +0000 (17:11 -0600)]
Add .visit time information

8 years agoMerge pull request #2994 from drwells/remove-duplicated-tests-02
David Wells [Thu, 25 Aug 2016 23:50:25 +0000 (19:50 -0400)]
Merge pull request #2994 from drwells/remove-duplicated-tests-02

Remove duplicated tests 02

8 years agoMerge pull request #3017 from bangerth/update-exceptions-2
David Wells [Thu, 25 Aug 2016 22:51:36 +0000 (18:51 -0400)]
Merge pull request #3017 from bangerth/update-exceptions-2

More work on purging exceptions without error text.

8 years agoUse ++k, not ++k, in a specific test. 2994/head
David Wells [Sun, 21 Aug 2016 18:07:57 +0000 (14:07 -0400)]
Use ++k, not ++k, in a specific test.

This test says that it tests the preincrement version of the operator.

8 years agoRemove duplicated tests.
David Wells [Sun, 21 Aug 2016 17:54:14 +0000 (13:54 -0400)]
Remove duplicated tests.

This commit continues the work started in b9c64f0dac and removes tests
that are identical up to things the compiler sees (e.g., tests that are
the same aside from commenting or formatting). I did this by deleting
comments with the preprocessor and then running the result through
clang-format.

For the sake of posterity: I compiled this list by executing the python
script

#!/usr/bin/env python
import atexit
import hashlib
import os
import shutil
import subprocess
import sys
import tempfile

def main():
    current_test_file_name = sys.argv[1]
    preprocessed_file_name = "/tmp/unique_file_name.cc"
    subprocess.check_call(
        ["g++",
         "-fpreprocessed", "-dD", "-E",
         current_test_file_name,
         "-o", preprocessed_file_name],
        stderr=sys.stderr)
    atexit.register(lambda name=preprocessed_file_name: os.remove(name))

    # get rid of any line number indicators cpp may have left
    subprocess.check_call(["sed", "-i", "/^# [0-9]/d", preprocessed_file_name],
                          stderr=sys.stderr)
    # reformat source to canonical form
    subprocess.check_call(["clang-format", "-i", preprocessed_file_name])

    md5sum = hashlib.md5()
    with open(preprocessed_file_name, "rb") as preprocessed_file_handle:
        for block in iter(lambda: preprocessed_file_handle.read(65536), b""):
            md5sum.update(block)
    print(md5sum.hexdigest(), current_test_file_name)

if __name__ == '__main__':
    main()

in the shell command

find ./ -name '*.cc' | grep -v all-headers | xargs -I% python formatted_md5.py \
    % | tee preprocessed-md5.txt

and then sorted the results with the shell command

awk '{print $2, $1}' preprocessed-md5.txt | sort --key=2,2 \
    | uniq --all-repeated=separate --skip-fields=1

What follows is a brief description of why each test was removed:

bits/block_sparse_matrix_iterator_03.cc
Same as bits/block_sparse_matrix_iterator_02.cc (up to a comment)

bits/sparse_matrix_01a.cc
Identical (up to a comment) to bits/sparse_matrix_01.cc

bits/step-16b.cc
Identical (up to a comment) to bits/step-16.cc

bits/vector_25.cc
Identical (up to a comment) to bits/vector_24.cc

The tests
dofs/dof_constraints_06_x.cc
dofs/dof_constraints_10_x.cc
dofs/sparsity_pattern_x.cc
dofs/sparsity_pattern_01_x.cc

were all duplicates (up to comments) of tests without '_x's in their
names. This was a result of deleting CompressedSparsityPattern et al.

fe/fe_support_points_q_qg0.cc
Identical (up to a blank line) to fe/fe_support_points_q_dg0.cc

fe/fe_values_view_10_single_04.cc
Identical (up to some code formatting and a comment) to
fe/fe_values_view_08.cc

The tests
full_matrix/complex_complex_full_matrix_05.cc
full_matrix/complex_complex_full_matrix_09.cc

were duplicates of the corresponding 'complex_real_full_matrix_*.cc'
test. Since the full matrices were real valued I kept the other ones.

grid/have_same_coarse_mesh_04.cc
Completely identical to grid/have_same_coarse_mesh_02.cc

matrix_free/matrix_vector_14b.cc
This test claims it uses more quadrature points than
matrix_free/matrix_vector_14.cc, but does not (and changing the number
of quadrature points is nontrivial for this test)

petsc/25.cc
Identical (up to a comment) to petsc/24.cc

trilinos/25.cc
Identical (up to a comment) to trilinos/24.cc

8 years agoProvide more explanation for a number of exceptions. 3017/head
Wolfgang Bangerth [Thu, 25 Aug 2016 19:51:48 +0000 (13:51 -0600)]
Provide more explanation for a number of exceptions.

8 years agoEquip an error message with an error text.
Wolfgang Bangerth [Thu, 25 Aug 2016 19:51:39 +0000 (13:51 -0600)]
Equip an error message with an error text.

8 years agoRemove an exception that is apparently no longer used.
Wolfgang Bangerth [Thu, 25 Aug 2016 19:50:58 +0000 (13:50 -0600)]
Remove an exception that is apparently no longer used.


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.