sissaschool / turborvb

Quantum Monte Carlo package, TurboRVB
https://turborvb.sissa.it
GNU General Public License v3.0
29 stars 6 forks source link

Progress in refactoring code and implementing unit tests #82

Open kousuke-nakano opened 1 year ago

kousuke-nakano commented 1 year ago

What I am doing right now are:

In this pull request, I have changed several codes in /src/m_common/

12

michele-casula commented 1 year ago

Hi all,

I think the bracket convention is more used, or at least is the one I have seen used more often in the most recent fortran codes.

Ciao Michele

On Sat, Sep 30, 2023 at 4:29 PM kousuke-nakano @.***> wrote:

@.**** commented on this pull request.

In src/m_common/upsim.f90 https://github.com/sissaschool/turborvb/pull/82#discussion_r1341968524:

@@ -17,9 +17,15 @@ subroutine upsim(amat, ndim, ind, value, symmagp, ipf) use allio, only: nelorb_at, pfaffup, kiontot implicit none

  • integer ndim, ndimh, ind, i, j, ipf
  • real(8) amat(ndim, *), value
  • logical symmagp
  • ! argument parameters
  • integer, intent(in) :: ndim, ind, ipf
  • real(8), intent(in) :: value

Dear @addman2 https://github.com/addman2, sure! I will use the star convention in all sources. I will fix it during the ongoing refactoring process.

— Reply to this email directly, view it on GitHub https://github.com/sissaschool/turborvb/pull/82#discussion_r1341968524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALBETJC3LTZE2MLJNYKK3LX5AUGDANCNFSM6AAAAAA5HJPHRM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

kousuke-nakano commented 1 year ago

Dear @michele-casula, yes, you are right. The bracket one seems newer. Dear @addman2, we can use the bracket one, what do you think? As you pointed out, we should be careful about the complex case, i.e., complex(8) = complex*16.