Skip to content

Commit

Permalink
A couple more cases where a component was a problem's model
Browse files Browse the repository at this point in the history
  • Loading branch information
eytanadler committed Mar 2, 2023
1 parent 0ab2c9f commit d62e50f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions openconcept/propulsion/tests/test_N3.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
class N3HybridTestCase(unittest.TestCase):
def test_defaults(self):
p = Problem()
p.model = N3Hybrid()
p.model.add_subsystem("comp", N3Hybrid(), promotes=["*"])

p.setup(force_alloc_complex=True)

Expand All @@ -51,7 +51,7 @@ def test_defaults(self):
def test_vectorized(self):
nn = 5
p = Problem()
p.model = N3Hybrid(num_nodes=nn)
p.model.add_subsystem("comp", N3Hybrid(num_nodes=nn), promotes=["*"])

p.setup(force_alloc_complex=True)

Expand Down Expand Up @@ -83,7 +83,7 @@ def test_vectorized(self):
class N3TestCase(unittest.TestCase):
def test_defaults(self):
p = Problem()
p.model = N3()
p.model.add_subsystem("comp", N3(), promotes=["*"])

p.setup(force_alloc_complex=True)

Expand All @@ -100,7 +100,7 @@ def test_defaults(self):
def test_vectorized(self):
nn = 5
p = Problem()
p.model = N3Hybrid(num_nodes=nn)
p.model.add_subsystem("comp", N3Hybrid(num_nodes=nn), promotes=["*"])

p.setup(force_alloc_complex=True)

Expand Down
2 changes: 1 addition & 1 deletion openconcept/propulsion/tests/test_cfm56.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class CFM56TestCase(unittest.TestCase):
def test_defaults(self):
p = Problem()
p.model = CFM56()
p.model.add_subsystem("comp", CFM56(), promotes=["*"])

p.setup(force_alloc_complex=True)

Expand Down

0 comments on commit d62e50f

Please sign in to comment.