Commit Graph

3055 Commits

Author SHA1 Message Date
Joakim Hove
e802737ec4 Changed from boost datetim to std::time_t. 2017-06-19 10:54:33 +02:00
Joakim Hove
f299984280 Changed TimeMap::operator[] to return std::time_t 2017-06-19 10:54:33 +02:00
Joakim Hove
b6afb2ab8c Removed date accessor from IOconfig/RestartConfig. 2017-06-18 16:55:22 +02:00
Joakim Hove
554e7217db Create boost targets names dynamically
On some systems, in particular Windows or custom boosts, plenty
information about configuration is embedded into the library name.
However, opm-parser's boost names were hard coded to the vanilla library
names, which leads to libraries not being found.

Generate the target names dynamically (and address them as variables) so
that the target names match the name of the library actually being
linked to - a name which is also then later exported to the
opm-parser-config.cmake file.
2017-06-14 15:34:24 +02:00
Atgeirr Flø Rasmussen
3502105357 Merge pull request #1083 from akva2/adjust_spe5
adjust for changed opm-data path
2017-06-12 14:35:36 +02:00
Andreas Lauser
178be3e8a6 add SSOL to the double grid properties
the keyword is already present, but as far as I can see it was not yet
treated as a grid property.
2017-06-12 11:02:28 +02:00
Andreas Lauser
938bac204c add support for the the SPOLY keyword
i.e. this allows to specify the initial polymer concentration within
the reservoir.
2017-06-12 11:02:28 +02:00
Arne Morten Kvarving
fba9072c17 adjust for changed opm-data path 2017-06-12 10:29:01 +02:00
Joakim Hove
11632729d3 Merge pull request #1082 from joakim-hove/travis-environment
Set env variable when running travis.
2017-06-11 23:33:01 +02:00
Joakim Hove
1548305837 Set env variable when running travis. 2017-06-11 22:29:44 +02:00
Arne Morten Kvarving
b353126acf pass by reference 2017-06-09 17:38:42 +02:00
Arne Morten Kvarving
d459db661f quell signed/unsigned mismatch comparison warnings 2017-06-09 17:38:42 +02:00
Arne Morten Kvarving
aa21cd8b13 quell cppcheck warnings for non-explicit constructor
- the implicit casts from std::string/char* is part of the design for
the view class so we do not want to disable those.
- intializer list constructors should be implicitly called
2017-06-09 17:38:42 +02:00
Arne Morten Kvarving
1eae9ed8c7 explicitly add default constructor to quell warnings 2017-06-09 17:38:42 +02:00
Arne Morten Kvarving
18f15e7432 mark constructors as explicit 2017-06-09 17:38:42 +02:00
Arne Morten Kvarving
7805a533f8 initialize members 2017-06-09 17:38:42 +02:00
Arne Morten Kvarving
2faaab198e prefer initializer list 2017-06-09 17:38:42 +02:00
Arne Morten Kvarving
51208ac4f5 add static analysis support 2017-06-09 15:46:21 +02:00
Joakim Hove
159eb7b562 Using std::to_string insteadof boost::lexical_cast. 2017-06-08 08:27:24 +02:00
Joakim Hove
494cb74124 Limited support for cylindrical grids.
For cylindrical grids based on the keyword set DRV, DTHETAV, DZV and
TOPS the EclipseGrid implementation will create a cornerpoint
representation of the grid.
2017-06-08 08:26:43 +02:00
Joakim Hove
fbb2ce73cd Added circle property to EclipseGrid 2017-06-08 07:01:25 +02:00
Joakim Hove
d4a4401b59 New keywords required to support cylindrical grids 2017-06-08 07:01:24 +02:00
Markus Blatt
cfbcd27ced Merge pull request #1078 from joakim-hove/DEBUG-debug
Changed debug -> DEBUG to avoid #define conflict
2017-06-06 21:33:27 +02:00
Joakim Hove
eefbdd2efb Changed debug -> DEBUG to avoid #define conflict 2017-06-06 20:32:56 +02:00
jokva
6af2cad882 Merge pull request #1071 from jokva/include-filesystem-path
Include filesystem path, boost_test depends on system
2017-06-02 18:38:12 +02:00
Arne Morten Kvarving
dd5aac18eb update path due to opm-data restructuring 2017-06-02 14:33:30 +02:00
Jørgen Kvalsvik
f9639a330b Include header for boost/filesystem/path 2017-06-02 14:04:20 +02:00
Jørgen Kvalsvik
c138e817bb Include boost/filesystem/path.hpp in JsonObject 2017-06-01 15:29:23 +02:00
Jørgen Kvalsvik
4adda14564 Generate keywords source and test files separately
Simplify the generator logic a bit by only creating one
ParserKeywords.cpp file, and create either source code for the library
or for the test. This is faster to compile serially, but is not possible
to compile in parallel. Still, it's a fair simplification, and clarifes
the makefile quite a bit, and makes dependencies and generation clearer.
2017-06-01 15:29:23 +02:00
Jørgen Kvalsvik
477fa5a988 Combine test files, reduce number of targets
In an effort to reduce the numbers of targets built, and consequently
the repeated work and overhead of compiling boost test, a series of
test programs are combined to larger modules.

