Skip to content

Commit

Permalink
fixed docstring and test
Browse files Browse the repository at this point in the history
  • Loading branch information
naylor-b committed Nov 28, 2023
1 parent af8f2ec commit 6e16d7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions openmdao/core/tests/test_mixed_dist.py
Expand Up @@ -117,22 +117,19 @@ def create_problem():
return prob


class TestMixedDist(unittest.TestCase):
@unittest.skipUnless(MPI and PETScVector, "MPI and PETSc are required.")
class TestMixedDist2(unittest.TestCase):
N_PROCS = 2

def test_mixed_dist(self):
prob = create_problem()
prob.setup(mode='rev')
prob.run_model()
assert_check_totals(prob.check_totals())



@unittest.skipUnless(MPI and PETScVector, "MPI and PETSc are required.")
class TestMixedDist2(TestMixedDist):
N_PROCS = 2


@unittest.skipUnless(MPI and PETScVector, "MPI and PETSc are required.")
class TestMixedDist3(TestMixedDist):
class TestMixedDist3(TestMixedDist2):
N_PROCS = 3


Expand Down
2 changes: 1 addition & 1 deletion openmdao/vectors/vector.py
Expand Up @@ -404,7 +404,7 @@ def _abs_get_val(self, name, flat=True):

def _abs_set_val(self, name, val):
"""
Get the variable value using the absolute name.
Set the variable value using the absolute name.
No error checking is performed on the name.
Expand Down

0 comments on commit 6e16d7c

Please sign in to comment.