Describe the Code Quality Issue
Currently, Charge_Mixing::set_mixing() does three things:
- pass the mixing parameters.
- construct a mixing item.
- allocate the memory for mixing_data.
Usually, we need to restart the mixing without updating the mixing parameters.
It is better to define a new function init_mixing() to do 2&3.
This is a step for refactor of Charge_Mixing class #3363.
Additional Context
No response
Task list for Issue attackers (only for developers)
Describe the Code Quality Issue
Currently,
Charge_Mixing::set_mixing()does three things:Usually, we need to restart the mixing without updating the mixing parameters.
It is better to define a new function
init_mixing()to do 2&3.This is a step for refactor of Charge_Mixing class #3363.
Additional Context
No response
Task list for Issue attackers (only for developers)