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

Delete unnecessary output and calculation #140

Merged
merged 17 commits into from
Feb 22, 2024

Conversation

kohei-noda-qcrg
Copy link
Member

このプルリクは何?

プルリクの内容を記述してください

  • e0aftertra.f90の実行時間が長すぎる #133 を解消したプルリクです
    • DEBUG シンボルを追加して、デバッグ用ビルド以外のとき、時間がかかる特定のコードを実行しないようにしました
    • 以下のようにするとデバッグ用ビルド以外のときは、#ifdef から#endifまでのコードが実行されません
      #ifdef DEBUG
      !! TEST TO CALCULATE FOCK MATRIX OF HF STATE fpq = hpq + SIGUMA_r[(pq|rr)-(pr|qr)]
      !! THIS MUST BE DIAGONAL MATRIX AND DIAGONAL ELEMENTS CORESPONDS TO SPINOR ENERGIES.
      if (realonly%is_realonly()) then
      allocate (fock_real(nmo, nmo)); Call memplus(KIND(fock_real), SIZE(fock_real), 1)
      fock_real(:, :) = 0.0d+00
      call fock_matrix_of_hf_real
      else
      Allocate (fock_cmplx(nmo, nmo)); Call memplus(KIND(fock_cmplx), SIZE(fock_cmplx), 2)
      fock_cmplx(:, :) = 0.0d+00
      call fock_matrix_of_hf_complex
      End if
      #endif
  • 不要なアウトプットも削除しました
    • 削除前後の行数
      • 1/3程度になっています
    ~/develop/dirac_caspt2_main/test/dev/c2_h2o_dev (delete-unnecessary-output-and-calculation *) $ wc -l c2_h2o_dev.caspt2.out reference.c2_h2o_dev.out
     769 c2_h2o_dev.caspt2.out
    2524 reference.c2_h2o_dev.out
    3293 total

実装の内容

実装の内容を記述してください

(optional) 考慮事項

起こりうるバグなどがわかっている場合記述してください

@kohei-noda-qcrg kohei-noda-qcrg merged commit 5cee8fb into main Feb 22, 2024
14 checks passed
@kohei-noda-qcrg kohei-noda-qcrg deleted the delete-unnecessary-output-and-calculation branch February 22, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants