Arne Morten Kvarving
5b56ed5da7
changed: opm/[core -> common]/utility/parameters
2018-01-30 12:53:00 +01:00
Arne Morten Kvarving
dd4559b961
changed: opm/[core/linalg -> common/utility/numeric]/blas_lapack.h
2018-01-30 12:53:00 +01:00
Arne Morten Kvarving
0e1553409d
changed: opm/common/[->utility]/ResetLocale.hpp
2018-01-30 12:53:00 +01:00
Arne Morten Kvarving
1bda4a812b
changed: opm/common/[->utility/]ConditionalStorage.hpp
2018-01-30 12:52:59 +01:00
Arne Morten Kvarving
5ad6502f12
changed: opm/common/[util->utility]/numeric/cmp.hpp
2018-01-30 12:52:59 +01:00
hnil
3726641d08
corrected DEBUG log output
2017-12-22 09:21:29 +01:00
Andreas Lauser
0b097b60f4
add a simple helper class that allows to store data members conditionally
...
the class takes a boolean parameter as its first template parameter
and a type name as the second. if the boolean parameter is false,
nothing is stored, else an object of the type of the second template
parameter gets created. this mechanism allows to disable member
attributes based on compile time conditions.
The usage semantics of that class are that of a smart pointer class, i.e.,
the equivalent of
```
Foo foo;
foo.bar()
```
is
```
Opm::ConditionalStorage<true, Foo> foo;
foo->bar();
```
If the condition argument for the ConditionalStorage is false, that
code will still compile but an exception is thrown at runtime.
2017-11-30 11:36:57 +01:00
Rohith Nair
579a648ebc
edit
2017-06-27 10:32:05 +02:00
Rohith Nair
08b659fe11
Revert to formatting prefix message
2017-06-27 10:27:32 +02:00
Rohith Nair
531fb27ba1
edit
2017-06-26 11:54:53 +02:00
Rohith Nair
0024fd9052
Add line space before problems, messages and warnings
2017-06-26 10:57:38 +02:00
Arne Morten Kvarving
b9dde75a4d
remove extra class qualification
...
may cause portability issues
2017-06-08 16:33:25 +02:00
Arne Morten Kvarving
19ca0e291b
initialize members
2017-06-08 16:30:53 +02:00
Arne Morten Kvarving
2c00b418b5
pass by reference
2017-06-08 16:30:46 +02:00
Arne Morten Kvarving
b7302a5ace
mark single-parameter constructors as explicit
2017-06-08 16:30:09 +02:00
Rohith Nair
d361bd8766
Adds exception TooManyIterations
...
Adds 2 new message types to OpmLog
Revert "Adds 2 new message types to OpmLog"
This reverts commit 587cde3c6c78077cd6e5ae008038f72b2b39982d.
2017-06-07 09:58:20 +02:00
Arne Morten Kvarving
f147dd9589
remove namespace qualifier
...
code is already in the namespace, some compilers consider this an error.
2017-06-02 16:02:24 +02:00
Robert Kloefkorn
d38658858d
added two gcc 6.3 related warnings.
2017-04-10 13:44:54 +02:00
Rohith Nair
be3f1ed59b
edited formatting
2017-04-04 10:01:13 +02:00
Rohith Nair
2313ab4029
Changed terminal output color for problem messages to magenta from red
2017-04-04 09:55:46 +02:00
Atgeirr Flø Rasmussen
f9311b96f3
Merge pull request #231 from atgeirr/refine-simple-logging
...
Make setupSimpleDefaultLogging() more flexible.
2017-03-20 08:08:04 +01:00
Atgeirr Flø Rasmussen
26974f28ef
Make implementation of stdoutIsTerminal() more robust.
2017-03-17 15:40:02 +01:00
Atgeirr Flø Rasmussen
e0105c6ccf
Merge pull request #205 from GitPaean/adding_Wcast_qual_warning_flag
...
adding -Wcast-qual to disable_warnings.h
2017-03-17 15:35:49 +01:00
Atgeirr Flø Rasmussen
7462cc4b96
Only use color coding for simple log setup if terminal.
...
Note that isatty() might need to be replaced by isatty_() for Windows.
2017-03-17 08:46:50 +01:00
Atgeirr Flø Rasmussen
726496c0b6
Make setupSimpleDefaultLogging() more flexible.
...
Also added documentation for the function.
2017-03-16 12:56:34 +01:00
Andreas Lauser
52c05e6525
move the infrastructure for valgrind client requests into the Opm namespace
2017-02-09 18:26:31 +01:00
Andreas Lauser
3d096a54ec
move over the code for valgrind client requests from opm-material
2016-12-14 16:47:41 +01:00
Andreas Lauser
f17880579c
Provide a free function to reset the localization settings
...
Under some circumstances, some environments seem to set a locale which
they do not install. In turn this leads to std::runtime_errror being
thrown by some parts of Boost (for some versions) which causes
unsolicited program aborts.
This issue asside, it looks pretty weird if the e.g. the number format
is different than the that of the language used to print stuff by rest
of the simulation.
2016-12-07 14:04:32 +01:00
Andreas Lauser
5100db5694
move the Unused.hpp file from opm-material to here
2016-11-22 15:53:36 +01:00
Kai Bao
2724aae005
adding -Wcast-qual to disable_warnings.h
2016-11-14 18:05:41 +01:00
Liu Ming
cc0dc95de6
correct error summary category.
2016-10-20 20:58:04 +08:00
Atgeirr Flø Rasmussen
0283536ac4
Finish revision of logging.
2016-10-19 15:08:46 +02:00
Atgeirr Flø Rasmussen
35514c0aa0
Improve MessageLimiter class.
2016-10-19 13:11:13 +02:00
Atgeirr Flø Rasmussen
68311cf5b3
Merge branch 'messages-limits' of https://github.com/qilicun/opm-common into qilicun-messages-limits
2016-10-19 10:58:26 +02:00
Liu Ming
9020c7cb36
Support category limits setting.
2016-10-18 19:26:06 +08:00
Atgeirr Flø Rasmussen
3b22b584f3
Add OPM_THROW_NOLOG macro.
2016-10-17 13:02:50 +02:00
Atgeirr Flø Rasmussen
dd52371189
Merge pull request #175 from blattms/allow-quiet-EclipsePRTLog
...
Allow disabling output in EclipsePRTLog.
2016-09-26 09:18:15 +02:00
Markus Blatt
c0056ac4c8
Always initialize EclipsePRTLog::print_summary_
2016-09-16 11:28:20 +02:00
Markus Blatt
644914ce5d
Increase readability.
2016-09-16 09:57:20 +02:00
Markus Blatt
8eb2cead4d
Document new stuff.
2016-09-16 09:50:19 +02:00
Markus Blatt
7da4e4a919
Resort to inherit StreamLog constructors in EclipsePRTLog.
...
That way we will never miss a constructor. Before this commit
some of them were actually missing.
2016-09-16 09:46:55 +02:00
Markus Blatt
64c0651ffa
Allow disabling output in EclipsePRTLog.
...
In a parallel run we need to be able to disable output in EclipsePRTLog
as only one process is allowed to output messages. This commit adds a
new defaulted constructor parameter to allow this.
2016-09-15 21:22:21 +02:00
Atgeirr Flø Rasmussen
81a9f0521f
Use map instead of unordered_map.
...
This is because downstream code can benefit from the ordering guarantee.
2016-09-07 13:37:09 +02:00
Liu Ming
8de9921890
file name and line number are in a new line.
2016-06-15 11:20:34 +08:00
Liu Ming
f9510e31a0
use the 'msg + file name + line number' format.
2016-06-13 13:46:51 +08:00
Atgeirr Flø Rasmussen
2102160bd1
Merge pull request #137 from qilicun/set-default-prefix
...
Make Error, Problem, Error, Warning with prefix by default.
2016-06-10 08:43:46 +02:00
Joakim Hove
405a6c31c5
Log: StreamLog can optionally open in append mode.
2016-06-09 18:52:40 +02:00
Liu Ming
213d4932a6
remove unused member data and fix initializing order.
2016-06-09 09:05:23 +02:00
Liu Ming
af9b0977f6
add two new constructors.
2016-06-08 15:30:52 +02:00
Liu Ming
752c8f3197
make Error, Warning, Bug, Problem with prefix by default.
2016-06-08 13:37:34 +02:00