Closed k-doering-NOAA closed 2 years ago
I just tested this and it prints the right changed executable name. Can you recheck?
I just tested again using the compiled version of admb from https://github.com/admb-project/admb/actions/runs/2420289483 and still see the same original issue.
Hi @k-doering-NOAA , can you check again with admb-13.0 branch?
Thanks @johnoel , I tested with the compiled version of admb from https://github.com/admb-project/admb/actions/runs/2630900334 and found that the name does get changed:
Finished running model 'ss_test' after 2 s.
However, there is a output line that still uses whatever the original name of the exe was when it was compiled:
Starting optimization of 'ss' in phase 1 of 1 at Fri Jul 08 09:31:09 2022
Thanks for all the changes! I really appreciate it.
This is a function I helped write. It's called in a few places, namely the parts of code I modified. Source is: https://github.com/admb-project/admb/blob/admb-13.0/src/nh99/hmc_functions.cpp#L63
I wrote it for HMC stuff but then used it for the console changes for optimization too. Maybe easiest to fix the function?
Hi @k-doering-NOAA, can you recheck it?
Thanks @johnoel, I can take a look later today
For the admb 13 branch, I noticed that even if I rename the .exe file produced after compiling a model, the console output still reports the name it was compiled under.
For example, if I compile a model ss.tpl with admb 13 to get ss.exe, then rename ss.exe to ss_admb_13.exe and run the model, then the last line of the console output is still:
What I would prefer to see is:
Just wondering if there is a way to get this output.