Add precision property to DeckOutput class - default = 10

This commit is contained in:
Joakim Hove
2018-08-07 08:52:12 +02:00
parent f6cc04a4ab
commit bb2e5e0370
3 changed files with 19 additions and 4 deletions

View File

@@ -28,7 +28,8 @@ namespace Opm {
class DeckOutput {
public:
explicit DeckOutput(std::ostream& s);
explicit DeckOutput(std::ostream& s, int precision = 10);
~DeckOutput();
void stash_default( );
void start_record( );
@@ -51,9 +52,11 @@ namespace Opm {
size_t default_count;
size_t row_count;
bool record_on;
int org_precision;
template <typename T> void write_value(const T& value);
void write_sep( );
void set_precision(int precision);
};
}