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

Remove old warning about COFFEE #321

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all 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
14 changes: 1 addition & 13 deletions tsfc/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"""


def compile_form(form, prefix="form", parameters=None, interface=None, diagonal=False, log=False, **kwargs):
def compile_form(form, prefix="form", parameters=None, interface=None, diagonal=False, log=False):
"""Compiles a UFL form into a set of assembly kernels.
:arg form: UFL form
Expand All @@ -59,18 +59,6 @@ def compile_form(form, prefix="form", parameters=None, interface=None, diagonal=
"""
cpu_time = time.time()

if "coffee" in kwargs:
use_coffee = kwargs.pop("coffee")
if use_coffee:
raise ValueError("COFFEE support has been removed from TSFC")
else:
import warnings
warnings.warn(
"The coffee kwarg has been removed from compile_form as COFFEE "
"is no longer a supported backend.", FutureWarning)
if kwargs:
raise ValueError("compile_form called with unexpected arguments")

assert isinstance(form, Form)

GREEN = "\033[1;37;32m%s\033[0m"
Expand Down
Loading