sfepy.base.resolve_deps module¶
Functions for resolving dependencies.
- sfepy.base.resolve_deps.get_nums(deps)[source]¶
Get number of prerequisite names for each name in dependencies.
- sfepy.base.resolve_deps.resolve(deps)[source]¶
Resolve dependencies among equations so that smaller blocks are solved first.
The dependencies are given in terms of variable names.
- Parameters:
- depsdict
The dependencies as a dictionary with names as keys and sets of prerequisite names as values.
- Returns:
- orderlist
The list of blocks in the order of solving. Each block is a list of names.