Skip to content

Commit c46d038

Browse files
Merge pull request #2215 from OceanParcels/using_AdvectionRK4_for_ref_kernel_signature
Using AdvectionRK4 for reference of Kernel signature check
2 parents 2ce77c1 + 7c5789b commit c46d038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parcels/kernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from parcels.application_kernels.advection import (
1212
AdvectionAnalytical,
13+
AdvectionRK4,
1314
AdvectionRK45,
1415
)
1516
from parcels.basegrid import GridType
@@ -24,7 +25,6 @@
2425
_raise_time_extrapolation_error,
2526
)
2627
from parcels.tools.warnings import KernelWarning
27-
from tests.common_kernels import DoNothing
2828

2929
if TYPE_CHECKING:
3030
from collections.abc import Callable
@@ -69,7 +69,7 @@ def __init__(
6969
for f in pyfuncs:
7070
if not isinstance(f, types.FunctionType):
7171
raise TypeError(f"Argument pyfunc should be a function or list of functions. Got {type(f)}")
72-
_assert_same_function_signature(f, ref=DoNothing, context="Kernel")
72+
_assert_same_function_signature(f, ref=AdvectionRK4, context="Kernel")
7373

7474
if len(pyfuncs) == 0:
7575
raise ValueError("List of `pyfuncs` should have at least one function.")

0 commit comments

Comments
 (0)