Commit Graph

187 Commits

Author SHA1 Message Date
Joakim Hove
97455adfa6 Add utility function to parse string -> double without exception 2021-09-23 10:23:25 +02:00
Joakim Hove
daaee6d2a4 Accept numerical month values when outputting ACTIONX state for rst 2021-09-20 19:05:06 +02:00
Joakim Hove
8d63e4f20d Moved time related functions from ScheduleDeck to TimeService 2021-09-19 11:06:52 +02:00
Joakim Hove
fb6aeb240f Merge pull request #2683 from blattms/spelling-fix
Fixed spelling of assignment,
2021-09-14 15:52:19 +02:00
Markus Blatt
9833afbc5f Fixed spelling of assignment,
Detected by linitian run on Debian package for opm-upscaling.
2021-09-14 12:27:36 +02:00
Joakim Hove
206fe1cf69 Utility function to create time_point from UTC timestamp 2021-09-08 13:58:45 +02:00
Joakim Hove
cc05d493c0 Add utility function to format double 2021-09-06 19:43:16 +02:00
Joakim Hove
02b7e9ae04 Add mapping int -> string for month names 2021-09-06 19:42:51 +02:00
Arne Morten Kvarving
2f3733b615 fix build with gcc7
the filesystem ts did not include proximate. implement
a poor man's version (copied from libstdc++, slightly modified)
and use this when necessary
2021-08-18 15:33:02 +02:00
Markus Blatt
b83919d1f3 Changed encoding of all installed headers to UTF-8
On Debian support for national encodings is being phased out.
Fixes lintian warnings about national-encoding.
2021-06-15 21:11:45 +02:00
Joakim Hove
e57febca9a Expose function stdoutIsTerminal() as static member in OpmLog 2021-05-28 10:12:30 +02:00
Arne Morten Kvarving
978150d78f fixed: do not use Opm:: prefix when inside namespace Opm
this is at best bad practice and can lead to confusing
errors because compiler will interpret it as Opm:: if there
is no 'foo' symbol available in the Opm namespace and give
confusing 'no symbol Opm::Opm::foo' error messages.
2021-05-05 09:43:07 +02:00
Arne Morten Kvarving
4fe78a0424 LogUtil: forward types to avoid includes 2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
95925e8648 fix header guards 2021-04-23 13:04:53 +02:00
Joakim Hove
524be4ca4f Add missing compile guard 2021-04-12 00:10:23 +02:00
Atgeirr Flø Rasmussen
6518e5d905 Add missing <string> include. 2021-03-15 12:57:57 +01:00
Joakim Hove
fc28ff36f1 Reduce TimeMap usage 2021-03-06 07:49:02 +01:00
Joakim Hove
5698883040 Part 1: Add typedef Opm::time_point and from_time_t() + to_time_t() 2021-03-03 15:13:34 +01:00
Joakim Hove
2c0b2281da namespace TimeService with functions advance and makeUTCTime 2021-03-03 15:09:29 +01:00
Alf Birger Rustad
f48c7b79a3 Fix typo 2021-02-24 22:22:48 +01:00
Alf Birger Rustad
e6fc1b522f Send message to DBG-file 2021-02-24 22:08:13 +01:00
Alf Birger Rustad
51d2a90386 Do not print debug message to LOG/PRT file 2021-02-15 10:37:02 +01:00
Peter Verveer
81c7b53449 Support cylindrical grids as a spiderweb with corrected volumes 2020-12-09 15:51:01 +01:00
Joakim Hove
8f65921753 Add put_vector() and get_vector() methods to Serializer 2020-11-21 09:33:33 +01:00
Joakim Hove
315d9d30e0 Rename put<K,T> and get<K,T> -> put_map() and get_map() 2020-11-20 15:47:52 +01:00
Joakim Hove
9c49468f46 Create small utility class InfoLogger 2020-10-16 11:27:33 +02:00
Joakim Hove
d9f260dd51 Add utility KeywordLocation::format() 2020-10-16 11:27:33 +02:00
Joakim Hove
9ea86a9bbc Remove unused function 2020-10-16 11:27:33 +02:00
Williham Williham Totland
d0c5fa042c Adjusts the defaultMessage format string. 2020-10-05 09:26:25 +02:00
Williham Williham Totland
7a8347f1ab Unifies interface of OpmInputError::OpmInputError() 2020-10-05 08:26:51 +02:00
Williham Williham Totland
3af6fac35d Adds a standard-format exception message to OpmInputError. 2020-10-05 07:28:07 +02:00
Williham Williham Totland
65f45b60a8 Extends OpmInputError to support multiple KeywordLocations. 2020-10-05 07:28:07 +02:00
Joakim Hove
c0336d5eb7 Remove leftover template<...> 2020-10-01 16:59:50 +02:00
Joakim Hove
8c351440e8 Mkae sure fmtlib is not a dependency in the public api 2020-09-30 18:17:57 +02:00
Joakim Hove
0512ab88b4 ParseContext will throw OpmInputError 2020-09-29 15:37:14 +02:00
Williham Williham Totland
f5a3ab2cee Removes (stated) support for named arguments in OpmInputError::format due to UTR test failure. 2020-09-28 16:04:35 +02:00
Williham Williham Totland
805300dd49 Adds some documentation to OpmInputError.hpp. 2020-09-28 13:16:45 +02:00
Williham Williham Totland
9a66acbb5d Extends OpmInputError to be initialisable from an existing exception. 2020-09-28 13:16:45 +02:00
Williham Williham Totland
742c90cabc Extends Opm::OpmInputError::OpmInputError() to accept additional format arguments. 2020-09-28 13:16:45 +02:00
Williham Williham Totland
7cb15bd64d Adds missing test_OpmInputError_format.cpp 2020-09-28 13:16:44 +02:00
Williham Williham Totland
2900da4489 Allow Opm::OpmInputError::format() to accept additional arguments.
This removes the need to call `fmt::format()` multiple times on a string, thus eliminating error-prone multi-level escapes when formatting strings.
2020-09-28 13:16:44 +02:00
Williham Williham Totland
05c3d997ac Catches and logs exceptions in Opm::Schedule::handleNormalKeyword() 2020-09-28 13:16:44 +02:00
Joakim Hove
c1ea966548 Add static function OpmInputError::format() 2020-09-27 22:14:53 +02:00
Joakim Hove
b9f95089b9 Merge pull request #1949 from joakim-hove/error-prepare
Error prepare
2020-09-24 07:33:22 +02:00
Joakim Hove
719af02142 Add custom exception OpmInputError 2020-09-22 13:48:26 +02:00
Joakim Hove
f604f94e89 Document format placeholders in KeywordLocation 2020-09-22 12:38:09 +02:00
Joakim Hove
79ae4c7935 Remove unused class SimulationDataContainer 2020-09-21 08:18:51 +02:00
Bård Skaflestad
60f6c26456 Merge pull request #1924 from joakim-hove/keyword-location
Keyword location
2020-09-16 23:35:09 +02:00
Joakim Hove
b61f87ddaa Add message function to KeywordLocation 2020-09-16 15:14:44 +02:00
Joakim Hove
d283f1858f Add keyword member to KeyworLocation 2020-09-16 14:24:06 +02:00