Conversation
| mem_prom = mem_prom_base + [("cd_usr", f"memload{k}.cd_usr"), ("ca_usr", f"memload{k}.ca_usr")] | ||
| elif shape == "rectangular": | ||
| mem_prom = mem_prom_base + [("cd_usr", f"memload{k}.cd_usr"), ("cdy_usr", f"memload{k}.cdy_usr"), ("ca_usr", f"memload{k}.ca_usr"), ("cay_usr", f"memload{k}.cay_usr")] | ||
|
|
There was a problem hiding this comment.
Seems like the issue was that the old code had "cd_usr" and "ca_usr" etc that were added to the promote list each time in the k-for-loop. Not sure if deleting all together is the right solution. . .
There was a problem hiding this comment.
I think it's promoting for each member, and the tuple is (old_name, new_name)
I decided to remove this because I became convinced that the issue was that these outputs were being promoted both here and here.
There was a problem hiding this comment.
I see, okay. Thanks for explaining
|
I should have noted in the PR that this is a starting point, and I'm not sure this is the correct way to fix this. It's one way to bypass the error I was getting. |
|
I've finally been able to devote time to this, recreate the bug, and convince myself that the fix here is correct. I'll look into why the tests are failing now. |
|
Great...thanks! I'm guessing it's a combination of
I can keep an eye on your new branch and have some time to tinker early this week, too. |
|
I've got it covered- no worries. Should be able to merge the fix into Great job with the debugging and detective work. OpenMDAO may be doing more rigorous testing, but it's error messages provide no help what-so-ever. |
Purpose
I ran into an issue in WEIS using the latest version of openmdao (3.43): https://github.com/dzalkind/WEIS/actions/runs/23260484956/job/67627345448#step:9:233
It seems like in v3.43, openmdao is checking connections and making graphs: https://github.com/OpenMDAO/OpenMDAO/releases. I traced the error to this new feature, which seems to run regardless of whether you use the new command, and it's getting stuck around the
ca_usr_gridand other member load inputs/outputs.These inputs seem to be connected/promoted more than once, and this change seemed to make my example on the WEIS-side work.
Type of change
Testing
Checklist