Paraiso-0.3.1.5: a code generator for partial differential equations solvers.

Safe HaskellNone
LanguageHaskell2010

Language.Paraiso.Optimization.DependencyAnalysis

Description

This module performs dependency analysis for generating subroutines.

  1. Direct dependency between Manifest/Existing nodes X and Y: the subroutine that outputs Y needs to read X as input
  2. Indirect dependency between Manifest nodes X and Y: the computation of Y requires that the computation of X is finished, and therefore X and Y cannot be output by the same subroutine
  3. Calculation dependency between any node X and Manifest node Y: in the subroutine you output Y you need to calculate X.

c.f. Dependency

Synopsis

Documentation

writeGrouping :: Ready v g => OM v g Annotation -> OM v g Annotation Source

Give unique numbering to each groups in the entire OM in preparation for code generation