Skip to content

Commit

Permalink
List valid vartypes at top of _base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bburke38 committed Nov 9, 2023
1 parent 3e720d3 commit f0791d5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions funtofem/model/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Base(object):
"""
Base class for FUNtoFEM bodies and scenarios
"""
VAR_TYPES = ["structural", "aerodynamic", "rigid_motion", "shape", "control", "thermal"]

def __init__(self, name, id=0, group=None):
"""
Expand Down Expand Up @@ -193,14 +194,7 @@ def verify_vartype(self, vartype):
type of variable
"""

if not vartype in [
"structural",
"aerodynamic",
"rigid_motion",
"shape",
"controls",
"thermal",
]:
if not vartype in self.VAR_TYPES:
print(
f'Warning: vartype "{vartype}" is not a recognized variable type',
flush=True,
Expand Down

0 comments on commit f0791d5

Please sign in to comment.