{"action":"created","issue":{"url":"https://api.github.com/repos/su2code/SU2/issues/290","repository_url":"https://api.github.com/repos/su2code/SU2","labels_url":"https://api.github.com/repos/su2code/SU2/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/su2code/SU2/issues/290/comments","events_url":"https://api.github.com/repos/su2code/SU2/issues/290/events","html_url":"https://github.com/su2code/SU2/issues/290","id":164542311,"number":290,"title":"restart option with optimiser iterations","user":{"login":"tpratt1993","id":20356986,"avatar_url":"https://avatars.githubusercontent.com/u/20356986?v=3","gravatar_id":"","url":"https://api.github.com/users/tpratt1993","html_url":"https://github.com/tpratt1993","followers_url":"https://api.github.com/users/tpratt1993/followers","following_url":"https://api.github.com/users/tpratt1993/following{/other_user}","gists_url":"https://api.github.com/users/tpratt1993/gists{/gist_id}","starred_url":"https://api.github.com/users/tpratt1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpratt1993/subscriptions","organizations_url":"https://api.github.com/users/tpratt1993/orgs","repos_url":"https://api.github.com/users/tpratt1993/repos","events_url":"https://api.github.com/users/tpratt1993/events{/privacy}","received_events_url":"https://api.github.com/users/tpratt1993/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-08T14:25:29Z","updated_at":"2016-07-08T17:27:45Z","closed_at":"2016-07-08T17:27:45Z","body":"when running an optimisation process, when the solution files are arranged in the /DESIGNS/DSN_001/DIRECT/ directory tree, if the option RESTART_SOLUTION is set to YES in the cfg file, the solution does not restart from a previous restart file! instead it simply deletes all old designs and runs the process from scratch again. \r\nfor example: if i want to run the first N design iterations, then stop the process on the Nth iteration and change something in the config file -e.g. cfl num- (including setting the restart option to YES), upon resubmitting the job all N design iterations are lost and the process starts again from DSN_001.\r\n\r\nthis has proven to be quite an expensive problem for large 3D optimisations, and i am not sure wether this is a bug or something which has been hardcoded for a reason? \r\nit could be quite useful to have an option of where to restart the solution from? (e.g. restart from DSN_00X)\r\nCheers, T.P."},"comment":{"url":"https://api.github.com/repos/su2code/SU2/issues/comments/231421177","html_url":"https://github.com/su2code/SU2/issues/290#issuecomment-231421177","issue_url":"https://api.github.com/repos/su2code/SU2/issues/290","id":231421177,"user":{"login":"hlkline","id":5167760,"avatar_url":"https://avatars.githubusercontent.com/u/5167760?v=3","gravatar_id":"","url":"https://api.github.com/users/hlkline","html_url":"https://github.com/hlkline","followers_url":"https://api.github.com/users/hlkline/followers","following_url":"https://api.github.com/users/hlkline/following{/other_user}","gists_url":"https://api.github.com/users/hlkline/gists{/gist_id}","starred_url":"https://api.github.com/users/hlkline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlkline/subscriptions","organizations_url":"https://api.github.com/users/hlkline/orgs","repos_url":"https://api.github.com/users/hlkline/repos","events_url":"https://api.github.com/users/hlkline/events{/privacy}","received_events_url":"https://api.github.com/users/hlkline/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T17:27:45Z","updated_at":"2016-07-08T17:27:45Z","body":"Thanks for the question\r\nThe RESTART_SOLUTION option determines only whether the CFD solution will restart from a provided solution file, not whether the optimizer will restart. \r\nTo restart the optimizer process, this must be specified to the python script:\r\nshape_optimization.py -r project.pkl -f config.cfg -n N\r\nThe options of all the python scripts can be viewed with a command like:\r\nshape_optimization.py -h\r\n\r\nSo, to run an optimization process restarted from a previous optimization, and to have each individual simulation restart from previously converged CFD results you will need to BOTH specify RESTART_SOLUTION and the -r python option. To restart the optimizer but have each CFD simulation start from scratch, use the -r option and specify RESTART_SOLUTION=NO. \r\n\r\nRestarting from a specified design (rather than the most recent design) is not currently provided as an option, but if you are willing to dig into things manually it may be possible via editing the project.pkl and results.pkl files. \r\n\r\nIn the future, please view our forum at http://www.cfd-online.com/Forums/su2/, you may find questions about configuration options etc that have already been answered, and a wider community will be able to respond. "}}
{"actor":{"display_login":"hlkline"}}