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

Iteration is oblivious to state of m1qn3_offline #4

Open
mjlosch opened this issue Sep 25, 2020 · 3 comments
Open

Iteration is oblivious to state of m1qn3_offline #4

mjlosch opened this issue Sep 25, 2020 · 3 comments

Comments

@mjlosch
Copy link
Owner

mjlosch commented Sep 25, 2020

the state of m1qn3_offline is saved to a file OPWARM.opt${iter} after each call to m1qn3_offline. This can lead to a situation where the optimization terminates with a defined state (e.g. omode = 1, 4, 5, or 6), but when optim_m1qn3 is called again (because the controlling loop does not pay attention to this) a new iteration will begin that starts with values of nsim, niter, epsg, that were not intended, as reported by @dngoldberg

This can lead to some confusion.

@mjlosch
Copy link
Owner Author

mjlosch commented Sep 25, 2020

the latest change to optim_m1qn3_store.F (11ed1c6) makes the code stop with an error message, if the restart file does not exist, but we still write restart files, even if the optimization has terminated with reverse=-1. Currently, the way to look for a terminated optimization is to grep the output of optim.x for "ABNORMAL in S/R OPTIM_SUB".

@ifenty
Copy link

ifenty commented Nov 16, 2020

@mjlosch Is this bug fixed, I can't tell from your last comment! :)

@mjlosch
Copy link
Owner Author

mjlosch commented Nov 16, 2020

@ifenty I don't think that this is a bug. I don't see a way to control the user from within the fortran routine. The program cannot determine if a certain set of values of nsim, inter, or epsg makes sense or not. In my opinion, this was a (albeit subtle) user error and I tried to explain the usage a little better.

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

No branches or pull requests

2 participants