-
Notifications
You must be signed in to change notification settings - Fork 174
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
Single and quadruple precisions for load/savetxt #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few minor comments. I think this looks great. Thank you!
src/stdlib_experimental_io.f90
Outdated
end interface | ||
|
||
contains | ||
|
||
!PUBLIC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this !PUBLIC
do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am used to sort the different procedures in groups of public and private procedures. This !PUBLIC
(and !PRIVATE
below) refer to these two groups. I can remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Once we fix #4, we'll consolidate all such things.
src/stdlib_experimental_io.f90
Outdated
@@ -1,28 +1,65 @@ | |||
module stdlib_experimental_io | |||
use iso_fortran_env, only: sp=>real32, dp=>real64 | |||
use iso_fortran_env, only: sp=>real32, dp=>real64 ,qp=>real128 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after ,
and no space before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected
src/stdlib_experimental_io.f90
Outdated
logical :: lastwhite | ||
real(dp) :: r | ||
integer :: s | ||
integer ::nrow,ncol,i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after ::
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected
src/stdlib_experimental_io.f90
Outdated
end do | ||
|
||
rewind(s) | ||
ncol=number_of_columns(s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space around =
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected
src/stdlib_experimental_io.f90
Outdated
end subroutine | ||
|
||
|
||
!PRIVATE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this does a similar thing as the !PUBLIC
above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to merge!
This is +1 from me to merge as is. The changes are straightforward, they do not change the public API and they all happen in experimental, so I am going to merge it. |
@jvdp1 thanks for the contribution! |
I've mentioned in the issue on quadrature that I'd like to have implementations for integrating complex functions. I think, that seeing as complex numbers are implemented in fortran, we could include them in the library. I've made the modifications to common.fypp, stdlib_experimental_io.fypp, and test_savetxt.f90 to add support to loadtxt and savetxt for complex numbers. Is that desired? Should I open a pull request? |
@fiolj same comment as in #62 comment: I think it is a good idea to add |
Yes @jvdp1, I'll try this week to put in stats, probably not before tuesday or wednesday. When I was to do it I realized that I should start with |
No description provided.