@@ -220,7 +220,7 @@ def values(self):
220220 else :
221221 return super ().values ()
222222
223- def div (self , shift = None , order = None , method = 'FD' , ** kwargs ):
223+ def div (self , shift = None , order = None , method = 'FD' , side = None , ** kwargs ):
224224 """
225225 Divergence of the TensorFunction (is a VectorFunction).
226226
@@ -240,7 +240,6 @@ def div(self, shift=None, order=None, method='FD', **kwargs):
240240 weights/w: list, tuple, or dict, optional, default=None
241241 Custom weights for the finite differences.
242242 """
243- side = kwargs .get ("side" )
244243 w = kwargs .get ('weights' , kwargs .get ('w' ))
245244 comps = []
246245 func = vec_func (self )
@@ -262,7 +261,7 @@ def laplace(self):
262261 """
263262 return self .laplacian ()
264263
265- def laplacian (self , shift = None , order = None , method = 'FD' , ** kwargs ):
264+ def laplacian (self , shift = None , order = None , method = 'FD' , side = None , ** kwargs ):
266265 """
267266 Laplacian of the TensorFunction with shifted derivatives and custom
268267 FD order.
@@ -287,7 +286,6 @@ def laplacian(self, shift=None, order=None, method='FD', **kwargs):
287286 weights/w: list, tuple, or dict, optional, default=None
288287 Custom weights for the finite
289288 """
290- side = kwargs .get ("side" )
291289 w = kwargs .get ('weights' , kwargs .get ('w' ))
292290 comps = []
293291 func = vec_func (self )
@@ -366,7 +364,7 @@ def __str__(self):
366364
367365 __repr__ = __str__
368366
369- def div (self , shift = None , order = None , method = 'FD' , ** kwargs ):
367+ def div (self , shift = None , order = None , method = 'FD' , side = None , ** kwargs ):
370368 """
371369 Divergence of the VectorFunction, creates the divergence Function.
372370
@@ -386,7 +384,6 @@ def div(self, shift=None, order=None, method='FD', **kwargs):
386384 weights/w: list, tuple, or dict, optional, default=None
387385 Custom weights for the finite difference coefficients.
388386 """
389- side = kwargs .get ("side" )
390387 w = kwargs .get ('weights' , kwargs .get ('w' ))
391388 shift_x0 = make_shift_x0 (shift , (len (self .space_dimensions ),))
392389 order = order or self .space_order
@@ -403,7 +400,7 @@ def laplace(self):
403400 """
404401 return self .laplacian ()
405402
406- def laplacian (self , shift = None , order = None , method = 'FD' , ** kwargs ):
403+ def laplacian (self , shift = None , order = None , method = 'FD' , side = None , ** kwargs ):
407404 """
408405 Laplacian of the VectorFunction, creates the Laplacian VectorFunction.
409406
@@ -423,7 +420,6 @@ def laplacian(self, shift=None, order=None, method='FD', **kwargs):
423420 weights/w: list, tuple, or dict, optional, default=None
424421 Custom weights for the finite
425422 """
426- side = kwargs .get ("side" )
427423 w = kwargs .get ('weights' , kwargs .get ('w' ))
428424 func = vec_func (self )
429425 shift_x0 = make_shift_x0 (shift , (len (self .space_dimensions ),))
@@ -436,7 +432,7 @@ def laplacian(self, shift=None, order=None, method='FD', **kwargs):
436432 for s in self ]
437433 return func ._new (comps )
438434
439- def curl (self , shift = None , order = None , method = 'FD' , ** kwargs ):
435+ def curl (self , shift = None , order = None , method = 'FD' , side = None , ** kwargs ):
440436 """
441437 Gradient of the (3D) VectorFunction, creates the curl VectorFunction.
442438
@@ -459,7 +455,6 @@ def curl(self, shift=None, order=None, method='FD', **kwargs):
459455 if len (self .space_dimensions ) != 3 :
460456 raise AttributeError ("Curl only supported for 3D VectorFunction" )
461457 # The curl of a VectorFunction is a VectorFunction
462- side = kwargs .get ("side" )
463458 w = kwargs .get ('weights' , kwargs .get ('w' ))
464459 dims = self .root_dimensions
465460 derivs = ['d%s' % d .name for d in dims ]
@@ -486,7 +481,7 @@ def curl(self, shift=None, order=None, method='FD', **kwargs):
486481 func = vec_func (self )
487482 return func ._new (3 , 1 , [comp1 , comp2 , comp3 ])
488483
489- def grad (self , shift = None , order = None , method = 'FD' , ** kwargs ):
484+ def grad (self , shift = None , order = None , method = 'FD' , side = None , ** kwargs ):
490485 """
491486 Gradient of the VectorFunction, creates the gradient TensorFunction.
492487
@@ -506,7 +501,6 @@ def grad(self, shift=None, order=None, method='FD', **kwargs):
506501 weights/w: list, tuple, or dict, optional, default=None
507502 Custom weights for the finite difference coefficients.
508503 """
509- side = kwargs .get ("side" )
510504 w = kwargs .get ('weights' , kwargs .get ('w' ))
511505 func = tens_func (self )
512506 ndim = len (self .space_dimensions )
0 commit comments