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

-lmo prints now list of basic atoms #831

Merged
merged 4 commits into from
Aug 1, 2023
Merged

Conversation

gorges97
Copy link
Contributor

@gorges97 gorges97 commented Jul 7, 2023

The "basicatoms" list can be better parsed than the default printout and can be used in workflows, where basic reaction sides are important.

Copy link
Contributor

@Albkat Albkat left a comment

Choose a reason for hiding this comment

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

Generally, I found the output of the basicatoms a little confusing. It contains only atom indices, which is essentially a list of integers.
Do you need separate file for this, or is it enough to append this info to some existing files (e.g. xtblmoinfo)?

src/local.f90 Outdated
@@ -321,10 +321,18 @@ subroutine local(nat,at,nbf,nao,ihomo,xyz,z,focc,s,p,cmo,eig,q,etot,gbsa,basis,r
call lmotype(nat,at,xyz,ecent(i,1),ecent(i,2),ecent(i,3), &
& imem(1),imem(2),xcen(i),.true.,pithr,jdum)
endif
if(set%pr_local) write(*,'(i5,1x,a5,2f7.2,3f10.5,12(i5,a2,'':'',f6.2))') &
if(set%pr_local) then
write(*,'(i5,1x,a5,2f7.2,3f10.5,12(i5,a2,'':'',f6.2))') &
Copy link
Contributor

Choose a reason for hiding this comment

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

As I understood, your main concern was that xtb-output is hard for parsing.
what if add some spacing between corresponding characters?

Suggested change
write(*,'(i5,1x,a5,2f7.2,3f10.5,12(i5,a2,'':'',f6.2))') &
write(*,'(i5,1x,a5,2f7.2,3f10.5,12(i5,2x,a2,'':'',f6.2))') &

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion, I have changed the output and removed the extra file.

Albkat and others added 2 commits July 21, 2023 11:08
Signed-off-by: albert <92109627+Albkat@users.noreply.github.com>
Signed-off-by: gorges <58849467+gorges97@users.noreply.github.com>
Signed-off-by: albert <92109627+Albkat@users.noreply.github.com>
changed formatting of -lmo calculation output for better parsing
@MtoLStoN MtoLStoN merged commit 23df5fc into grimme-lab:main Aug 1, 2023
8 of 9 checks passed
marcelmbn pushed a commit to marcelmbn/xtb that referenced this pull request Aug 15, 2023
* changed formatting of -lmo calculation output for better parsing

Signed-off-by: gorges <58849467+gorges97@users.noreply.github.com>
Signed-off-by: albert <92109627+Albkat@users.noreply.github.com>

---------

Signed-off-by: albert <92109627+Albkat@users.noreply.github.com>
Signed-off-by: gorges <58849467+gorges97@users.noreply.github.com>
Co-authored-by: albert <92109627+Albkat@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants