Skip to content

Commit

Permalink
Bumping tacs version to 3.7.0 (#299)
Browse files Browse the repository at this point in the history
* Bumping tacs version to 3.7.0

* Making MPhys deprecation warning an error

* Removed temp mphys fix from CI
  • Loading branch information
timryanb authored Apr 5, 2024
1 parent 33dd56b commit 725aedf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 31 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ jobs:
make TACS_DIR=$TACS_DIR METIS_INCLUDE=-I${CONDA_PREFIX}/include/ METIS_LIB="-L${CONDA_PREFIX}/lib/ -lmetis";
- name: Install optional dependencies
run: |
# Temp fix until MPhys 1.3.0 is released
pip install openmdao==3.30.0;
# Install petsc for openmdao tests
conda install -c conda-forge petsc=3.19 petsc4py -q -y;
# Install ESP/CAPS prebuilt for shape derivatives, only in Real mode
Expand Down
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

0 comments on commit 725aedf

Please sign in to comment.