Skip to content

Commit

Permalink
tosquash: capitalize min/max
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Jun 1, 2021
1 parent fe68b52 commit 63b2074
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions devito/operator/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ class Operator(Callable):
"""

_default_headers = [('_POSIX_C_SOURCE', '200809L'),
('min(a,b)', '(((a) < (b)) ? (a) : (b))'),
('max(a,b)', '(((a) > (b)) ? (a) : (b))')]
('MIN(a,b)', '(((a) < (b)) ? (a) : (b))'),
('MAX(a,b)', '(((a) > (b)) ? (a) : (b))')]
_default_includes = ['stdlib.h', 'math.h', 'sys/time.h']
_default_globals = []

Expand Down
2 changes: 1 addition & 1 deletion devito/symbolics/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class CodePrinter(C99CodePrinter):

custom_functions = {'Min': 'min', 'Max': 'max', 'INT': '(int)',
custom_functions = {'Min': 'MIN', 'Max': 'MAX', 'INT': '(int)',
'FLOAT': '(float)', 'DOUBLE': '(double)'}

"""
Expand Down

0 comments on commit 63b2074

Please sign in to comment.