Arne Morten Kvarving
b529080fb7
TimerLog: avoid sstream in header
2022-12-21 11:26:33 +01:00
Arne Morten Kvarving
913f71557d
fixed: zero initialize to avoid compiler warnings
2022-12-02 09:34:54 +01:00
Arne Morten Kvarving
fb0f3c451e
changed: rename serializeObject to serializationTestObject
...
makes it more clear what these members are used for.
2022-10-04 14:10:30 +02:00
Kjetil Olsen Lye
c664a0dfd2
Remove use of reserved identifier in OPM_THROW.
2022-09-26 11:51:37 +02:00
Arne Morten Kvarving
d731cd3775
import serializer code from opm-simulators
...
add tests using a simple memcpy based packer
2022-09-16 15:34:58 +02:00
Arne Morten Kvarving
6576370c19
changed: only use operator() for the serializer
2022-09-14 10:33:56 +02:00
Arne Morten Kvarving
ada6853a61
changed: remove unused Serialization class
2022-09-07 10:31:47 +02:00
Atgeirr Flø Rasmussen
49262ae96d
Add and use portable_timegm().
...
This function converts a std::tm to a std::time_t, assuming UTC
and not local timezone. This is used instead of relying on
repeated calls to mktime(), which can fail on some system (BSD)
for dates before 1900.
2022-08-18 09:21:52 +02:00
Arne Morten Kvarving
068bff1ebc
clean up stream includes
2022-07-27 16:05:01 +02:00
Bård Skaflestad
a79ee15082
Decouple Opm::Box From EclipseGrid
...
This commit switches to constructing Box instances from a GridDims
and two call-back functions instead of taking an EclipseGrid
directly. The two call-back functions are a predicate for active
cells and a translation from Cartesian to active cell indices
respectively.
This is intended to simplify working with nested boxes, such as
those that occur for local grid refinement.
2022-07-05 14:27:49 +02:00
Bård Skaflestad
5377ff3442
Streamline GridDims::getIJK()
...
This commit switches the Cartesian -> IJK decomposition in GridDims
from K->J->I into the I->J->K order. The latter is simpler.
While here, also consistently use 'std::size_t' instead of 'size_t'.
2022-07-04 15:06:07 +02:00
Joakim Hove
c50eb01bb0
Implement fnmatch() in Opm::shmatch() with std::regex
2022-01-11 11:14:11 +01:00
Joakim Hove
aede532b9a
Filesystem rename parser/eclipse/ input/eclipse
2022-01-02 14:32:14 +01:00
Bård Skaflestad
64e8ec3cfd
Remove 'Execute' Permission From Source Files
...
These files just need to have read/write permissions on Linux/Unix.
2021-12-08 15:09:23 +01:00
Arne Morten Kvarving
6465cfe1ea
changed: drop gcc7 compatibility
...
this means getting rid of the Opm::filesystem namespace
and directly using std::filesystem, as well as dropping
some of the compat code for the tr filesystem.
we still need the FileSystem.hpp/cpp files though as unique_path
is not part of std::filesystem.
2021-11-01 12:36:42 +01:00
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