Skip to content
Snippets Groups Projects
Commit 3b45e5e5 authored by imcovangent's avatar imcovangent
Browse files

Intermediate commit for cycle development.

Former-commit-id: c393673ef99ecd8ecca9760ee5f7798c707a59fd
parent 3a1a7672
No related branches found
Tags v0.7.3
No related merge requests found
Showing
with 13 additions and 0 deletions
......@@ -3,6 +3,8 @@ import logging
from collections import OrderedDict
import networkx as nx
from kadmos.graph import RepositoryConnectivityGraph, FundamentalProblemGraph, load
from kadmos.utilities.general import get_mdao_setup
......@@ -235,6 +237,17 @@ for mdao_definition in mdao_definitions:
# Get Mdao graphs
mpg = fpg.get_mpg(name='mpg Sellar problem')
cycles = nx.simple_cycles(mpg)
print 'Cycles:'
for cycle in cycles:
print cycle
iterative_nodes, process_info, nested_functions = mpg.get_nested_process_ordering()
print 'Ordering:'
print iterative_nodes
print process_info
print nested_functions
print ''
mdg = fpg.get_mdg(name='mdg Sellar problem')
mdg.graph['name'] = 'XDSM - ' + mdao_definition
mdg.graph['description'] = 'Solution strategy to solve the Sellar problem using the strategy: ' \
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment