Skip to content

f%add([...]) first array entry ignored? #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
derdrdirk opened this issue Jan 14, 2018 · 2 comments
Closed

f%add([...]) first array entry ignored? #4

derdrdirk opened this issue Jan 14, 2018 · 2 comments

Comments

@derdrdirk
Copy link

derdrdirk commented Jan 14, 2018

I copied your example for writing a CSV file, but
call f%add(['x','y','z','t']) is writing the x into the row.
My total output is given by:

 "y","z","t","�"
1.000,2.000,3.000,T
4.000,5.000,6.000,F

I am using OSX with gfortran 7.2.0 with the command gfortran main.f90 -L fortran-csv-module/lib/ -lcsv

@jacobwilliams
Copy link
Owner

jacobwilliams commented Jan 15, 2018

I can confirm this. It works fine with the intel compiler, so I suspect it is a gfortran compiler bug. I'll look into it.

jacobwilliams added a commit that referenced this issue Jan 15, 2018
added a workaround for gfortran character bugs. Fixes #4.
@jacobwilliams
Copy link
Owner

I think it should be fixed now. It was a gfortran compiler bug, so I added a weird workaround that seemed to make it work. Let me know if there are any other problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants