From 681fa175f685a87d7bec14e619505322e38db236 Mon Sep 17 00:00:00 2001 From: Laura Prieto Saavedra Date: Mon, 19 Aug 2024 11:32:39 -0400 Subject: [PATCH] Update prototypes --- .../direct_gls_navier_stokes/direct_gls_navier_stokes.cc | 4 ++-- .../direct_steady_navier_stokes.cc | 4 ++-- .../matrix_based_advection_diffusion.cc | 2 +- .../matrix_based_non_linear_poisson.cc | 2 +- .../matrix_free_advection_diffusion.cc | 2 +- .../matrix_free_navier_stokes/matrix_free_navier_stokes.cc | 2 +- .../matrix_free_non_linear_poisson.cc | 2 +- prototypes/matrix_free_stokes/matrix_free_stokes.cc | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/prototypes/direct_gls_navier_stokes/direct_gls_navier_stokes.cc b/prototypes/direct_gls_navier_stokes/direct_gls_navier_stokes.cc index bcb5bf46ba..2854e8035b 100644 --- a/prototypes/direct_gls_navier_stokes/direct_gls_navier_stokes.cc +++ b/prototypes/direct_gls_navier_stokes/direct_gls_navier_stokes.cc @@ -535,7 +535,7 @@ DirectSteadyGLSNavierStokes::refine_mesh() triangulation.execute_coarsening_and_refinement(); setup_dofs(); BlockVector tmp(dofs_per_block); - solution_transfer.interpolate(present_solution, tmp); + solution_transfer.interpolate(tmp); nonzero_constraints.distribute(tmp); initialize_system(); present_solution = tmp; @@ -550,7 +550,7 @@ DirectSteadyGLSNavierStokes::refine_mesh_uniform() triangulation.refine_global(1); setup_dofs(); BlockVector tmp(dofs_per_block); - solution_transfer.interpolate(present_solution, tmp); + solution_transfer.interpolate(tmp); nonzero_constraints.distribute(tmp); initialize_system(); present_solution = tmp; diff --git a/prototypes/direct_steady_navier_stokes/direct_steady_navier_stokes.cc b/prototypes/direct_steady_navier_stokes/direct_steady_navier_stokes.cc index 1818fd0d57..e22c9027b7 100644 --- a/prototypes/direct_steady_navier_stokes/direct_steady_navier_stokes.cc +++ b/prototypes/direct_steady_navier_stokes/direct_steady_navier_stokes.cc @@ -429,7 +429,7 @@ DirectSteadyNavierStokes::refine_mesh() triangulation.execute_coarsening_and_refinement(); setup_dofs(); BlockVector tmp(dofs_per_block); - solution_transfer.interpolate(present_solution, tmp); + solution_transfer.interpolate(tmp); nonzero_constraints.distribute(tmp); initialize_system(); present_solution = tmp; @@ -444,7 +444,7 @@ DirectSteadyNavierStokes::refine_mesh_uniform() triangulation.refine_global(1); setup_dofs(); BlockVector tmp(dofs_per_block); - solution_transfer.interpolate(present_solution, tmp); + solution_transfer.interpolate(tmp); nonzero_constraints.distribute(tmp); initialize_system(); present_solution = tmp; diff --git a/prototypes/matrix_based_advection_diffusion/matrix_based_advection_diffusion.cc b/prototypes/matrix_based_advection_diffusion/matrix_based_advection_diffusion.cc index 02ba188798..52228260e5 100644 --- a/prototypes/matrix_based_advection_diffusion/matrix_based_advection_diffusion.cc +++ b/prototypes/matrix_based_advection_diffusion/matrix_based_advection_diffusion.cc @@ -1596,7 +1596,7 @@ MatrixBasedAdvectionDiffusion::output_results( data_out.build_patches(mapping, fe.degree, DataOut::curved_inner_cells); DataOutBase::VtkFlags flags; - flags.compression_level = DataOutBase::VtkFlags::best_speed; + flags.compression_level = DataOutBase::CompressionLevel::best_speed; data_out.set_flags(flags); std::string test_case = ""; diff --git a/prototypes/matrix_based_non_linear_poisson/matrix_based_non_linear_poisson.cc b/prototypes/matrix_based_non_linear_poisson/matrix_based_non_linear_poisson.cc index 7b8bcc9d70..df2d3b5087 100644 --- a/prototypes/matrix_based_non_linear_poisson/matrix_based_non_linear_poisson.cc +++ b/prototypes/matrix_based_non_linear_poisson/matrix_based_non_linear_poisson.cc @@ -1217,7 +1217,7 @@ MatrixBasedPoissonProblem::output_results( data_out.build_patches(mapping, fe.degree, DataOut::curved_inner_cells); DataOutBase::VtkFlags flags; - flags.compression_level = DataOutBase::VtkFlags::best_speed; + flags.compression_level = DataOutBase::CompressionLevel::best_speed; data_out.set_flags(flags); data_out.write_vtu_with_pvtu_record(parameters.output_path, parameters.output_name + diff --git a/prototypes/matrix_free_advection_diffusion/matrix_free_advection_diffusion.cc b/prototypes/matrix_free_advection_diffusion/matrix_free_advection_diffusion.cc index 30c848686c..08a157a4ee 100644 --- a/prototypes/matrix_free_advection_diffusion/matrix_free_advection_diffusion.cc +++ b/prototypes/matrix_free_advection_diffusion/matrix_free_advection_diffusion.cc @@ -1705,7 +1705,7 @@ MatrixFreeAdvectionDiffusion::output_results( data_out.build_patches(mapping, fe.degree, DataOut::curved_inner_cells); DataOutBase::VtkFlags flags; - flags.compression_level = DataOutBase::VtkFlags::best_speed; + flags.compression_level = DataOutBase::CompressionLevel::best_speed; data_out.set_flags(flags); std::string test_case = ""; diff --git a/prototypes/matrix_free_navier_stokes/matrix_free_navier_stokes.cc b/prototypes/matrix_free_navier_stokes/matrix_free_navier_stokes.cc index 02ba927672..312f970d54 100644 --- a/prototypes/matrix_free_navier_stokes/matrix_free_navier_stokes.cc +++ b/prototypes/matrix_free_navier_stokes/matrix_free_navier_stokes.cc @@ -2266,7 +2266,7 @@ MatrixFreeNavierStokes::output_results(const unsigned int cycle) const data_out.build_patches(); DataOutBase::VtkFlags flags; - flags.compression_level = DataOutBase::VtkFlags::best_speed; + flags.compression_level = DataOutBase::CompressionLevel::best_speed; data_out.set_flags(flags); data_out.write_vtu_with_pvtu_record(parameters.output_path, diff --git a/prototypes/matrix_free_non_linear_poisson/matrix_free_non_linear_poisson.cc b/prototypes/matrix_free_non_linear_poisson/matrix_free_non_linear_poisson.cc index a652dd15e0..6b4231f9ac 100644 --- a/prototypes/matrix_free_non_linear_poisson/matrix_free_non_linear_poisson.cc +++ b/prototypes/matrix_free_non_linear_poisson/matrix_free_non_linear_poisson.cc @@ -953,7 +953,7 @@ MatrixFreePoissonProblem::output_results( data_out.build_patches(mapping, fe.degree, DataOut::curved_inner_cells); DataOutBase::VtkFlags flags; - flags.compression_level = DataOutBase::VtkFlags::best_speed; + flags.compression_level = DataOutBase::CompressionLevel::best_speed; data_out.set_flags(flags); data_out.write_vtu_with_pvtu_record(parameters.output_path, parameters.output_name + diff --git a/prototypes/matrix_free_stokes/matrix_free_stokes.cc b/prototypes/matrix_free_stokes/matrix_free_stokes.cc index dee2e9cdff..ee8c1230b2 100644 --- a/prototypes/matrix_free_stokes/matrix_free_stokes.cc +++ b/prototypes/matrix_free_stokes/matrix_free_stokes.cc @@ -1916,7 +1916,7 @@ MatrixFreeStokes::output_results(const unsigned int cycle) const data_out.build_patches(); DataOutBase::VtkFlags flags; - flags.compression_level = DataOutBase::VtkFlags::best_speed; + flags.compression_level = DataOutBase::CompressionLevel::best_speed; data_out.set_flags(flags); data_out.write_vtu_with_pvtu_record(parameters.output_path,