From 45bd83b11dae4d50ed525910b11031a35e125866 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 3 May 2005 19:53:48 +0000 Subject: [PATCH] Update docs in one place. git-svn-id: https://svn.dealii.org/trunk@10639 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-18/step-18.cc | 30 +++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/deal.II/examples/step-18/step-18.cc b/deal.II/examples/step-18/step-18.cc index 09066d468b..6cf6233bbe 100644 --- a/deal.II/examples/step-18/step-18.cc +++ b/deal.II/examples/step-18/step-18.cc @@ -915,14 +915,23 @@ namespace QuasiStaticElasticity // displacement as the present velocity // times the present timestep. // - // For the purposes of this program, we - // choose a simple form of boundary - // displacement: we displace the top - // boundary with constant velocity - // downwards. The implementation of this - // class should then be obvious using the - // knowledge we gained through all the - // previous example programs: + // For the purposes of this + // program, we choose a simple form + // of boundary displacement: we + // displace the top boundary with + // constant velocity downwards. The + // rest of the boundary is either + // going to be fixed (and is then + // described using an object of + // type ``ZeroFunction'') or free + // (Neumann-type, in which case + // nothing special has to be done). + // // The implementation of the + // class describing the constant + // downward motion should then be + // obvious using the knowledge we + // gained through all the previous + // example programs: template class IncrementalBoundaryValues : public Function { @@ -969,10 +978,7 @@ namespace QuasiStaticElasticity ExcDimensionMismatch (values.size(), dim)); values = 0; - if (p[2] > 0) - values(2) = -present_timestep * velocity; - else - values(2) = 0; + values(2) = -present_timestep * velocity; } -- 2.39.5