How to print internal variables efficiently?  [SOLVED]

mgrddb, anaddb, cut3d, electron-phonon coupling,...

Moderators: mverstra, aromero

Post Reply
cgs12
Posts: 16
Joined: Thu Apr 27, 2017 6:27 pm

How to print internal variables efficiently?  [SOLVED]

Post by cgs12 » Sat Mar 21, 2020 5:18 pm

Hi,

May I ask if there is an easy way to print out internal variables? Specifically, I am looking at the projection vector variable 'xi' in the subroutine fock2ACE in 66_wfs/m_fock_getghc.F90. This variable has a similar structure as the wavefunction coefficients so perhaps I can use a similar method for printing?

Thank you!

Best,
Ying Shi Teh

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: How to print internal variables efficiently?

Post by ebousquet » Mon Mar 30, 2020 9:33 am

Dear Ying Shi Teh,
If what you are looking for printing is not in prtvol options:
https://docs.abinit.org/variables/files/#prtvol
Then the best would be that you hack slightly the code for printing the information you want (this might be already there in the code but for debug purpose only)?
Best wishes,
Eric

cgs12
Posts: 16
Joined: Thu Apr 27, 2017 6:27 pm

Re: How to print internal variables efficiently?

Post by cgs12 » Fri Apr 03, 2020 1:50 am

Dear Eric,

Thanks for your reply. Yes, I may have to hack slightly but the prtvol options seem very useful too.

Best,
Ying Shi

Post Reply