]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a variable in step-44 'unsigned'. 17999/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 15 Jan 2025 18:19:33 +0000 (11:19 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 15 Jan 2025 18:19:33 +0000 (11:19 -0700)
examples/step-44/step-44.cc

index 9ca6c994b59ca6c336ce1c52e75eb37d2ed91d6b..57b788077694d4dc30dab5dc22bf8b7435409f72 100644 (file)
@@ -843,7 +843,7 @@ namespace Step44
     void determine_component_extractors();
 
     // Create Dirichlet constraints for the incremental displacement field:
-    void make_constraints(const int it_nr);
+    void make_constraints(const unsigned int it_nr);
 
     // Several functions to assemble the system and right hand side matrices
     // using multithreading. Each of them comes as a wrapper function, one
@@ -2234,7 +2234,7 @@ namespace Step44
   // are hard to debug. In this spirit, we choose to make the code more verbose
   // in terms of what operations are performed at each Newton step.
   template <int dim>
-  void Solid<dim>::make_constraints(const int it_nr)
+  void Solid<dim>::make_constraints(const unsigned int it_nr)
   {
     // Since we (a) are dealing with an iterative Newton method, (b) are using
     // an incremental formulation for the displacement, and (c) apply the

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.