Skip to content

Commit

Permalink
[mapping] add SymbolicWeightedVolume class
Browse files Browse the repository at this point in the history
  • Loading branch information
saidctb authored and yguclu committed Jan 20, 2020
1 parent 860eb6a commit d668c6d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sympde/topology/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,13 @@ def _sympystr(self, printer):
mapping = sstr(self.mapping)
return 'inv_det({})'.format(mapping)

class SymbolicWeightedVolume(SymbolicMappingExpr):
_name = 'wvol'
def _sympystr(self, printer):
sstr = printer.doprint
mapping = sstr(self.mapping)
return 'wvol({})'.format(mapping)

#==============================================================================
class MappingApplication(Function):
nargs = None
Expand Down

0 comments on commit d668c6d

Please sign in to comment.