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
CO2 rich mixture with N2 fails with segmentation fault #2333
Comments
Hi - thanks for reporting the issue. The Halley solver used in This may take some time to debug :/ |
jowr
added a commit
that referenced
this issue
Dec 7, 2023
Some comments here:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Trying to obtain the properties of 0.97CO2+0.03N2 using a C++ codeto call Coolprop I get segmentation faults depending on the input P and T. I checked with gdb and debuging the library and it seems internal to Coolprop as it is allocating a vector:
std::vector<double, std::allocator >::operator[]
The code below reproduce the problem. If instead of 264.65 K one uses, say 263.15, things are fine. By they way, I coudln't find a way to provide a guessed density, is that possible or one can only help the solver by providing the expected phase? Thank you.
Steps to Reproduce
#include "CoolProp.h"
#include
#include <stdlib.h>
using namespace CoolProp;
int main() {
}
Versions
v6.6.0 and also tested 6.4.2
The text was updated successfully, but these errors were encountered: