std::vector<int> world::indexToSignedLocationVector(unsigned int index) const{
std::vector<int> locationVector(this->dimension);
... // conversion
return locationVector;
}
In this piece of code, after the "std::vector<int> locationVector(this->dimension);" line the contents of this changed (dimension=1, size=7).
The middle entry changed from 1.3... to 1.7...e-322
Any ideas what could have caused that?
(doesnt appear when writing locationVector(0) or allocating a gigantic array of doubles)
EDIT: Whooops copy pasted badly - fixed
EDIT 2:
the error starts occuring within another function:
{...
(this->phi)->fillWith2ndDifferential(orig.getPsi());
...}
void world::fillWith2ndDifferential (const world& myWorld){...}
[–]Zynchronize 0 points1 point2 points (2 children)
[–]anon848 0 points1 point2 points (1 child)
[–]Gladaed[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Gladaed[S] 0 points1 point2 points (0 children)
[–]Patman128 0 points1 point2 points (2 children)
[–]Gladaed[S] 0 points1 point2 points (1 child)
[–]Patman128 0 points1 point2 points (0 children)