Commit a299a45f authored by snuverink_j's avatar snuverink_j

reset output stream, fixes segfault in PeriodicBC when running multiple tests...

reset output stream, fixes segfault in PeriodicBC when running multiple tests after each other (fix #570)
parent 10354343
...@@ -62,7 +62,7 @@ TEST(Field, PeriodicBC) ...@@ -62,7 +62,7 @@ TEST(Field, PeriodicBC)
int i,j,k; int i,j,k;
for (j=0; j<3; j++) { for (j=0; j<3; j++) {
for (i=0; i<3; i++) { for (i=0; i<3; i++) {
for(k=0; k<3; k++) { for (k=0; k<3; k++) {
if (i==1 && j==1 && k==1) if (i==1 && j==1 && k==1)
assign(cA[i][j][k], 1.0); assign(cA[i][j][k], 1.0);
else else
...@@ -71,7 +71,11 @@ TEST(Field, PeriodicBC) ...@@ -71,7 +71,11 @@ TEST(Field, PeriodicBC)
} }
} }
// Print reference values, then assign values ofsetting across boundaries // Print reference values, then assign values ofsetting across boundaries
// and print results, Cell-centered case: // and print results.
// For printing we need to reset the output stream (needed when running multiple tests)
setInform(*IpplInfo::Info);
// Cell-centered case:
std::cout << "++++++++++cA+++++++++++" << std::endl ; std::cout << "++++++++++cA+++++++++++" << std::endl ;
fp3(cA); fp3(cA);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment