Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FEniCS/dolfinx
/ MyExpression
Class
MyExpression
python/test/unit/fem/test_function.py:139–144 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
137
138
def
test_interpolation_rank0(V):
139
class
MyExpression:
140
def
__init__(self):
141
self.t = 0.0
142
143
def
eval(self, x):
144
return
np.full(x.shape[1], self.t)
145
146
f = MyExpression()
147
f.t = 1.0
Callers
1
test_interpolation_rank0
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_interpolation_rank0
Function · 0.68