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

Progress in refactoring code and implementing unit tests #81

Merged
merged 12 commits into from
Sep 23, 2023

Conversation

kousuke-nakano
Copy link
Collaborator

What I am doing right now are:

  • Adding intent(in, out, inout) statements,
  • Adding use only statements, and
  • Implementing unit tests for the updated codes if possible.

In this pull request, I have changed:

  • Updated test_zsktri.f90
  • Updated test_zsktrs.f90
  • Updated upwinv.f90
  • Updated upwinvp.f90
  • Introduced new tests
    • test_zsktri.f90
    • test_zsktrs.f90
    • test_upwinvp.f90
    • test_upwinvp_complex.f90

#12

@kousuke-nakano kousuke-nakano added the refactoring Refactoring code label Sep 14, 2023
@kousuke-nakano kousuke-nakano self-assigned this Sep 14, 2023
Copy link
Collaborator

@addman2 addman2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a question if zsktr[si] should go to pfapack part. Then they should be rewritten to fixed from fortran.

@kousuke-nakano
Copy link
Collaborator Author

Thanks @addman2!

zsktr[si] should go to pfapack part. Then they should be rewritten to fixed from fortran.

Yes, they are subroutines related to Pfaffian. So we can move them. Did you find corresponding subroutines in pfapack?

@addman2
Copy link
Collaborator

addman2 commented Sep 22, 2023

Dear @kousuke-nakano,

well the original pfapack does not contain z double-complex skew-symmetric solver and invertor. But according to the license we can modify pfapack. So there is no problem to add zsktr* from m_common to m_pfapack where it by nature belongs.

However by our linting rule it should be rewritten to fixed-form fortran. But let's do one step at a time. I would merge this PR, create an issue about it and leave it to next PR. That is my suggestion.

@kousuke-nakano
Copy link
Collaborator Author

well the original pfapack does not contain z double-complex skew-symmetric solver and invertor. But according to the license we can modify pfapack. So there is no problem to add zsktr* from m_common to m_pfapack where it by nature belongs.

However by our linting rule it should be rewritten to fixed-form fortran. But let's do one step at a time. I would merge this PR, create an issue about it and leave it to next PR. That is my suggestion.

Sure! Let's fix this problem later.

@kousuke-nakano kousuke-nakano merged commit 4542561 into sissaschool:devel Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants