]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using deprecated functions in the testsuite. 4351/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 4 May 2017 22:06:26 +0000 (16:06 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 4 May 2017 22:06:26 +0000 (16:06 -0600)
12 files changed:
tests/bits/distorted_mapped_cells_01.cc
tests/codim_one/mapping_q_eulerian.cc
tests/mappings/mapping_q_eulerian.cc
tests/mappings/mapping_q_eulerian_01.cc
tests/mappings/mapping_q_eulerian_02.cc
tests/mappings/mapping_q_eulerian_03.cc
tests/mappings/mapping_q_eulerian_05.cc
tests/mappings/mapping_q_eulerian_06.cc
tests/matrix_free/update_mapping_only.cc
tests/metis/metis_01a.cc
tests/mpi/fe_field_function_03.cc
tests/numerics/data_out_curved_cells.cc

index fae19e0e0781cb533bbf385d131613bad06c6ef0..f4140a3814d4f6ce78eac6fdc284fdb8bb0510e7 100644 (file)
@@ -63,7 +63,7 @@ void test()
 
   // this gives a Cartesian cell but in non-standard orientation (x-coordinate
   // is gone through backwards)
-  MappingQEulerian<dim> mapping(1,displacements, dof_h);
+  MappingQEulerian<dim> mapping(1, dof_h, displacements);
   QGauss<dim> quad(1);
   FEValues<dim> fe_val (mapping, fe, quad, update_JxW_values);
   double integral = 0.;
index c8cff0ba256041b15055b75367e51d74146930a9..2d159810ee582da7c2cc7b2612adb8d8dfc35376 100644 (file)
@@ -64,7 +64,7 @@ void test(std::string filename, unsigned int degree)
   grid_out.write_ucd (tria, logfile);
 
   QTrapez<dim> quad;
-  MappingQEulerian<dim,Vector<double>,spacedim> mapping(degree, shift, shift_dh);
+  MappingQEulerian<dim,Vector<double>,spacedim> mapping(degree, shift_dh, shift);
 
   typename Triangulation<dim,spacedim>::active_cell_iterator cell=tria.begin_active(),
                                                              endc=tria.end() ;
index 9293c283c1e35f5d8689376b194b19fa4581db95..560928bbbd99c809c6599db08283fdca0d147967 100644 (file)
@@ -123,7 +123,7 @@ double MappingTest<dim>::compute_area ()
 {
   QGauss<dim>  quadrature_formula(degree+1);
 
-  MappingQEulerian<dim> mapping(degree,displacements,dof_handler);
+  MappingQEulerian<dim> mapping(degree, dof_handler, displacements);
 
   FEValues<dim> fe_values (mapping, fe, quadrature_formula,
                            update_JxW_values);
index 913188f9f421cfd2df48807f302e5fc5d985c570..39fb7ef0d3c3831e37f273e00c0368b36f3025df 100644 (file)
@@ -99,7 +99,7 @@ void test ()
                             Displacement<dim>(),
                             displacements);
 
-  MappingQEulerian<dim> euler(2, displacements, dof_handler);
+  MappingQEulerian<dim> euler(2, dof_handler, displacements);
   // now the actual test
   DataOut<dim> data_out;
   data_out.attach_dof_handler(dof_handler);
index 37f6d9d823afa9a75bc6d20d79a28ee8b496cd38..31e4cf9c6acaa3773c563b5c3e820af2ca5850ff 100644 (file)
@@ -101,7 +101,7 @@ void test ()
                             Displacement<dim>(),
                             displacements);
 
-  MappingQEulerian<dim> euler(2, displacements, dof_handler);
+  MappingQEulerian<dim> euler(2, dof_handler, displacements);
   // now the actual test
   DataOut<dim> data_out;
   data_out.attach_dof_handler(dof_handler);
index 293bfb2b16f77d88d6bf45e9d05a768ddbadf2f4..ac00c71cab3f4865be79d3a449d3450413a9c201 100644 (file)
@@ -102,7 +102,7 @@ void test ()
                             Displacement<dim>(),
                             displacements);
 
