Edvin Brudevoll (ITV DIS RD)
8ac548d564
OPM-87, added code for handling keyword WELTARG.
2015-03-25 08:20:22 +01:00
Joakim Hove
7afa65a230
Fixed bug with iterator modification
2015-03-09 12:38:16 +01:00
Joakim Hove
08a7132db8
Merge pull request #398 from joakim-hove/singleton-example
...
Singleton Logger
2015-03-09 08:08:12 +01:00
Atgeirr Flø Rasmussen
d33a05db70
Remove surplus const for return-by-value.
...
This triggers compiler warnings at high warning levels.
2015-03-06 08:52:39 +01:00
Joakim Hove
a5e6236580
Merge pull request #433 from joakim-hove/new-keywords
...
New keywords
2015-03-05 13:05:21 +01:00
chflo
439d0ee924
OPM-157: Added enum UnitType, using this when creating an UnitSystem instance
2015-03-05 12:40:59 +01:00
Joakim Hove
93d5d19fc1
Merge fixup
2015-03-04 22:32:42 +01:00
Joakim Hove
cb4e3571e3
Updated the default messagetypes - inspired by ECLIPSE
2015-03-04 22:14:33 +01:00
Joakim Hove
dc992bbc53
Added methods to remove a logger backend.
2015-03-04 22:14:32 +01:00
Joakim Hove
3562ac4344
Added TimerLog example
2015-03-04 22:14:32 +01:00
Joakim Hove
130879f01a
Changed OpmLog to be more careful to create logger.
2015-03-04 22:14:32 +01:00
Joakim Hove
9fb229ccd7
Replaced references to logger with OpmLog::addMessage()
2015-03-04 22:14:31 +01:00
Joakim Hove
f3419e8e61
Removed methods from CounterLog:
...
- Methods to get the number of Warning, Errors and Notes.
- Methods to get the file/line/description content of a message.
2015-03-04 22:12:53 +01:00
Joakim Hove
3a60605d99
Removed most of the functionality from CounterLog
2015-03-04 22:12:53 +01:00
Joakim Hove
33034b0319
Logger will throw if the messageType is not enabled.
2015-03-04 22:12:52 +01:00
Joakim Hove
ce5960bbcd
Added new CounterLog constructor
2015-03-04 22:12:52 +01:00
Joakim Hove
25bff6480d
Renamed MessageCounter -> CounterLog
2015-03-04 22:12:52 +01:00
Joakim Hove
aa604aad9e
Add ostream.flush() call in the StreamLog
2015-03-04 22:10:02 +01:00
Joakim Hove
44d4b92f68
Renamed AllMessageTypes -> DefaultMessageTypes
...
A newly created Logger instance should have all these message types
enabled.
2015-03-04 22:10:01 +01:00
Joakim Hove
46a98747f9
Added messageType methods to OpmLog
2015-03-04 22:10:00 +01:00
Joakim Hove
139330ec88
Added backend manipulation through OpmLog frontend.
2015-03-04 22:09:59 +01:00
Joakim Hove
5d3daabaef
Added Logger::getBackend<T>() method
2015-03-04 22:09:58 +01:00
Joakim Hove
e6c6209991
Added StreamLog backend.
2015-03-04 22:09:57 +01:00
Joakim Hove
2c2da004b9
WIP: Added simple backend map in Logger
2015-03-04 22:09:57 +01:00
Joakim Hove
f52b5397f7
Using LogUtil to format message.
2015-03-04 22:09:56 +01:00
Joakim Hove
245b91d0c2
Introduced LogUtil file + Logger class
...
- The new LogUtil.cpp / LogUtil.hpp files contain the enum definitions
for MessageType and formatting functions.
- The Logger class is meant to be the instance which is held by the
static OpmLog singleton class.
2015-03-04 22:09:55 +01:00
Joakim Hove
930d70744d
Added thin abstract class LogBackend
2015-03-04 22:09:55 +01:00
Joakim Hove
d3277543ec
Renamed existing Logger -> MessageCounter
2015-03-04 22:09:54 +01:00
Joakim Hove
738fb0c05c
Moved MessageType enum to OpmLog
2015-03-04 22:07:04 +01:00
Joakim Hove
e2a11f620c
Added simple static format functions to OpmLog
2015-03-04 22:07:03 +01:00
Joakim Hove
e18123b7f3
Merged Singleton Logger with existing logger.
2015-03-04 22:07:03 +01:00
Joakim Hove
2011abfcf8
Moved to SingleTonLog
2015-03-04 22:07:03 +01:00
Joakim Hove
2ac15ffae2
Rudimentary example of Log singleton.
...
This commit shows a very basic example of how Logging singleton can be
implemented. The commit consists of a fully static class OpmLog which
manages a Logger class; in this case an instance of the ParserLog
class. The static OpmLog class can then be used from anywhere in the opm
code with:
OpmLog::addMessage( messageType , "Log message")
Before this can be really useful the Logger class should be extended /
subclassed / ... for general usability.
2015-03-04 22:07:01 +01:00
Joakim Hove
c7d89454b7
Changed sizetype of SAVE to UNKNOWN
...
The SAVE keyword should support both having one slash terminated record,
and no records at all. To be able to handle both of these forms we have
used size_type UNKNOWN.
2015-03-04 21:37:21 +01:00
Joakim Hove
bcd99c2c0b
Added COMPSEGS keyword
2015-03-04 21:37:10 +01:00
Joakim Hove
e6d9499757
Added WELSEGS keyword
2015-03-04 19:42:01 +01:00
Joakim Hove
cbd7edc884
Added COMPORD keyword
2015-03-04 19:22:28 +01:00
Joakim Hove
61b7b1d414
Added SUMTHIN keyword
2015-03-04 19:10:20 +01:00
Joakim Hove
36a499624a
Added FILLEPS keyword
2015-03-04 19:00:40 +01:00
Joakim Hove
e5fec55bdb
Added STONE1 keyword
2015-03-04 18:58:29 +01:00
Joakim Hove
8d0e04ff22
Added SLGOF keyword
2015-03-04 18:56:14 +01:00
Joakim Hove
ac2749732b
Added GDORIENT keyword
2015-03-04 18:52:30 +01:00
Joakim Hove
eeacaf310e
Added RPTGRID keyword
2015-03-04 18:45:49 +01:00
Joakim Hove
89b7acc45e
Added WSGEDIMS keyword
2015-03-04 18:42:55 +01:00
Joakim Hove
f6f3bda46a
Added keyword EXTRAPMS
2015-03-04 18:36:35 +01:00
Joakim Hove
c55637019b
Merge pull request #432 from andlaus/move_DZV
...
move the DZV keyword to the E300 ones
2015-03-04 14:43:21 +01:00
Andreas Lauser
2ad9664d1a
move the DZV keyword to the E300 ones
...
in contrast to D[XY]V this is not supported by E100 for some reason...
2015-03-04 14:23:04 +01:00
chflo
f3b427121e
OPM-157: Added method getGlobalIndex to EclipseGrid, needed from opm-core EclipseWriter
2015-03-04 14:09:43 +01:00
Joakim Hove
f4f163e874
Using defaultRegion for MULTREGTSCANNER
2015-03-04 11:11:15 +01:00
Joakim Hove
e06d14309c
Using defaultRegion for xxxREG keywords
2015-03-04 11:11:14 +01:00