Commit 512cb9b0 authored by sparonuz's avatar sparonuz
Browse files

[run_with_ICE]: it looks like this part of code is non necessary

parent 82d46340
......@@ -273,13 +273,13 @@ def add_real_to_argument(argument, string, precision=VariablePrecision.real_id["
if string.count("real(" + argument + precision + ")") == string.count(argument):
return string
# Avoid add real to all array element if is an array with a loop
if NatureDeterminer.is_an_hardcoded_array(argument) and \
not NatureDeterminer.is_an_hardcoded_array_with_loop(argument):
new_arg = add_real_to_array_arguments(argument)
else:
new_arg = "real(" + argument + precision + ")"
# # Avoid add real to all array element if is an array with a loop
# if NatureDeterminer.is_an_hardcoded_array(argument) and \
# not NatureDeterminer.is_an_hardcoded_array_with_loop(argument):
# new_arg = add_real_to_array_arguments(argument)
#
# else:
new_arg = "real(" + argument + precision + ")"
string = replace_variable_exact_match(argument, new_arg, string)
return string
......
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