Repository navigation
Harmonic balance initialisation #2854
Replies: 1 comment 2 replies
|
This is a bug in the driver. During the restart, every time instance reads the file of the last instance. So all 7 instances start from Why it happens
Fix (one line). Set the instance before the solvers are made: for (iZone = 0; iZone < nZone; iZone++) {
for (iInst = 0; iInst < nInst[iZone]; iInst++){
+ config_container[iZone]->SetiInst(iInst);
+
/*--- Definition of the solver class: solver_container[#ZONES][#INSTANCES][#MG_GRIDS][#EQ_SYSTEMS].The change is small in scope. Apart from file names, After you rebuild, the time instances should start from different solutions, so the initial CL should differ between instances. A restart that is missing any of the Without the patch there is no config-only workaround, because the instance index is not taken from any config option. It would be good to open an issue or a PR with this change so that it gets into the next release. |
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to restart a Harmonic Balance run from a previous solution, with 7 time instance. When the run starts it only seems to read the last time instance. If the other instances are missing from the folder the run still starts and runs. In the log, the the run starts with a single time instance with a different CL to the input (a steady state solution?) and then has constant CL for every time instance, despite being restarted from a solution with variation across 7 time instances. Any ideas whether/how to restart HB from a previous solution? Thanks.
+----------------------------------------------------------------+
| Time_Iter| Outer_Iter| Inner_Iter| CL| CD|
+----------------------------------------------------------------+
| 0| 0| 0| 0.008284| 1.084264|
| 0| 0| 1| 0.008284| 1.084264|
| 0| 0| 1| 0.008284| 1.084264|
| 0| 0| 1| 0.008284| 1.084264|
| 0| 0| 1| 0.008284| 1.084264|
| 0| 0| 1| 0.008284| 1.084264|
| 0| 0| 1| 0.008284| 1.084264|
| 0| 0| 1| 0.008284| 1.084264|
All reactions