Commit 6ebed1fb authored by Oriol Tintó-Prims's avatar Oriol Tintó-Prims
Browse files

Instead of casting to sp, cast to wp to ensure that compiles also without key_single.

parent 2ba293ac
......@@ -58,6 +58,9 @@ def find_call_in_original_file(routine, argument, argument_index, _file, target_
if new_argument.count("REAL(REAL("):
patt = "REAL\((.*),(.*)\)"
m = re.search(patt, argument)
# TODO: Probably shouldn't use sp and wp since those are model specific.
if target_type == "sp":
target_type = "wp"
new_argument = "REAL(%s, %s)" % (m.group(1), target_type)
# Fix the pattern to account for regex rules
pattern = r"\b%s\b####\b%s" % (routine, argument)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment