Commit Graph

261 Commits

Author SHA1 Message Date
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
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
Atgeirr Flø Rasmussen
80b73cd862 Merge pull request #110 from akva2/update_for_16.04_packaging
Updates for 16.04 packaging
2016-04-18 10:57:11 +02:00
Arne Morten Kvarving
510687f073 update redhat packaging
- package library
- add new dependencies on boost
  uses boost 1.48 on rhel6. rhel7 supplies a newer boost by default.
- pkg-config file relocated since a library is now provided.
2016-04-18 10:49:55 +02:00
Arne Morten Kvarving
06816f344a update debian packaging
- package library
- pkg-config file relocated since a library is now provided.
- add new boost dependencies
2016-04-18 10:49:37 +02:00
Arne Morten Kvarving
e4da825eb3 changed: run all tests through mpirun
ubuntu 14.04 openmpi libs will crash in MPI_Finalize()
if not run through mpirun
2016-04-15 15:01:36 +02:00
Arne Morten Kvarving
323a8b4e86 added: support trilinos-branded zoltan 2016-04-15 15:01:36 +02:00
Atgeirr Flø Rasmussen
330bda4688 Merge pull request #106 from atgeirr/log-throws
Make OPM_THROW call OpmLog::error().
2016-04-12 10:15:33 +02:00
Atgeirr Flø Rasmussen
77779e5553 Merge pull request #109 from andlaus/refine_quadmath_detection
refine FindQuadmath.cmake
2016-04-12 10:02:06 +02:00
Andreas Lauser
8ccd328b87 refine FindQuadmath.cmake
with this, it is now possible to disable quadruple precision math
detection without hacks. (by setting USE_QUADMATH to ON or OFF)
2016-04-11 23:25:31 +02:00
Joakim Hove
4abdd148e3 Merge pull request #108 from akva2/add_opm_data_handler_script
add a jenkins script for setting up opm-data
2016-04-11 14:37:38 +02:00
Arne Morten Kvarving
ca95ed62da add a jenkins script for setting up opm-data
there are two modes:
- user supplies OPM_DATA_ROOT directly. in this case, the supplied
  directory is copied into the workspace and used.
- user supplies OPM_DATA_ROOT_PREDEFINED. in this case, the
  supplied path copied into the workspace unless a specific
  PR is defined in the trigger comment.
2016-04-11 14:16:15 +02:00
Joakim Hove
42a9be4ce0 Merge pull request #107 from atgeirr/rename-autodiff
Rename opm-autodiff -> opm-simulators.
2016-04-10 22:15:22 +02:00
Atgeirr Flø Rasmussen
9b5d81e358 Rename opm-autodiff -> opm-simulators. 2016-04-08 14:05:26 +02:00
Atgeirr Flø Rasmussen
3e125643f5 Make OPM_THROW call OpmLog::error(). 2016-04-08 12:52:50 +02:00
Atgeirr Flø Rasmussen
3c295815ad Merge pull request #104 from atgeirr/module-renaming
Module renaming
2016-04-06 15:37:39 +02:00
Atgeirr Flø Rasmussen
d789962a93 Rename in comment. 2016-04-06 11:58:36 +02:00
Arne Morten Kvarving
b08fbb0022 fixed: use shallow clones on jenkins 2016-04-06 10:06:27 +02:00
Arne Morten Kvarving
4ca84813ae changed: build all targets and not just the things that are actually tested 2016-04-05 15:31:28 +02:00
Atgeirr Flø Rasmussen
c2b36fa760 Fix Findopm-grid.cmake module. 2016-04-05 14:54:08 +02:00
Arne Morten Kvarving
62ed653905 fixed: don't build test suite for upstream modules on jenkins
i somehow forgot to set this option. accelerates build process significantly.
2016-04-05 11:27:28 +02:00
Atgeirr Flø Rasmussen
0eae093620 Rename dune-cornerpoint -> opm-grid. 2016-04-04 21:17:57 +02:00
Arne Morten Kvarving
4e537c376f fixed: have the test-suite target depend on the test data file targets 2016-04-04 15:28:57 +02:00