Closed loriab closed 1 year ago
I ran a test. The initial suffix ~ was present in the .log output but not in .out. The code is hard to track here, but it looks like the first time it is called, only the log file gets written to. I tried changing to
suffix = "~\n" if conv_info.get("iternum") == 1 else "\n"
and now .log and .out agree. Do you see any issues @AlexHeide ? If not, I'll work this into my current pull request.
Checking for iter_num == 1
looks right to me.
I noticed the top of the convergence
grep '~'
table wasn't getting printed with optking. It looks like it's becauseiternum
starts with 1, while the printing is set up to add the suffix when the iternum is 0. I can "fix" it easily enough with the change in the snippet below, but I don't know if that would throw off other entry points/users. Maybe psi4 driver needs to decrement the iteration number before it hits optking instead? Second snippet is output of tu3 if I do the selfish edit in optking. :-)Anyways, not a big deal, just letting you know.
convcheck.py