Commit Graph

60 Commits

Author SHA1 Message Date
Arne Morten Kvarving
03ab8fe400 changed: let the build system handle the dynamic boost test defines 2018-02-15 07:21:35 +01:00
Andreas Lauser
038841a2ef move some infrastructure to opm-material
These classes are only used by opm-material and its downstreams. The
reason for doing moving it there is that this allows more freedom in
reorganizing the lower-level OPM modules (i.e., opm-common,
opm-parser, opm-output) while still avoiding a hard dependency of the
thermodynamic and numerical framework modules on the ECL file parsing
libraries.
2018-02-07 15:40:52 +01:00
Atgeirr Flø Rasmussen
380490613e Silence unused argument warnings. 2018-02-01 09:57:28 +01:00
Arne Morten Kvarving
53e4217c27 changed: relocate the remaining files in opm/core/utility
move to opm/common/utility/numeric
2018-01-30 14:05:37 +01:00
Arne Morten Kvarving
5b56ed5da7 changed: opm/[core -> common]/utility/parameters 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
Arne Morten Kvarving
fdfda315d3 Import some more generic utilities from opm-core 2018-01-16 13:56:25 +01:00
Arne Morten Kvarving
95f7d62e9e Import some generic utility classes from opm-core 2018-01-11 16:55:53 +01:00
Andreas Lauser
43cf644c78 add a simple unit test for the ConditionalStorage class 2017-11-30 11:40:08 +01:00
Arne Morten Kvarving
8f637064c4 changed: remove embedded 'parameters' namespace in ParamGroup
inconsistent and unnecessary.

this is purely a cosmetic change, the only exception was a function with
the generic name 'split', which was renamed to splitParam to avoid confusion.
2017-11-17 13:10:06 +01:00
Arne Morten Kvarving
3a54a224cf changed: remove XML support for ParameterGroup 2017-11-17 13:10:06 +01:00
Atgeirr Flø Rasmussen
0cee419b89 Make test argc/argv data mimic POSIX correct data. 2017-11-17 13:10:06 +01:00
Atgeirr Flø Rasmussen
c4e9b06569 Update test to work correctly with new behaviour.
Also add a test to verify that we throw when we are supposed to.
2017-11-17 13:10:06 +01:00
Atgeirr Flø Rasmussen
2ed7955f81 Add test for ParameterGroup::unhandledArgument(). 2017-11-17 13:10:06 +01:00
Roland Kaufmann
8b4578b9d8 Restructure tests directory to unit tests
Every program that relies on manual inspection has been moved to a new
(hopefully short-lived) directory called not-unit/; every remaining
file has been given the prefix test_ to indicate that this is the
executable test to be run.
2017-11-17 13:10:06 +01:00
Rohith Nair
da654bde90 Modified tests 2017-07-31 15:39:31 +02: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
Liu Ming
9020c7cb36 Support category limits setting. 2016-10-18 19:26:06 +08:00
Liu Ming
8de9921890 file name and line number are in a new line. 2016-06-15 11:20:34 +08:00
Liu Ming
eb654771d9 fix test issue. 2016-06-13 14:28:27 +08:00
Liu Ming
af9b0977f6 add two new constructors. 2016-06-08 15:30:52 +02:00
Liu Ming
46b7b2a114 fix test issues with prefix. 2016-06-08 13:52:40 +02:00
Liu Ming
e89bef777a fix prefix testing. 2016-06-08 13:40:19 +02:00
Liu Ming
b4c9f82585 Let Note has its own prefix. 2016-06-08 10:55:38 +02:00
Liu Ming
aa51ea67bc change Prtinfo to Note. 2016-06-08 09:00:24 +02:00
Liu Ming
314a3ffec7 Add a new message type that allows messages only go into print file. 2016-06-07 14:08:33 +02:00
Liu Ming
199324363b fix color test. 2016-06-06 15:29:09 +02:00
Atgeirr Flø Rasmussen
c4eb8936a8 No longer emit default Ansi color code for black.
Using no code for black makes it easier to read output with color in editors etc.
2016-05-25 13:56:33 +02:00
Liu Ming
9aba3ac6b3 fix type error. 2016-05-23 15:04:41 +08:00
Liu Ming
a5afe90659 add simple test for OpmLog::setupSimpleDefaultLog. 2016-05-23 15:01:50 +08:00
Atgeirr Flø Rasmussen
c4c1fe2b30 Rename methods according to code review. 2016-05-18 22:22:10 +02:00
Atgeirr Flø Rasmussen
d2564ff838 Support tagged messages.
This changes the design of the LogBackend class and its subclasses,
now the main virtual method is addTaggedMessage(). The former virtual
method addMessage() is now a regular non-virtual method forwarding to
addTaggedMessage().

You can configure message limiting based on tags by passing a MessageLimiter
to the configureMessageLimiter() method, which will then be used by the
includeMessage() method. That method now takes an additional tag argument.

The most user-visible part of this is that there are new overloads of the
static methods OpmLog::warning(), OpmLog::error() etc, that take message
tags. To tie things together the OpmLog and Logger classes have also gotten
new addTaggedMessage() methods, but they should mostly be used through the
convenience methods such as OpmLog::warning().
2016-05-18 13:27:12 +02:00
Atgeirr Flø Rasmussen
9c84967734 Add MessageLimiter class and test. 2016-05-18 12:11:26 +02:00
Atgeirr Flø Rasmussen
6be41d2fcf Added MessageFormatter. 2016-05-12 10:54:19 +02:00
Atgeirr Flø Rasmussen
474bc50519 Change clearBackends() -> removeAllBackends(). 2016-05-12 10:29:48 +02:00
Atgeirr Flø Rasmussen
2c10045195 Use constants for terminal codes. 2016-05-12 10:28:44 +02:00
Atgeirr Flø Rasmussen
492d31f6cc Added tests for helper functions. 2016-05-09 15:11:34 +02:00
Atgeirr Flø Rasmussen
a6c379db05 Add test exercising coloring feature. 2016-05-09 11:34:08 +02:00
Atgeirr Flø Rasmussen
de87c5a5b5 Make LogBackend pure virtual, also clean and document. 2016-05-09 10:42:28 +02:00
chflo
73ad043006 Moved in logfunctionality from opm-parser 2016-03-17 15:23:18 +01:00
Joakim Hove
84a827e847 Added method to query for number of components. 2016-02-29 11:13:06 +01:00
Atgeirr Flø Rasmussen
af24ed82d3 Merge pull request #77 from joakim-hove/template-cmp
Implemented float comparison with templates
2016-02-19 11:41:00 +01:00
Joakim Hove
25746bb500 Added SimulationDataContainer::setCellDataComponent() 2016-02-19 08:31:13 +01:00
Joakim Hove
48f0513ca1 Implemented float comparison with templates 2016-02-17 21:59:08 +01:00
Joakim Hove
ee6836bd39 Added equal() method to SimulationDataContainer 2016-02-09 15:34:39 +01:00
Joakim Hove
d2ab19f318 Added util/numeric/cmp.cpp 2016-02-09 15:31:40 +01:00
Joakim Hove
c5acc7561d Added methods to register cell and face data. 2016-02-04 14:30:26 +01:00
Joakim Hove
e486194996 Renamed DataContainer -> SimulationDataContainer. 2016-02-04 12:54:23 +01:00