We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41f2e03 commit 2f526eeCopy full SHA for 2f526ee
1 file changed
src/pyclaw/state.py
@@ -4,21 +4,6 @@
4
Module containing all Pyclaw solution objects
5
"""
6
7
-# Default mapc2p functions
8
-def identity_map_1d(x):
9
- return x,
10
-
11
-def identity_map_2d(x,y):
12
- return x,y
13
14
-def identity_map_3d(x,y,z):
15
- return x,y,z
16
17
-identity_map={'1': identity_map_1d,
18
- '2': identity_map_2d,
19
- '3': identity_map_3d}
20
21
22
class State(object):
23
r"""
24
A PyClaw State object contains the current state on a particular patch,
@@ -193,6 +178,7 @@ def is_valid(self):
193
178
194
179
195
180
import logging
181
+ from .geometry import identity_map
196
182
valid = True
197
183
logger = logging.getLogger('pyclaw.solution')
198
184
if not self.q.flags['F_CONTIGUOUS']:
0 commit comments