No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Hello, Thanks in advance for any help. I am running a fairly good-sized MPI-C++ code, and I am getting a frustratingly unreproducible segfault. I am also having trouble with gdb (I think because of my MPI implementation), but I think the problem may have something to do with the fact … | |
So here is some sample code: [code] #include<valarray> int main() { std::valarray<double> vec(10); for (size_t i=0; i<11; i++) vec[i] = 1.0; std::valarray<double> vec2(vec); return 0; }[/code] So, in a situation similar to this one, I am segfauting, but not in the loop, rather in the constructor call after the loop. … |
The End.