Typical Errors

From KratosWiki
Revision as of 14:08, 18 December 2007 by Hurga (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Typical Errors are errors that occur frequently to novice users who develop their own Applications in KRATOS. This Article is intended to act as a kind of updated collection of errors that have a simple solution that is, however, hard to find. This list is oriented at the phenotype of an occurring error rather than at the origin of it. Therefore, the list is divided into the following groups of errors:

  • Compiler Errors Error messages from the compiler that are not obviously understandable but have a rather trivial origin.
  • Runtime Errors Errors that occur despite of a flawless compilation and result in Python runtime errors or Segmentation Faults.
  • Behaviour Errors Errors that do not cause the program to fail but produce incorrect and/or strange results of the calculation.

Contents

Compiler Errors

Runtime Errors

Behaviour Errors

Results depend on whether the Python script is recompiled

Phenotype: The (in this case usually erroneous) output or calculation behaviour (e.g. convergence) changes depending on whether the Python script of the calculation is newly written or re-used.

Explanation: Python code is compiled to byte code prior to its execution. However, this is done only if the Python source code has been changed, i.e. it has a younger time stamp than the respective byte code (.pyc).

Solution:

Personal tools
Categories