-
Notifications
You must be signed in to change notification settings - Fork 13
Changes for ibm xlf compiler compatibility #128
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #128 +/- ##
==========================================
- Coverage 40.71% 40.69% -0.02%
==========================================
Files 62 62
Lines 11717 11743 +26
Branches 1293 1313 +20
==========================================
+ Hits 4770 4779 +9
- Misses 6425 6437 +12
- Partials 522 527 +5
Continue to review full report at Codecov.
|
src/prg_normalize_mod.F90
Outdated
type(bml_matrix_t),intent(inout) :: h_bml | ||
|
||
real(dp) :: beta, maxMinusMin | ||
real(dp), intent(in) :: mu, emin, emax | ||
real(dp), intent(inout) :: scaledmu, alpha | ||
|
||
stop |
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.
Is that a left over debug statement, or do you want to leave it here?
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.
Good catch Nick, thanks!
tests/src/main.F90
Outdated
@@ -895,7 +896,7 @@ program main | |||
case("prg_system_parse_write_xyz") | |||
call prg_parse_system(mol,"coords_100","xyz") | |||
call prg_write_system(mol, "mysystem","xyz") | |||
call system("diff -qs mysystem.xyz coords_100.xyz > tmp.tmp") | |||
call system("diff -qs --ignore-space-change mysystem.xyz coords_100.xyz > tmp.tmp") |
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.
Alternatively, you could use --ignore-all-space
which also includes changes in trailing whitespace.
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'll make that change, thanks!
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.
For performance it's better to do only one system
call instead of two.
tests/src/main.F90
Outdated
@@ -934,7 +935,8 @@ program main | |||
!> Loading the tb parameters (electrons.dat) | |||
call load_latteTBparams(tbparams,mol%splist,"./") | |||
call write_latteTBparams(tbparams,"myelectrons.dat") | |||
call system("diff -qs myelectrons.dat electrons.dat > tmp.tmp") | |||
call system("diff -qs --ignore-all-space myelectrons.dat electrons.dat > tmp.tmp") | |||
call system("diff --ignore-all-space myelectrons.dat electrons.dat") |
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.
If you would like to print the diff
and write it to file you can do this in one line with
call system("diff --report-identical-files --ignore-all-space myelectrons.dat electrons.dat | tee tmp.tmp")
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 have expanded the -s
option to --report-identical-files
which I personally find more readable. But that's not necessary for the above to work.
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.
Perfect, thanks! 👍
Changes for xlf IBM compiler compatibility.
This change is