]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix up examples
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 5 Jan 2021 20:50:20 +0000 (15:50 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 11 Feb 2021 16:52:47 +0000 (11:52 -0500)
examples/step-37/step-37.cc
examples/step-48/step-48.cc

index f7540785558d2b568e4cb58d8e95a2eddf8b47d0..3975c0f1f855830071f0587762b330a836364bd9 100644 (file)
@@ -549,7 +549,7 @@ namespace Step37
 
     this->set_constrained_entries_to_one(inverse_diagonal);
 
-    for (unsigned int i = 0; i < inverse_diagonal.local_size(); ++i)
+    for (unsigned int i = 0; i < inverse_diagonal.locally_owned_size(); ++i)
       {
         Assert(inverse_diagonal.local_element(i) > 0.,
                ExcMessage("No diagonal entry in a positive definite operator "
index 76b98f88d38e55270b392180a8d556edb6c18973..31cbaf0d4bc74c336b2328b96b0f221c000fbb80 100644 (file)
@@ -137,7 +137,7 @@ namespace Step48
       }
 
     inv_mass_matrix.compress(VectorOperation::add);
-    for (unsigned int k = 0; k < inv_mass_matrix.local_size(); ++k)
+    for (unsigned int k = 0; k < inv_mass_matrix.locally_owned_size(); ++k)
       if (inv_mass_matrix.local_element(k) > 1e-15)
         inv_mass_matrix.local_element(k) =
           1. / inv_mass_matrix.local_element(k);

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.