]>
https://gitweb.dealii.org/ - dealii.git/log
David Wells [Wed, 10 May 2017 17:14:44 +0000 (13:14 -0400)]
Add get_manifold() to 1D vertex iterators.
Daniel Arndt [Wed, 10 May 2017 08:56:42 +0000 (10:56 +0200)]
Merge pull request #4360 from masterleinad/fix_tests_after_trilinos_functions
Fix tests after removal of deprecated functions in TrilinosWrappers vectors
Denis Davydov [Wed, 10 May 2017 07:05:46 +0000 (09:05 +0200)]
Merge pull request #4364 from drwells/remove-custom-sort
Get rid of a custom sort implementation.
David Wells [Wed, 10 May 2017 01:50:19 +0000 (21:50 -0400)]
Get rid of a custom sort implementation.
This sorting function is about 10% faster for very large grids (O(10^7)
cell error indicators) but otherwise has the same performance as
std::sort. This patch replaces this with std::sort and a custom
comparator. To see the performance change, try running:
#include <algorithm>
#include <chrono>
#include <iostream>
#include <random>
#include <vector>
template <typename T>
void qsort_index (const std::vector<T> &a,
std::vector<std::size_t> &ind,
std::size_t l,
std::size_t r)
{
std::size_t i,j;
T v;
if (r<=l)
return;
v = a[ind[r]];
i = l-1;
j = r;
do
{
do
{
++i;
}
while ((a[ind[i]]>v) && (i<r));
do
{
--j;
}
while ((a[ind[j]]<v) && (j>0));
if (i<j)
std::swap (ind[i], ind[j]);
else
std::swap (ind[i], ind[r]);
}
while (i<j);
if (i > 0)
{
qsort_index(a,ind,l,i-1);
}
qsort_index(a,ind,i+1,r);
}
int main()
{
// switch to length =
10000000 to see timing information
constexpr std::size_t length = 20;
std::vector<std::size_t> indices(length);
std::iota(indices.begin(), indices.end(), std::size_t(0));
std::uniform_int_distribution<std::size_t> unif(0, length);
std::default_random_engine re;
std::vector<std::size_t> values;
for (std::size_t index = 0; index < indices.size(); ++index)
{
values.push_back(unif(re));
}
// for (std::size_t index = 0; index < length; ++index)
// {
// std::cout << index << ": "
// << indices[index] << ": "
// << values[indices[index]] << '\n';
// }
{
auto v = values;
auto i = indices;
const auto t0 = std::chrono::high_resolution_clock::now();
qsort_index(v, i, 0, length - 1);
const auto t1 = std::chrono::high_resolution_clock::now();
std::cout << "milliseconds:"
<< std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0).count()
<< std::endl;
std::cout << "\nafter qsort_index:\n";
// for (std::size_t index = 0; index < length; ++index)
// {
// std::cout << index << ": "
// << i[index] << ": "
// << v[i[index]] << '\n';
// }
}
{
auto v = values;
auto i = indices;
const auto t0 = std::chrono::high_resolution_clock::now();
std::sort(i.begin(), i.end(), [&](const std::size_t left,
const std::size_t right)
{
return v[left] >= v[right];
});
const auto t1 = std::chrono::high_resolution_clock::now();
std::cout << "milliseconds:"
<< std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0).count()
<< std::endl;
std::cout << "\nafter std::sort:\n";
// for (std::size_t index = 0; index < length; ++index)
// {
// std::cout << index << ": "
// << i[index] << ": "
// << v[i[index]] << '\n';
// }
}
}
Wolfgang Bangerth [Wed, 10 May 2017 01:09:37 +0000 (19:09 -0600)]
Merge pull request #4362 from Rombur/all_zero
Add all_zero to VectorSpaceVector
Bruno Turcksin [Tue, 9 May 2017 20:47:45 +0000 (16:47 -0400)]
add tests.
Bruno Turcksin [Tue, 9 May 2017 01:21:43 +0000 (21:21 -0400)]
Add all_zero() to VectorSpaceVector.
Daniel Arndt [Tue, 9 May 2017 12:02:32 +0000 (14:02 +0200)]
Fix failing tests after removal of deprecated TrilinosWrappers vector functions
Daniel Arndt [Tue, 9 May 2017 12:00:17 +0000 (14:00 +0200)]
Add get_mpi_communicator(), locally_owned_range_indices() and locally_owned_domain_indices ()
Daniel Arndt [Tue, 9 May 2017 11:56:34 +0000 (13:56 +0200)]
Restore an accidentally deleted definition
Daniel Arndt [Tue, 9 May 2017 08:55:05 +0000 (10:55 +0200)]
Merge pull request #4354 from drwells/fix-petsc-copy
Fix petsc copy
David Wells [Sat, 6 May 2017 22:56:27 +0000 (18:56 -0400)]
Note the PETSc vector removal in the changelog.
David Wells [Sat, 6 May 2017 22:53:03 +0000 (18:53 -0400)]
Fix some bugs in PETSc-deal.II vector copy code.
This new, correct implementation is based on the original, working
implementation present before commit
3aa64f983d4 in the (now removed)
PETSc serial vector class.
Bruno Turcksin [Mon, 8 May 2017 18:48:55 +0000 (14:48 -0400)]
Merge pull request #4345 from masterleinad/remove_deprecated_trilinos_vectors
Remove deprecated functions in TrilinosWrappers vectors
Bruno Turcksin [Mon, 8 May 2017 18:11:32 +0000 (14:11 -0400)]
Merge pull request #4357 from bangerth/minor-cleanups
Some text cleanups.
Wolfgang Bangerth [Mon, 8 May 2017 14:50:17 +0000 (08:50 -0600)]
Some text cleanups.
No functionality changes.
Denis Davydov [Mon, 8 May 2017 12:21:42 +0000 (14:21 +0200)]
Merge pull request #4344 from drwells/add-deprecation-script
Add a script that finds deprecated items.
David Wells [Thu, 4 May 2017 19:17:58 +0000 (15:17 -0400)]
Add a script that finds deprecated items.
Daniel Arndt [Sun, 7 May 2017 08:51:09 +0000 (10:51 +0200)]
Merge pull request #4355 from kronbichler/fix_test_cm
Fix constraint matrix test in 64 bit mode
Martin Kronbichler [Sun, 7 May 2017 07:38:28 +0000 (09:38 +0200)]
Fix constraint matrix test in 64 bit mode
Martin Kronbichler [Sat, 6 May 2017 08:08:12 +0000 (10:08 +0200)]
Merge pull request #4352 from bangerth/remove-deprecated-functions-5
Remove deprecated function Manifold::get_new_point(Quadrature).
Martin Kronbichler [Sat, 6 May 2017 08:07:20 +0000 (10:07 +0200)]
Merge pull request #4353 from bangerth/remove-deprecated-functions-6
Remove the deprecated constructor of MappingQEulerian.
Martin Kronbichler [Sat, 6 May 2017 08:06:38 +0000 (10:06 +0200)]
Merge pull request #4343 from kronbichler/extend_constraint_matrix_tltg
Generalize CM::distribute_local_to_global for rectangular case.
Wolfgang Bangerth [Fri, 5 May 2017 21:41:29 +0000 (15:41 -0600)]
Update changelog entry.
Wolfgang Bangerth [Fri, 5 May 2017 21:40:40 +0000 (15:40 -0600)]
Remove the deprecated constructor of MappingQEulerian.
Wolfgang Bangerth [Fri, 5 May 2017 21:39:51 +0000 (15:39 -0600)]
No longer use the deprecated constructor of MappingQEulerian.
Wolfgang Bangerth [Fri, 5 May 2017 17:09:19 +0000 (11:09 -0600)]
Add changelog entry.
Wolfgang Bangerth [Fri, 5 May 2017 17:09:12 +0000 (11:09 -0600)]
Remove deprecated function Manifold::get_new_point(Quadrature).
Daniel Arndt [Fri, 5 May 2017 15:25:09 +0000 (17:25 +0200)]
Changelog entry
Daniel Arndt [Thu, 4 May 2017 20:53:24 +0000 (22:53 +0200)]
Remove deprecated functions in TrilinosWrappers vectors
Daniel Arndt [Fri, 5 May 2017 15:15:43 +0000 (17:15 +0200)]
Clean testsuite from deprecated Trilinos vector functions
Daniel Arndt [Fri, 5 May 2017 15:41:20 +0000 (17:41 +0200)]
Merge pull request #4351 from bangerth/adjust-tests
Avoid using deprecated functions in the testsuite.
Martin Kronbichler [Fri, 5 May 2017 06:13:17 +0000 (08:13 +0200)]
Merge pull request #4346 from bangerth/remove-deprecated-functions-1
Remove deprecated function FEValuesBase::transform().
Martin Kronbichler [Fri, 5 May 2017 06:12:36 +0000 (08:12 +0200)]
Merge pull request #4347 from bangerth/remove-deprecated-functions-2
Remove the deprecated constructor of MappingQEulerian.
Martin Kronbichler [Fri, 5 May 2017 06:09:57 +0000 (08:09 +0200)]
Merge pull request #4348 from bangerth/remove-deprecated-functions-3
Remove deprecated version of GridTools::get_face_connectivity_of_cells().
Martin Kronbichler [Fri, 5 May 2017 06:08:39 +0000 (08:08 +0200)]
Merge pull request #4349 from bangerth/remove-deprecated-functions-4
Remove a deprecated typedef.
Martin Kronbichler [Thu, 4 May 2017 16:32:12 +0000 (18:32 +0200)]
Generalize CM::distribute_local_to_global for rectangular case.
Wolfgang Bangerth [Thu, 4 May 2017 22:15:24 +0000 (16:15 -0600)]
Add changelog entry.
Wolfgang Bangerth [Thu, 4 May 2017 22:15:18 +0000 (16:15 -0600)]
Remove a deprecated typedef.
Wolfgang Bangerth [Thu, 4 May 2017 22:13:45 +0000 (16:13 -0600)]
Add changelog entry.
Wolfgang Bangerth [Thu, 4 May 2017 22:13:21 +0000 (16:13 -0600)]
Remove deprecated version of GridTools::get_face_connectivity_of_cells().
Wolfgang Bangerth [Thu, 4 May 2017 22:11:36 +0000 (16:11 -0600)]
Add changelog entry.
Wolfgang Bangerth [Thu, 4 May 2017 22:11:06 +0000 (16:11 -0600)]
Remove the deprecated constructor of MappingQEulerian.
Wolfgang Bangerth [Thu, 4 May 2017 22:10:06 +0000 (16:10 -0600)]
Add changelog entry.
Wolfgang Bangerth [Thu, 4 May 2017 22:09:09 +0000 (16:09 -0600)]
Remove deprecated function FEValuesBase::transform().
Wolfgang Bangerth [Thu, 4 May 2017 22:06:26 +0000 (16:06 -0600)]
Avoid using deprecated functions in the testsuite.
David Wells [Thu, 4 May 2017 19:24:19 +0000 (15:24 -0400)]
Merge pull request #4341 from drwells/deprecate-non-sp-petsc-matrix-reinit
Deprecate PETSc matrix constructors without sparsity patterns.
Bruno Turcksin [Thu, 4 May 2017 14:59:47 +0000 (10:59 -0400)]
Merge pull request #4342 from drwells/remove-backup-file
Remove an editor backup file.
David Wells [Thu, 4 May 2017 14:50:03 +0000 (10:50 -0400)]
Remove an editor backup file.
David Wells [Thu, 4 May 2017 12:21:46 +0000 (08:21 -0400)]
Deprecate PETSc matrix constructors without sparsity patterns.
These are known to have efficiency problems since the underlying matrix does not
allocate the correct amount of memory.
Users can still allocate memory the old way if they wish to by calling
MatCreateAIJ themselves since the base class provides a conversion operator back
to a PETSc object (Mat).
Daniel Arndt [Thu, 4 May 2017 10:18:25 +0000 (12:18 +0200)]
Merge pull request #4279 from drwells/remove-deprecated-petsc
Remove deprecated PETSc vector classes.
David Wells [Sat, 29 Apr 2017 17:18:43 +0000 (13:18 -0400)]
Add a conceptual note on usage of PETScWrappers::VectorBase.
David Wells [Sat, 29 Apr 2017 17:16:04 +0000 (13:16 -0400)]
Fix (serial) PETSc vector documentation.
This commit fixes up some old text which implied that we had to use either
serial PETSc vectors or PETSc vectors for computations: since we support more
than just PETSc these days we can generalize a bit.
David Wells [Sat, 29 Apr 2017 17:15:25 +0000 (13:15 -0400)]
Consistently capitalize PETSc.
David Wells [Thu, 20 Apr 2017 11:13:14 +0000 (07:13 -0400)]
Refer to all parallel vectors instead of just the PETSc class.
David Wells [Thu, 4 May 2017 00:52:10 +0000 (20:52 -0400)]
Remove deprecated PETSc vector classes.
David Wells [Sat, 29 Apr 2017 16:35:55 +0000 (12:35 -0400)]
Get rid of PETScWrappers::Vector in the PETSc matrix classes.
We can simply use PETScWrappers::VectorBase instead. In addition, get rid of
some methods in the derived class that are identical to those in MatrixBase.
David Wells [Thu, 20 Apr 2017 11:11:08 +0000 (07:11 -0400)]
Make the PETSc to deal.II vector copy generic.
We may as well allow copying instances of the base class: the operations are the
same.
David Wells [Sat, 29 Apr 2017 02:12:42 +0000 (22:12 -0400)]
Overhaul the PETSc MatrixFree vmult.
David Wells [Thu, 4 May 2017 00:52:39 +0000 (20:52 -0400)]
Make PETScWrappers::apply_boundary_values more generic.
David Wells [Wed, 3 May 2017 23:15:17 +0000 (19:15 -0400)]
Merge pull request #4340 from masterleinad/fix_petsc_complex_tests
Fix petsc_complex tests
Daniel Arndt [Wed, 3 May 2017 15:46:12 +0000 (17:46 +0200)]
Fix petsc_complex tests
David Wells [Tue, 2 May 2017 11:40:55 +0000 (07:40 -0400)]
Merge pull request #4338 from davydden/fix_compute_active_cell_layer_within_distance
remove unused template argument
Denis Davydov [Tue, 2 May 2017 09:28:33 +0000 (11:28 +0200)]
remove unused template argument
Martin Kronbichler [Mon, 1 May 2017 20:14:36 +0000 (22:14 +0200)]
Merge pull request #4337 from bangerth/fix-test
Fix a test that requires MPI.
Wolfgang Bangerth [Mon, 1 May 2017 18:58:56 +0000 (12:58 -0600)]
Fix a test that requires MPI.
Denis Davydov [Mon, 1 May 2017 17:51:10 +0000 (19:51 +0200)]
Merge pull request #4336 from bangerth/fix-petsc-test
Fix a PETSc test that doesn't compile.
Wolfgang Bangerth [Mon, 1 May 2017 17:47:01 +0000 (11:47 -0600)]
Fix a PETSc test that doesn't compile.
Daniel Arndt [Mon, 1 May 2017 16:53:00 +0000 (18:53 +0200)]
Merge pull request #4297 from drwells/convert-petsc-tests-1
Convert petsc tests 1
David Wells [Fri, 21 Apr 2017 19:41:22 +0000 (15:41 -0400)]
Rewrite tests that used deprecated PETSc vectors.
PETScWrappers::Vector and PETScWrappers::BlockVector were deprecated in
favor of PETScWrappers::MPI::Vector and PETScWrappers::MPI::BlockVector.
This involves removing all of the PETScWrappers::BlockMatrix tests,
since that class takes one of the deprecated vectors as an argument.
Wolfgang Bangerth [Sun, 30 Apr 2017 23:43:53 +0000 (17:43 -0600)]
Merge pull request #4093 from vishalkenchan/new/GridTools/compute_active_cells_within_skin
New: GridTools::compute_active_cells_within_skin
Daniel Arndt [Sun, 30 Apr 2017 22:02:31 +0000 (00:02 +0200)]
Merge pull request #4335 from masterleinad/remove_dealii_cxx11
Remove DEAL_II_WITH_CXX11
Daniel Arndt [Sun, 30 Apr 2017 15:49:59 +0000 (17:49 +0200)]
Remove DEAL_II_WITH_CXX11
Martin Kronbichler [Sun, 30 Apr 2017 17:55:34 +0000 (19:55 +0200)]
Merge pull request #4334 from bangerth/remove-deprecated-static-var
Remove the deprecated member variables 'supports_distributed_data' of vector classes.
Wolfgang Bangerth [Sun, 30 Apr 2017 14:03:14 +0000 (08:03 -0600)]
Add a changelog entry.
Wolfgang Bangerth [Sun, 30 Apr 2017 14:00:35 +0000 (08:00 -0600)]
Remove the deprecated member variables 'supports_distributed_data' of vector classes.
David Wells [Sun, 30 Apr 2017 01:50:25 +0000 (21:50 -0400)]
Merge pull request #4332 from masterleinad/remove_petsc_use_64bit_indices
Remove usages of PETSC_USE_64BIT_INDICES
David Wells [Sat, 29 Apr 2017 22:49:22 +0000 (18:49 -0400)]
Merge pull request #4328 from bangerth/fix-serialization
Make serialization work with older GCC versions as well.
Daniel Arndt [Sat, 29 Apr 2017 21:28:21 +0000 (23:28 +0200)]
Remove usages of PETSC_USE_64BIT_INDICES
Wolfgang Bangerth [Sat, 29 Apr 2017 21:06:33 +0000 (15:06 -0600)]
Merge pull request #4330 from drwells/petsc-vec-type-invariant
Make PETScWrappers::MPI::Vector always distributed.
Vishal Boddu [Sat, 29 Apr 2017 17:16:16 +0000 (19:16 +0200)]
GridTools::compute_bounding_box(), compute_active_cells_within_skin(), compute_ghost_cells_within_skin()
David Wells [Sat, 29 Apr 2017 02:20:14 +0000 (22:20 -0400)]
Un-inline PETScWrappers::MPI::Vector::operator=(Vector &).
This function is long enough that the compiler probably won't inline it anyway.
David Wells [Sat, 29 Apr 2017 13:38:46 +0000 (09:38 -0400)]
Make the Vec type of PETScWrappers::MPI::Vector invariant.
PETSc supports both sequential ('seq') and distributed ('mpi') vectors: since
this vector is supposed to be distributed, we should always make it an MPI (or
ghosted) vector to simplify this class.
David Wells [Sat, 29 Apr 2017 00:25:58 +0000 (20:25 -0400)]
Merge pull request #4325 from masterleinad/fix_64bit_complex_set
Fix PETScWrappers::MatrixBase::set for 64bit and complex scalars
Wolfgang Bangerth [Sat, 29 Apr 2017 00:01:48 +0000 (18:01 -0600)]
Make serialization work with older GCC versions as well.
Daniel Arndt [Fri, 28 Apr 2017 17:50:03 +0000 (19:50 +0200)]
Remove special treatment of the 64bit case
Martin Kronbichler [Fri, 28 Apr 2017 17:35:58 +0000 (19:35 +0200)]
Merge pull request #4326 from davydden/doc/partitioner
adjust documentation of Partitioner to, hopefully, make it more clear
Daniel Arndt [Fri, 28 Apr 2017 15:13:05 +0000 (17:13 +0200)]
Merge pull request #4320 from vishalkenchan/new/smallest_enclosing_sphere
New TriaAccessor function smallest_enclosing_sphere() added.
Denis Davydov [Fri, 28 Apr 2017 14:44:41 +0000 (16:44 +0200)]
adjust documentation of Partitioner to, hopefully, make it more clear
vishalkenchan [Wed, 26 Apr 2017 12:47:57 +0000 (14:47 +0200)]
add TriaAccessor<>::enclosing_ball()
Bruno Turcksin [Thu, 27 Apr 2017 19:08:32 +0000 (15:08 -0400)]
Merge pull request #4307 from bangerth/remove-deprecated-DataPostprocessor-functions
Remove deprecated functions in DataPostprocessor.
Daniel Arndt [Wed, 26 Apr 2017 22:42:58 +0000 (00:42 +0200)]
Fix PETScWrappers::MatrixBase::set for 64bit indices and complex scalar type
Matthias Maier [Wed, 26 Apr 2017 19:50:03 +0000 (14:50 -0500)]
Merge pull request #4324 from dealii/revert-4298-install_muparser_headers
Revert "Install muparser headers"
Martin Kronbichler [Wed, 26 Apr 2017 19:16:59 +0000 (21:16 +0200)]
Merge pull request #4321 from bangerth/unique-ptr
Simplify memory management in Patterns::List/Map.
Martin Kronbichler [Wed, 26 Apr 2017 19:16:10 +0000 (21:16 +0200)]
Merge pull request #4314 from bangerth/remove-deprecated-function-3
Remove deprecated function FEValuesBase::get_normal_vectors().
Martin Kronbichler [Wed, 26 Apr 2017 19:15:08 +0000 (21:15 +0200)]
Merge pull request #4323 from masterleinad/fix_arpack_fp_test
Remove dependence on FunctionParser in ARPACK test
Denis Davydov [Wed, 26 Apr 2017 18:00:25 +0000 (20:00 +0200)]
Revert "Install muparser headers"
Denis Davydov [Wed, 26 Apr 2017 17:59:05 +0000 (19:59 +0200)]
Merge pull request #4088 from vishalkenchan/extend/GridTools/find_active_cell_around_point
Extend/grid tools/find active cell around point
Wolfgang Bangerth [Tue, 25 Apr 2017 21:21:55 +0000 (15:21 -0600)]
Add changelog entry.
Wolfgang Bangerth [Tue, 25 Apr 2017 21:21:37 +0000 (15:21 -0600)]
Remove deprecated function FEValuesBase::get_normal_vectors().
At the same time, recreate it with a different return type.
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.