Commit Graph

332 Commits

Author SHA1 Message Date
Atgeirr Flø Rasmussen
1278e431ae Merge pull request #134 from qilicun/set-color
change yellow to blue.
2016-06-06 15:34:11 +02:00
Liu Ming
199324363b fix color test. 2016-06-06 15:29:09 +02:00
Liu Ming
908acdcb74 add yellow back and change warning color as blue. 2016-06-06 15:11:32 +02:00
Liu Ming
099099d87c change yellow to blue. 2016-06-06 14:56:29 +02:00
Atgeirr Flø Rasmussen
ef6dea7b8d Merge pull request #131 from qilicun/useful-types
Define one useful message type.
2016-06-06 12:28:28 +02:00
Liu Ming
9683fe2b95 Define one useful message type. 2016-06-06 11:52:57 +02:00
Magne Sjaastad
258476a196 VS2015 : Improvements to FIND functions for ERT and find_opm_package 2016-06-03 08:00:57 +02:00
Joakim Hove
82b638b429 Merge pull request #126 from jokva/ert-ecl-kw-bugfix
Fix typo in FindERT compile check
2016-05-27 13:35:31 +02:00
Jørgen Kvalsvik
53151baf66 Fix typo in FindERT compile check 2016-05-27 13:33:49 +02:00
Joakim Hove
da4923b5bb Merge pull request #125 from jokva/find-ert-new-eclkw
FindERT uses new EclKW interface.
2016-05-27 13:19:06 +02:00
Atgeirr Flø Rasmussen
c91cd7c8c1 Merge pull request #124 from atgeirr/simplify-colorization
No longer emit default Ansi color code for black.
2016-05-27 13:14:59 +02:00
Jørgen Kvalsvik
1acba75552 FindERT uses new EclKW interface. 2016-05-27 10:29:41 +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
Arne Morten Kvarving
5f9fc9bf5b Merge pull request #123 from magnesj/vs2015-compile-fixes
Added Visual Studio guards and fixed missing include
2016-05-25 11:07:49 +02:00
Magne Sjaastad
f77866bf68 Added Visual Studio guards and fixed missing include 2016-05-24 15:02:36 +02:00
Atgeirr Flø Rasmussen
2da7093a35 Merge pull request #113 from andlaus/remove_legacy_alugrid_support
remove support for the legacy ALUGrid library from dune-grid
2016-05-23 15:16:26 +02:00
Atgeirr Flø Rasmussen
e73db36f82 Merge pull request #122 from qilicun/setup-simple-log
Add default simple logging.
2016-05-23 09:41:12 +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
Liu Ming
77a3df1a61 pass value not reference. 2016-05-23 15:01:28 +08:00
Liu Ming
367a9f9a0c Add default simple logging. 2016-05-23 10:12:29 +08:00
Joakim Hove
36d959f1f5 Merge pull request #119 from atgeirr/message-limits
Message limits and tagged messages
2016-05-19 10:23:46 +02:00
Atgeirr Flø Rasmussen
c4c1fe2b30 Rename methods according to code review. 2016-05-18 22:22:10 +02:00
Atgeirr Flø Rasmussen
f1a1aa02fb Simplify Logger methods. 2016-05-18 22:21:56 +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
214e45e497 Use consistent member naming. 2016-05-18 09:27:53 +02:00
Andreas Lauser
5a5d5483e1 Merge pull request #117 from andlaus/add_opm-parser_dependency
ewoms-prereqs.cmake: make the optionaly depency on opm-parser explicit
2016-05-17 12:38:46 +02:00
Andreas Lauser
33225a533a ewoms-prereqs.cmake: make the optionaly depency on opm-parser explicit
this allows to remove the opm-parser dependency of opm-core without
breaking ewoms/ebos...
2016-05-17 12:32:31 +02:00
Joakim Hove
107e43a720 Merge pull request #115 from atgeirr/refine-logging
Refine logging output
2016-05-12 13:24:21 +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
Arne Morten Kvarving
ea86d58ea5 Merge pull request #114 from andlaus/misc_fixes
Misc fixes
2016-05-11 13:53:56 +02:00
Arne Morten Kvarving
0360423aa2 Merge pull request #116 from dr-robertk/PR/add-threads
Add pthread support.
2016-05-10 13:01:14 +02:00
Robert Kloefkorn
bead5d2e99 Added -pthread by default if threads are found. USE_PTHREAD is ON and can be turned OFF
to disable this feature.
2016-05-10 11:19:53 +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
56b6e45fc9 Add clearBackends() method to Logger and OpmLog singleton. 2016-05-09 11:33:35 +02:00
Atgeirr Flø Rasmussen
a896a4f792 Decorate from StreamLog, not OpmLog statics. 2016-05-09 11:32:42 +02:00
Atgeirr Flø Rasmussen
b40ea5dda7 Add configureDecoration() and decorateMessage() to LogBackend. 2016-05-09 11:30:13 +02:00
Atgeirr Flø Rasmussen
9a03758e9f Add Log::colorCodeMessage() helper. 2016-05-09 11:29:11 +02:00
Atgeirr Flø Rasmussen
de87c5a5b5 Make LogBackend pure virtual, also clean and document. 2016-05-09 10:42:28 +02:00
Andreas Lauser
c3cfe38f0c prevent cmake from warning about CMP0054
we set that policy to NEW because the old behavior is simply insane
for the sake of "convenience" (IMO).
2016-05-05 20:12:57 +02:00
Andreas Lauser
74ed9172bb FindSuperLU: make sure that the "SUPERLU_FOUND" variable is always set
I ran into problems (syntax errors in if statements) if that module
bailed out before find_package_handle_standard_args() was
invoked. Since OPM/ewoms#54 this happened e.g. on systems where no
BLAS library is installed.
2016-05-05 20:09:06 +02:00
Andreas Lauser
5d733a600c remove support for the legacy ALUGrid library from dune-grid
Considering the fact that this library has been on life support within
dune-grid since the alugrid development moved to the dune-alugrid
module -- which is available since at least dune 2.3 --, I doubt that
this was very useful and possibly it is even broken.
2016-05-04 13:53:39 +02:00
Joakim Hove
03e833db1b Merge pull request #111 from akva2/add_downstream_trigger_support
updates for jenkins build scripts
2016-05-03 14:53:14 +02:00
Atgeirr Flø Rasmussen
fdbc30f6d2 Merge pull request #112 from atgeirr/bump-version
dune.module: change version to 2016.10-pre
2016-05-03 14:34:30 +02:00
Atgeirr Flø Rasmussen
54443e5e28 dune.module: change version to 2016.10-pre 2016-05-03 14:31:32 +02:00
Arne Morten Kvarving
6e2388ff16 updates for jenkins build scripts
- add a generic function to build upstream modules
- add a generic function to build downstream modules
- add downstream trigger support in this module
2016-04-30 09:46:04 +02:00