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

Creation of ActorPowerNeeds initial commit #251

Merged
merged 12 commits into from
Mar 20, 2023
Merged

Conversation

TimSlendebroek
Copy link
Contributor

No description provided.

@TimSlendebroek TimSlendebroek mentioned this pull request Mar 13, 2023
4 tasks
@TimSlendebroek
Copy link
Contributor Author

@orso82 although not perfect yet I think this should be pushed

@@ -54,6 +49,12 @@ function ActorHeatTransfer(dd::IMAS.dd, act::ParametersAllActors; kw...)
return actor
end

function ActorHeatTransfer(dd::IMAS.dd, par::FUSEparameters__ActorHeatTransfer, act::ParametersAllActors; kw...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you're missing the act field in the ActorHeatTransfer structure, though that does not appear to be used, so why have it?

function ActorThermalCycle(dd::IMAS.dd, par::FUSEparameters__ActorThermalCycle, act::ParametersAllActors; kw...)
logging_actor_init(ActorThermalCycle)
par = par(kw...)
return ActorThermalCycle(dd, par, act.ActorHeatTransfer)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, but we have generally keep the whole act. Maybe stick with it to be consistent with how compound actors are handled elsewhere?

Suggested change
return ActorThermalCycle(dd, par, act.ActorHeatTransfer)
return ActorThermalCycle(dd, par, act)

@TimSlendebroek TimSlendebroek merged commit aa599a7 into master Mar 20, 2023
@orso82 orso82 deleted the BOP_power_needs branch April 1, 2023 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants