Skip to content

Commit

Permalink
Remove old warning about COFFEE (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjward authored Oct 21, 2024
1 parent 283cc54 commit 639b86a
Showing 1 changed file with 1 addition and 13 deletions.
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

0 comments on commit 639b86a

Please sign in to comment.