From 7564c93e73be8e9729c19e0cd3a7b9a5e6bdd357 Mon Sep 17 00:00:00 2001 From: Christoph Groth <christoph.groth@cea.fr> Date: Thu, 21 Feb 2013 17:03:46 +0100 Subject: [PATCH] tutorial: state a paragraph more precisely --- doc/source/tutorial/tutorial2.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/source/tutorial/tutorial2.rst b/doc/source/tutorial/tutorial2.rst index 232cab48..6bb6043f 100644 --- a/doc/source/tutorial/tutorial2.rst +++ b/doc/source/tutorial/tutorial2.rst @@ -148,12 +148,11 @@ define the potential profile of a quantum well as: :start-after: #HIDDEN_BEGIN_ehso :end-before: #HIDDEN_END_ehso -This function takes two arguments: the first which is of type -`~kwant.builder.Site`, from which you can get the real-space -coordinates using ``site.pos``, and the value of the potential as a -second argument. Note that we can use global -variables to define the behavior of `potential`: `L` and `L_well` -are variables taken from the namespace of `make_system`. +This function takes two arguments: the first of type `~kwant.builder.Site`, +from which you can get the real-space coordinates using ``site.pos``, and the +value of the potential as the second. Note that in `potential` we can access +variables of the surrounding function: `L` and `L_well` are taken from the +namespace of `make_system`. kwant now allows us to pass a function as a value to `~kwant.builder.Builder`: -- GitLab