-  MappingQEulerian<dim> euler(2, displacements, dof_handler);
+  MappingQEulerian<dim> euler(2, dof_handler, displacements);
   // now the actual test
   DataOut<dim> data_out;
   data_out.attach_dof_handler(dof_handler);
index 2ca3967110255275e8a2f15987450d061ffe807e..ecc4aafd8e3861537c2ede5a30ef81e73fae794f 100644 (file)
@@ -60,7 +60,7 @@ void test(unsigned int degree)
   grid_out.write_ucd (tria, logfile);
 
   QTrapez<dim> quad;
-  MappingQEulerian<dim,Vector<double>,spacedim> mapping(degree,shift, shift_dh);
+  MappingQEulerian<dim,Vector<double>,spacedim> mapping(degree, shift_dh, shift);
 
   typename Triangulation<dim,spacedim>::active_cell_iterator cell=tria.begin_active(),
                                                              endc=tria.end() ;
index e74498d9ac72a375c41a289c56d46200079dbce2..128242f699155be1c22866482ae4bfb70b79bb98 100644 (file)
@@ -56,7 +56,7 @@ void test(unsigned int degree)
     shift(i) = 0.1;
 
   QGauss<dim> quad(degree+1);
-  MappingQEulerian<dim,Vector<double>,spacedim> mapping(degree,shift, shift_dh);
+  MappingQEulerian<dim,Vector<double>,spacedim> mapping(degree, shift_dh, shift);
 
   Triangulation<dim,spacedim>::active_cell_iterator cell=tria.begin_active(),
                                                     endc=tria.end() ;
index 58c5c0e242bfbd10d8126f0bf09cc0f56f8fa1e0..aae52cc47c51d486c14c5b8285d1e0afc06ea76c 100644 (file)
@@ -76,7 +76,7 @@ void test ()
           shift(0) = 0.121;
           shift(1) = -0.005;
         }
-      MappingQEulerian<dim> mapping(2,shift,dofh_eulerian);
+      MappingQEulerian<dim> mapping(2, dofh_eulerian, shift);
 
       {
         const QGauss<1> quad (fe_degree+1);
index 98a2a658234efbfd45a1ff324152f417407ceaee..90c3ed2859fea9e4a8232cd7cb0c50553f0bffbe 100644 (file)
@@ -118,10 +118,12 @@ void test ()
   GridGenerator::hyper_cube (triangulation);
   triangulation.refine_global (2);
 
-  SparsityPattern cell_connectivity;
+  DynamicSparsityPattern cell_connectivity;
   GridTools::get_face_connectivity_of_cells (triangulation, cell_connectivity);
 
-  partition (cell_connectivity, 5);
+  SparsityPattern sp_cell_connectivity;
+  sp_cell_connectivity.copy_from (cell_connectivity);
+  partition (sp_cell_connectivity, 5);
 }
 
 
index 0271defde35dc8393b4478afb3540ebcfe042607..6f2510fe3efdc43d32796f0c262be60bf9723c3e 100644 (file)
@@ -186,7 +186,7 @@ void test()
           else
             break;
         }
-      catch (const typename Functions::FEFieldFunction<dim,DoFHandler<dim>,TrilinosWrappers::MPI::Vector>::ExcPointNotAvailableHere &)
+      catch (const VectorTools::ExcPointNotAvailableHere &)
         {
           deallog << "  ExcPointNotAvailableHere" << std::endl;
         }
index 5076857ac5822332342a616f3fd3a301f5774396..67e8d72ae9c91cf7aeb05c4bd15cfabd29eb574f 100644 (file)
@@ -221,7 +221,7 @@ void curved_grid (std::ofstream &out)
       combined_cell->set_dof_values (dxy, displacements);
     }
   // and create the MappingQEulerian
-  MappingQEulerian<2> euler(2, displacements, cdh);
+  MappingQEulerian<2> euler(2, cdh, displacements);
   // now the actual test
   DataOut<2> data_out;
   data_out.attach_dof_handler(cdh);

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.