Every target typically has a constant cost of 3-6s, depending on the
computer, just for the make to set up dependencies and for the compiler
to parse and compile the testing framework and other dependencies. Each
set of tests typically add very little, so significant savings are
achieved by merging targets.

When tested on a 2015 i5m laptop, this reduced serial, single-core
compile time from ~14m45s to ~11m15s.
2017-06-01 15:29:23 +02:00
Jørgen Kvalsvik
e884b0664c Redesign cmake
Tune the makefile according to new principles, which adds a few bells
and whistles and for clarity.

Synopsis:

* The dependency on opm-common is completely gone. This is reflected in
  travis and appveyor as well. No non-kitware cmake modules are used.
* Directories are flattened, quite a bit - source code is located in the
  lib/ directory if it belongs to opm-parser, and external/ if third
  party.
* The sibling build feature is implemented through cmake's
  export(PACKAGE) rather than implicitly looking through source files.
* Targets explicitly set required public and private include
  directories, compile options and definitions, which cmake will handle
  and propagate
* opm-parser-config.cmake for downstream users is now provided.
* Dependencies are set up using targets. In the future, when cmake 3.x+
  can be used, these should be either targets from newer Find modules,
  or interface libraries.
* Fewer system specific assumptions are coded in, instead we assume
  cmake or users set up system specific details.
* All module wide configuration and looking up libraries is handled in
  the root makefile - all sub directories only set up libraries and
  compile options for the module in question.
* Targets are defined and links handled transitively because cmake now
  is told about them. ${module_LIBRARIES} variables are gone.

This is largely guided by the principles outlined in
https://rix0r.nl/blog/2015/08/13/cmake-guide/

Most source files are just moved - if they have some content change then
it's nothing more than include fixes or similar in order to make them
compile.
2017-06-01 15:29:23 +02:00
Joakim Hove
430b216027 Merge pull request #1069 from jijordre/field_oil_efficiency
Add unit test for field oil efficiency (aka FOE)
2017-06-01 12:06:27 +02:00
Jens Ivar Jørdre
699f84f009 Add unit test for field oil efficiency (aka FOE) 2017-05-31 11:33:21 +02:00
Joakim Hove
5565bead86 Fixed mismerge. 2017-05-31 11:14:07 +02:00
Joakim Hove
59838f41c2 Changed library link from eclxx to ecl. 2017-05-31 11:13:15 +02:00
Joakim Hove
3d66efa262 Handle meta keyword PERFORMA.
When adding a ECL_SMSPEC_MISC_TYPE we protect against adding metakeyword
like 'PERFORMA' and 'ALL'.
2017-05-31 09:44:03 +02:00
Joakim Hove
4ce5681a21 SummaryConfig will internalize MISC keywords. 2017-05-31 09:44:02 +02:00
Joakim Hove
79ee673465 Merge pull request #1066 from joakim-hove/summary-rpr
Summary rpr
2017-05-31 09:10:09 +02:00
Joakim Hove
b9823a4c2e Changed region expansion in Rxxx SUMAMRY keywords.
If the region keywords from the SUMMARY section, like e.g. RPR, are
specified without explicit region numbers a summary key is added for all
region values from 1..NTFIP, irrespective of which region values are
actually present.
2017-05-25 23:39:45 +02:00
Joakim Hove
66efc1fd1f Small function which returns number of FIP regions 2017-05-24 21:05:42 +02:00
Markus Blatt
9cdb08b7ee Fixes shadowing member warning
```
opm-parser/opm/parser/eclipse/EclipseState/EndpointScaling.cpp: In constructor ‘Opm::EndpointScaling::EndpointScaling(const Opm::Deck&)’:

/opm-parser/opm/parser/eclipse/EclipseState/EndpointScaling.cpp:102:14: warning: declaration of ‘reversible’ shadows a member of 'this' [-Wshadow]

         bool reversible = true;
```
2017-05-24 11:22:01 +02:00
Jørgen Kvalsvik
6294a5e03d Consume libecl as cmake targets
The upstream libecl exposes targets, not _LIBRARIES variables, and a
-config.cmake rather than a Find module.
2017-05-16 14:34:59 +02:00
Jørgen Kvalsvik
80c0bacaaa Appveyor; clone libecl, not ensembles/ert 2017-05-16 13:24:38 +02:00
Joakim Hove
540a64330c fixup! Added Polymer EVENT. 2017-04-05 16:39:53 +02:00
Joakim Hove
2a591a1661 Added Polymer EVENT. 2017-04-05 16:05:25 +02:00
Joakim Hove
4ec72ba32b Added Well::firstTimeStep( ) 2017-04-05 16:05:12 +02:00
Joakim Hove
67dd83264b Added events to wells. 2017-04-05 14:46:00 +02:00
Joakim Hove
39859c8d88 Skip random text when unknown keyword. 2017-03-29 18:25:23 +02:00
Joakim Hove
aa5a0b1ed9 Merge pull request #1055 from joakim-hove/disable-opm-common-build
Do not build opm-common on Windows.
2017-03-29 18:25:07 +02:00
Joakim Hove
08602e3d7d Do not build opm-common on Windows. 2017-03-29 17:16:08 +02:00