]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #13494 from peterrum/use_src_inplace
authorPeter Munch <peterrmuench@gmail.com>
Wed, 9 Mar 2022 06:12:29 +0000 (07:12 +0100)
committerGitHub <noreply@github.com>
Wed, 9 Mar 2022 06:12:29 +0000 (07:12 +0100)
GC: enable inplace operation for coarse side

1  2 
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h

index b1ffe7c3d46f61ece811c613895317642fdfbf32,6f251fee8b0412b4d282d7eb8f74fe5d77a0a3f5..88fc24d4263eb5c1eef232f4324b0f720605d84e
@@@ -2861,8 -2775,9 +2890,8 @@@ MGTwoLevelTransfer<dim, LinearAlgebra::
              {
                for (unsigned int i = 0; i < scheme.n_dofs_per_cell_coarse; ++i)
                  evaluation_data_coarse[i][v] =
-                   read_dof_values(indices_coarse[i], this->vec_coarse);
+                   read_dof_values(indices_coarse[i], *vec_coarse_ptr);
                indices_coarse += scheme.n_dofs_per_cell_coarse;
 -              indices_coarse_plain += scheme.n_dofs_per_cell_coarse;
              }
  
            // ... fast hanging-node-constraints algorithm
@@@ -3089,8 -3017,9 +3129,8 @@@ MGTwoLevelTransfer<dim, LinearAlgebra::
                for (unsigned int i = 0; i < scheme.n_dofs_per_cell_coarse; ++i)
                  distribute_local_to_global(indices_coarse[i],
                                             evaluation_data_coarse[i][v],
-                                            this->vec_coarse);
+                                            *vec_coarse_ptr);
                indices_coarse += scheme.n_dofs_per_cell_coarse;
 -              indices_coarse_plain += scheme.n_dofs_per_cell_coarse;
              }
          }
      }

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.