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

Diffusion clone bug #353

Open
asmfstatoil opened this issue Mar 7, 2022 · 2 comments
Open

Diffusion clone bug #353

asmfstatoil opened this issue Mar 7, 2022 · 2 comments

Comments

@asmfstatoil
Copy link
Collaborator

Describe the bug
Fails cloning Diffusion objects when components have been added after creation

To Reproduce
SystemInterface airThermoSystem = neqsim.thermo.Fluid.create("air");
airThermoSystem.addComponent("CO2", 0.0);
airThermoSystem.addComponent("water", 0.0);
airThermoSystem.clone();

Expected behavior
Not failing in Diffusivity clone method

@asmfstatoil
Copy link
Collaborator Author

See pr #351 for where error is seen

@asmfstatoil
Copy link
Collaborator Author

Adding
airThermoSystem.initPhysicalProperties();
before calling clone() seems to reinitialize diffusion object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant