_fix_argument fixes argument in the same call looking at different interfaces
This line fails to compile, as it does not find the interface ( it doesn't exist)
CALL mpp_minloc( 'domngb', real(zdist(:,:), 0._sp), llmsk, zmini%val, iloc, ldhalo = .TRUE. )
This is caused by the following lines in function
# For sure there is a dp version of this subprogram, otherwise the code would not work in dp if dummy_a.type == VariablePrecision.real_id['sp']: line = Inserter.add_real_to_argument(arg.name, line,VariablePrecision.real_number_id[dummy_a.type]) else: # dp: if a sp version of the subprogram existed we would have catch it with previous if # -> mantain dp # wp: maintain wp line = Inserter.add_real_to_argument(arg.name, line,VariablePrecision.real_number_id[dummy_a.type])
This interface exists in two different flavurs:
dp, but not mixed because it is not necessary.
I think we should first try to determine the interface to use, and then stuck with it.