Skip to content
Snippets Groups Projects

Draft: Fortran Support

2 files
+ 5
3
Compare changes
  • Side-by-side
  • Inline

Files

+ 2
0
@@ -38,6 +38,8 @@ def get_arg_str(args: typing.OrderedDict[str, str], bigint: typing.List[str] = [
@@ -38,6 +38,8 @@ def get_arg_str(args: typing.OrderedDict[str, str], bigint: typing.List[str] = [
v = str(v).replace("&", "")
v = str(v).replace("&", "")
# Need to remove derefs, but preserve multiplication!
# Need to remove derefs, but preserve multiplication!
v = re.sub(r"^\*", r"", v)
v = re.sub(r"^\*", r"", v)
 
# Need to replace % with MODULO
 
v = re.sub(r"([A-z0-9]+)\s*\%\s*([A-z0-9]+)", r"modulo(\1, \2)", v)
if k in bigint:
if k in bigint:
v = f"int({v}, mpi_address_kind)"
v = f"int({v}, mpi_address_kind)"
s += str(v)
s += str(v)
Loading