Skip to content
Snippets Groups Projects
Commit 0e313e10 authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

fix examples path

parent 568c33e4
No related branches found
No related tags found
1 merge request!16MPI operators
...@@ -70,7 +70,7 @@ DO_LONG_TESTS=${DO_LONG_TESTS:-false} ...@@ -70,7 +70,7 @@ DO_LONG_TESTS=${DO_LONG_TESTS:-false}
COMMON_TEST_OPTIONS='' COMMON_TEST_OPTIONS=''
TEST_DIR="$HYSOP_DIR" TEST_DIR="$HYSOP_DIR"
COMMON_EXAMPLE_OPTIONS='-VNC -cp default -maxit 2' COMMON_EXAMPLE_OPTIONS='-VNC -cp default -maxit 2'
EXAMPLE_DIR="$HYSOP_DIR/../examples" EXAMPLE_DIR="$HYSOP_DIR/../hysop_examples/examples"
hysop_test() { hysop_test() {
test=$1 test=$1
......
...@@ -359,14 +359,14 @@ class ComputationalGraph(ComputationalGraphNode): ...@@ -359,14 +359,14 @@ class ComputationalGraph(ComputationalGraphNode):
for field in self.fields: for field in self.fields:
field_topologies = {} field_topologies = {}
for (i, node) in enumerate(self.nodes): for (i, node) in enumerate(self.nodes):
if field in op.input_fields: if field in node.input_fields:
topo = op.input_fields[field] topo = node.input_fields[field]
field_topologies.setdefault(topo, []).append(op) field_topologies.setdefault(topo, []).append(node)
if field in op.output_fields: if field in node.output_fields:
topo = op.output_fields[field] topo = node.output_fields[field]
field_topologies.setdefault(topo, []).append(op) field_topologies.setdefault(topo, []).append(node)
for topo in sorted(field_topologies.keys(), key=lambda x: x.tag): for topo in sorted(field_topologies.keys(), key=lambda x: x.tag):
pnames = set(op.pretty_name.decode('utf-8') for op in field_topologies[topo]) pnames = set(node.pretty_name.decode('utf-8') for node in field_topologies[topo])
pnames = sorted(pnames) pnames = sorted(pnames)
nbyline = 4 nbyline = 4
nentries = len(pnames)//nbyline nentries = len(pnames)//nbyline
......
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