szaghi / FLAP

Fortran command Line Arguments Parser for poor people
151 stars 34 forks source link

args length with GNU fortran #52

Open victorsndvg opened 9 years ago

victorsndvg commented 9 years ago

Hi @szaghi,

I've seen that, when using GFortran, args length is set to 100: https://github.com/szaghi/FLAP/blob/master/src/lib/Data_Type_Command_Line_Interface.F90#L126

I don't remember what is the problem, but I already checked that the allocatable array of deferred-length allocatable characters still not working with GFortran 5.1.

Actually, we need to increase the length of the arguments. The first idea is to set a bigger static value in my fork. Do you have any suggestion?

Thanks! :)

szaghi commented 9 years ago

Hi @victorsndvg ,

yes the problem was just the issue of GNU gfortran related to allocatable deferred length characters variables inside derived type. I am on gfortran v5.2 and the issue is still here. I think that the testing branch 6.x has solved this bug, but I am not sure. For the moment, I prefer to keep this work around.

Let me know the size you would like to have, or put it into your fork and create a Pull Request. I will happy to accept it.

See you soon.