add more flushs for output

this should make output less confusing if the stream caches some data...
This commit is contained in:
Andreas Lauser 2014-03-06 19:32:04 +01:00
parent 3479b659aa
commit a9ad8f1cba
5 changed files with 6 additions and 6 deletions

View File

@ -357,7 +357,7 @@ public:
// Write mass balance information for rank 0
if (this->gridView().comm().rank() == 0) {
std::cout << "Storage: liquid=[" << storageL << "]"
<< " gas=[" << storageG << "]\n";
<< " gas=[" << storageG << "]\n" << std::flush;
}
}

View File

@ -292,7 +292,7 @@ public:
// Process with rank 0 informs about the total masses of all
// components inside the domain
if (this->gridView().comm().rank() == 0) {
std::cout << "Mass in domain: " << storage << std::endl;
std::cout << "Mass in domain: " << storage << std::endl << std::flush;
}
}

View File

@ -377,7 +377,7 @@ public:
// Write mass balance information for rank 0
if (this->gridView().comm().rank() == 0) {
std::cout << "Storage: " << storage << std::endl;
std::cout << "Storage: " << storage << std::endl << std::flush;
}
}

View File

@ -250,7 +250,7 @@ public:
if (this->gridView().comm().rank() == 0) {
std::cout << "Storage in " << FluidSystem::phaseName(phaseIdx)
<< "Phase: [" << phaseStorage << "]"
<< "\n";
<< "\n" << std::flush;
}
}
@ -261,7 +261,7 @@ public:
// Write mass balance information for rank 0
if (this->gridView().comm().rank() == 0) {
std::cout << "Storage total: [" << storage << "]"
<< "\n";
<< "\n" << std::flush;
}
}

View File

@ -245,7 +245,7 @@ public:
// Write mass balance information for rank 0
if (this->gridView().comm().rank() == 0) {
std::cout << "Storage: " << storage << std::endl;
std::cout << "Storage: " << storage << std::endl << std::flush;
}
}
//! \}