Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumping tacs version to 3.7.0 #299

Merged
merged 4 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def get_mpi_flags():

setup(
name="tacs",
version="3.6.0",
version="3.7.0",
description="Parallel finite-element analysis package",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
30 changes: 2 additions & 28 deletions tacs/mphys/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,36 +190,10 @@ def buckling_setup(scenario_name, fea_assembler)

"""
if isinstance(mesh_file, dict):
warnings.warn(
raise ValueError(
"The signature for TacsBuilder has changed. Arguments such as 'mesh_file' must be passed directly as "
"arguments to TacsBuilder. Please see the TacsBuilder docstring for more info. This will become an "
"error in tacs 3.7.0",
DeprecationWarning,
"arguments to TacsBuilder. Please see the TacsBuilder docstring for more info."
)
options = mesh_file
# Make deep copy of dict so we can modify it
pytacs_options = copy.deepcopy(options)
mesh_file = pytacs_options.pop("mesh_file")

# Load optional user-defined callback function for setting up tacs elements
if "assembler_setup" in pytacs_options:
assembler_setup = pytacs_options.pop("assembler_setup")

# Load optional user-defined callback function for setting up tacs elements
if "element_callback" in pytacs_options:
element_callback = pytacs_options.pop("element_callback")

# Load optional user-defined callback function for setting up tacs elements
if "problem_setup" in pytacs_options:
problem_setup = pytacs_options.pop("problem_setup")

# Load optional user-defined callback function for setting up constraints
if "constraint_setup" in pytacs_options:
constraint_setup = pytacs_options.pop("constraint_setup")

# Load optional user-defined callback function for setting up buckling problem
if "buckling_setup" in pytacs_options:
buckling_setup = pytacs_options.pop("buckling_setup")

self.mesh_file = mesh_file
self.assembler_setup = assembler_setup
Expand Down
Loading