Commit Graph
59 Commits
Author SHA1 Message Date
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
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 719af02142 Add custom exception OpmInputError 2020-09-22 13:48:26 +02:00
Atgeirr Flø Rasmussen 873ad61e23 Add missing <string> include. 2020-09-03 10:41:20 +02:00
Joakim Hove e99e2c5e82 Handle empty strings in serializer 2020-09-02 07:49:04 +02:00
Arne Morten Kvarving efedbffe63 let compiler deal with copy-ellusion 2020-09-01 15:28:12 +02:00
Joakim Hove 4b3304730c Serializer class: SummaryState & UDQState 2020-09-01 13:15:42 +02:00
Atgeirr Flø Rasmussen 937747323d Ensure clang uses the normal standard headers.
Clang defines __GNUC__ to 4, as that represents its level of
support for the GNU C dialect. The gcc compiler does not provide
a macro indicating the compiler separately from the dialect supported.
We must therefore use the __clang__ macro to avoid false positives.
2020-05-29 14:31:37 +02:00
hnil 47df32ef1a fixed the tolerance also in RegulaFalsiBisection 2020-05-15 08:55:38 +02:00
hnil ded8ef1a66 changed rootfinders to return also when absolute tolerance is less than prescribed, not only when function value is less than tolerance. 2020-05-10 22:32:01 +02:00
Bård Skaflestad afd0ed21ba Merge pull request #1682 from joakim-hove/timestamp-ymd
Add three argument (year, month, day) constructor TimeStampUTC
2020-04-07 12:07:02 +02:00
Joakim Hove 075d018cf3 Moved string utilities to opm/common 2020-04-04 17:10:13 +02:00
Joakim Hove ab2e5cc310 Add three argument (year, month, day) constructor TimeStampUTC 2020-04-04 16:20:13 +02:00
Joakim Hove 2df7183f1b Implement asLocalTimeT helper function 2020-04-02 15:31:13 +02:00
Arne Morten Kvarving 1a745ddaa0 add serialization template to TimeStampUTC 2020-03-19 09:26:03 +01:00
Arne Morten Kvarving a049cd5b03 fixed: wrong preprocessor check for gcc7 2020-02-14 09:42:31 +01:00
Arne Morten Kvarving 4f63172dc9 Merge pull request #1461 from akva2/use_std_filesystem
Replace boost::filesystem with std::filesystem
2020-02-13 15:01:02 +01:00
Arne Morten Kvarving fb75bcd4e2 changed: use std::filesystem instead of boost::filesystem
since we still support g++-7, where filesystem is marked experimental,
we introduce a wrapper header and expose the namespace to use
as Opm::filesystem.

for gcc we unconditionally link with libstdc++fs in the python bindings.
the setup.py stuff links as c code, not c++ code, so it is not
automatically added on any gcc version. this might prove unportable
later.
2020-02-13 12:34:19 +01:00
Atgeirr Flø Rasmussen 74129a2866 Silence a few warnings, remove some end-of-line whitespace. 2020-02-13 09:13:29 +01:00
Arne Morten Kvarving 6986436073 make TimeStampUTC constructible from variables
also add accessor
2020-01-17 10:08:50 +01:00
Arne Morten Kvarving 6378d55fa9 allow constructing TimeMap from tables
also add accessors and equality operators
2019-12-17 16:33:46 +01:00
Markus Blatt 36e1ef69ef Added utility for querying (only) active cells.
This will relieve us from building up a full EclipseGrid
just for filtering well connections.
2019-12-10 13:49:04 +01:00
Joakim Hove 200f3a55bd Add operator+ to TimeStampUTC 2019-12-02 22:30:00 +01:00
Atgeirr Flø Rasmussen 2951df2bfb Add combined regula falsi + bisection method, and test. 2019-11-05 10:33:02 +01:00
Bård Skaflestad eea51a12b4 Add Simple Time-Service Protocol
Mostly for converting between std::time_t and broken-down time
stamps.  Uses UTC and std::chrono::system_clock.  May wrap in as
little as 292 years, depending on the period of system_clock.

Intended to replace various timestamping utility functions from
libecl.  A comprehensive time-service protocol for Flow is much more
work than this, and will likely not be easily realized before we
have C++17 and its much expanded time/calendar library.
2019-10-16 20:03:08 -05:00
Torbjørn Skille 34410cbe41 ERT/libecl routines used in the EclipseGrid class has been replace by new member functions. Grid properties are
calculated and stored as private data members in EclipseGrid.

The API for the class is unchanged except for some minor changes for exportACTNUM, exportZCORN and exportCOORD.

These changes have triggered some very few modifications in the opm-grid and opm-simulators repo.
2019-09-20 14:21:23 +02:00
Torbjørn skille 25fd3fcc14 updated name of function, and fix space around assignments 2018-03-20 14:40:21 +01:00
Torbjrn Skille bee5699d79 Files renamed, forgot to add new files. Here they are 2018-03-19 19:56:16 +01:00
Torbjrn Skille 5374faa9b8 includes additional updates based on feedback from maintainer 2018-03-19 19:40:16 +01:00
Torbjrn Skille c8f99ee59e code updated based on feedback from maintainer. 2018-03-16 19:47:58 +01:00
Torbjrn Skille 9b1c421f0f Added routine for calculating cell volumes based on corner point input. 2018-03-16 12:52:53 +01:00
Arne Morten Kvarving 27c31b58ed changed: split headers and sources
keep headers in opm/ and move sources to src/opm/
2018-02-28 13:56:49 +01:00
Andreas Lauser 038841a2ef move some infrastructure to opm-material
These classes are only used by opm-material and its downstreams. The
reason for doing moving it there is that this allows more freedom in
reorganizing the lower-level OPM modules (i.e., opm-common,
opm-parser, opm-output) while still avoiding a hard dependency of the
thermodynamic and numerical framework modules on the ECL file parsing
libraries.
2018-02-07 15:40:52 +01:00
Atgeirr Flø Rasmussen 380490613e Silence unused argument warnings. 2018-02-01 09:57:28 +01:00