From d2ebc57b6ade5f2b97eb2b68893fd445b4cb6336 Mon Sep 17 00:00:00 2001 From: Pietro Incardona Date: Fri, 30 Jun 2017 19:55:51 +0200 Subject: [PATCH] Fixing osx --- src/Solvers/petsc_solver_AMG_report.hpp | 1 + src/Vector/Vector_util.hpp | 36 ++++++++++++++++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/Solvers/petsc_solver_AMG_report.hpp b/src/Solvers/petsc_solver_AMG_report.hpp index 34d3d90..c74b576 100644 --- a/src/Solvers/petsc_solver_AMG_report.hpp +++ b/src/Solvers/petsc_solver_AMG_report.hpp @@ -95,6 +95,7 @@ class petsc_AMG_report Vcluster & v_cl = create_vcluster(); v_cl.max(time1); v_cl.max(time2); + v_cl.execute(); // Save the result AMG_time_err_coars tmp; diff --git a/src/Vector/Vector_util.hpp b/src/Vector/Vector_util.hpp index 8771595..75b014e 100644 --- a/src/Vector/Vector_util.hpp +++ b/src/Vector/Vector_util.hpp @@ -23,6 +23,18 @@ template struct copy_ele_sca_array { + /*! \brief Constructor + * + * It define the copy parameters. + * + * \param key destination position + * \param grid_dst grid destination + * \param x Source vector + * \param lin_id source element inside the vector + * \param gs_size grid size + * \param base_id processor id start + * + */ template inline static void copy(Grid & grid_dst, const grid_dist_key_dx & key, const Ev & x,size_t lin_id, size_t base_id, size_t gs_size) { grid_dst.template get(key) = x(lin_id * Eqs_sys::nvar + base_id); @@ -41,6 +53,18 @@ struct copy_ele_sca_array template struct copy_ele_sca_array { + /*! \brief Constructor + * + * It define the copy parameters. + * + * \param key destination position + * \param grid_dst grid destination + * \param x Source vector + * \param lin_id source element inside the vector + * \param gs_size grid size + * \param base_id processor id start + * + */ template inline static void copy(Grid & grid_dst, const grid_dist_key_dx & key, const Ev & x,size_t lin_id, size_t base_id, size_t gs_size) { for (size_t i = 0 ; i < std::extent::value ; i++) @@ -84,13 +108,15 @@ struct copy_ele //! source vector const Ev & x; - /*! \brief constructor + /*! \brief Constructor * * It define the copy parameters. * * \param key destination position * \param grid_dst grid destination - * \param v Source vector + * \param x Source vector + * \param lin_id source element inside the vector + * \param gs_size grid size * */ inline copy_ele(const grid_dist_key_dx & key, S & grid_dst, const Ev & x, size_t lin_id, size_t gs_size) @@ -109,7 +135,11 @@ struct copy_ele {std::cerr << "Error: " <<__FILE__ << ":" << __LINE__ << " Passing a temporal object";}; #endif - //! It call the copy function for each property + /*! \brief It call the copy function for each property + * + * \param t property id + * + */ template inline void operator()(T& t) { -- GitLab