From b54c1321e664d1530253b3bf6a5607b1ed2cfd49 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 6 May 1998 15:38:25 +0000 Subject: [PATCH] . git-svn-id: https://svn.dealii.org/trunk@261 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/Conventions | 16 ++++++++++++++-- deal.II/deal.II/Todo | 3 +++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/Conventions b/deal.II/deal.II/Conventions index c636c24962..854935b2eb 100644 --- a/deal.II/deal.II/Conventions +++ b/deal.II/deal.II/Conventions @@ -13,7 +13,7 @@ Here are some conventions for source code of the deal.II library: visibly enough. 4./ Whenever an integer variable can only assume nonnegative values, - it has to be marked as unsigned int. + it has to be marked as unsigned. 5./ Whenever an argument will not be changed, it should be marked const, even if it passed by value. This makes programs more readable @@ -26,4 +26,16 @@ Here are some conventions for source code of the deal.II library: 7./ Function and variable names may not consist of only one or two letters, unless the variable is a pure counting index. -8./ Each class has to have at least 200 pages of documentation ;-) +8./ Use the geometry information in GeometryInfo to get the + number of faces per cell, the number of children per cell, the + child indices of the child cells adjacent to face 3, etc, rather + than writing them into the directly as 2*dim, (1< in in grid/point.h and + grid/tria_iterator.h when this becomes possible. + -- 2.39.5