Skip to content
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

File /stdlib/example/linalg/example_sparse_from_ijv.f90 #918

Open
tof92130 opened this issue Jan 15, 2025 · 3 comments
Open

File /stdlib/example/linalg/example_sparse_from_ijv.f90 #918

tof92130 opened this issue Jan 15, 2025 · 3 comments
Labels
idea Proposition of an idea and opening an issue to discuss it

Comments

@tof92130
Copy link

tof92130 commented Jan 15, 2025

Motivation

/stdlib/example/linalg/example_sparse_from_ijv.f90

line 38 to compile with gfortran-14.2.0:

print '(3I4,x,3f8.1)', ELL%index(i,:) , ELL%data(I,:)
sourd be:

print '(3I4,1x,3f8.1)', ELL%index(i,:) , ELL%data(i,:)

Prior Art

No response

Additional Information

No response

@tof92130 tof92130 added the idea Proposition of an idea and opening an issue to discuss it label Jan 15, 2025
@perazz
Copy link
Member

perazz commented Jan 17, 2025

This looks like a style typo, cc @jalvesz?

@jalvesz
Copy link
Contributor

jalvesz commented Jan 17, 2025

The current line is

print '(3I4,x,3f8.1)', ELL%index(i,:) , ELL%data(i,:)

So I guess the comment is about the white space formatter x vs 1x ? If so, sure, I did not realize as both run with all compilers tested including gfortran 14.2. I see no problem changing it for 1x.

@perazz
Copy link
Member

perazz commented Jan 17, 2025

Thanks for reporting this @tof92130.

@perazz perazz closed this as completed Jan 17, 2025
@perazz perazz reopened this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Proposition of an idea and opening an issue to discuss it
Projects
None yet
Development

No branches or pull requests

3 participants