You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was checking some features of FLAP and it's a great tool, i'm sure that will be useful for us :)
Through flap_test, I have seen that in some lines when a logical is expected by FLAP there is no error handling. For example if you runl flap_test with the following arguments an error arises:
$ flap_test/FLAP_TEST -s 'asdf' --boolean_val 0
+--> flap_test, a testing program for FLAP library
+--> Parsing Command Line Arguments
forrtl: severe (59): list-directed I/O syntax error, unit -5, file Internal List-Directed Read
...
FLAP_TEST 0000000000411D54 data_type_command 289 ...
...
you are right. The error trapping algorithm is presently very trivial and there is big room for improving this algorithm.
Feel free to fork FLAP repo, do your great enhancements and commit a pull request. I will very happy to accept your pull requests.
For this specific patch I add it very soon, I hope before tonight. Maybe, I can try to improve the casting of also other types (numbers should be already handled by IR_Precision, but I am not sure).
Hello Stefano,
I was checking some features of FLAP and it's a great tool, i'm sure that will be useful for us :)
Through flap_test, I have seen that in some lines when a logical is expected by FLAP there is no error handling. For example if you runl flap_test with the following arguments an error arises:
The error references the following line:
https://github.com/szaghi/FLAP/blob/master/src/Data_Type_Command_Line_Interface.f90#L289
A proposal to handle this error might be to replace that line with:
Maybe you will find this change useful.
Best regards,
Víctor.
The text was updated successfully, but these errors were encountered: