fparser icon indicating copy to clipboard operation
fparser copied to clipboard

Allow for overriding of intrinsics with different numbers of arguments

Open arporter opened this issue 3 years ago • 1 comments

If code shadows an intrinsic but gives it a different interface then fparser currently raises a SyntaxError as the interface does not match that of the Fortran intrinsic and it does not countenance any other options. It would probably be better if the match on the intrinsic were simply allowed to fail at this stage.

arporter avatar Mar 07 '22 21:03 arporter

I've pushed my current patch (that I use with NEMOVAR) to 313_permit_intrinsic_shadowing. We (@rupertford and perhaps @sergisiso ) need to decide if we're happy with this, whether it should be a configuration option or something else.

arporter avatar Mar 07 '22 21:03 arporter

In MIN/control_vectors.F90 an interface named dot_product is declared. We should be able to use the symbol table functionality to cope with calls to this within that source file.

arporter avatar Jun 12 '23 15:06 arporter