Page 1 of 1

How to print internal variables efficiently?  [SOLVED]

Posted: Sat Mar 21, 2020 5:18 pm
by cgs12
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

Re: How to print internal variables efficiently?

Posted: Mon Mar 30, 2020 9:33 am
by ebousquet
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

Re: How to print internal variables efficiently?

Posted: Fri Apr 03, 2020 1:50 am
by cgs12
Dear Eric,

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

Best,
Ying Shi