Commit Graph

209 Commits

Author SHA1 Message Date
Atgeirr Flø Rasmussen
8a1034a3cc Make runtest.sh also work on BSD/macOS.
In particular:
 - "wc -w" will have spaces in the output on BSD,
 - "python" defaults to python 3, so we must explicitly invoke python2.
2019-01-11 15:58:50 +01:00
Andreas Lauser
dc08a8b4dd use a custom parameter file parser
this allows the key names to be transformed, i.e.,

```
enable-vtk=true
```

is now also possible in parameter files whereas before only CamelCase
parameter names like

```
EnableVtk=true
```

were valid. besides this, any valid Windows INI file that does not use
parameter groups should be readable, i.e., semicolons are now also
treated as a comment indicator.
2018-08-10 18:13:04 +02:00
Andreas Lauser
aed7e15d2e fix extra compiler warnings
this is only relevant people who are masochistic enough to go beyond
`-Wall`. (note that at this warning level, there is plenty of noise from
Dune and other upstream dependencies.)
2018-07-02 09:17:56 +02:00
Atgeirr Flø Rasmussen
fbb885f303 Merge pull request #331 from andlaus/function_tasklets
tasklets: allow to dispatch raw functions
2018-06-28 20:47:08 +02:00
Tor Harald Sandve
0bfe876425 rename completion to connection 2018-06-28 15:49:45 +02:00
Andreas Lauser
6dde43dc0b tasklets: allow to dispatch raw functions 2018-06-21 14:56:10 +02:00
Andreas Lauser
acc93ff6e7 do explicit put properties into the the Ewoms::Properties namespace anymore
instead, do it implicitly by using the BEGIN_PROPERTIES and
END_PROPERTIES macros.
2018-06-15 20:22:07 +02:00
Joakim Hove
b9395e0291 Rename Completions -> Connections 2018-06-11 14:11:32 +02:00
Andreas Lauser
25e952fb49 tasklets test: guard against garbled output
Use a mutex to ensures that only a single prints at the same
time. this should prevent garbled terminal output and thus makes the
it much easier to read. on the flipside, some race conditions may go
unnoticed.
2018-04-23 13:24:59 +02:00
Andreas Lauser
5c9e20c00e tasklets: introduce the concept of "worker thread index"
if the current thread is not a worker thread, this returns -1.
2018-04-23 13:24:59 +02:00
Andreas Lauser
2cb0176754 add an example for tasklets
it is IMO not good as a unit test because it does not excercise the
mechanism at all, but it shows how the mechanism is supposed to be
used.
2018-04-19 14:35:24 +02:00
Andreas Lauser
7de09c08f2 disable asynchronous output for the ECL output test
this leads to crashes deeply inside libecl. My cursory hypotheses are
that this test makes the assumption that the output is written
synchronously (it tries to read back the results from disk
immediately) and/or that libecl is not threadsafe.
2018-03-21 10:31:15 +01:00
Andreas Lauser
e2241beef5 clean up the determination of the directory for output
this should be done by the vanguard, not by the problem!
2018-03-12 16:51:30 +01:00
Kai Bao
ec6cf5c94b changing the PVTO in test_ecl_output
to make the table passing the sanity check.
2018-03-08 09:54:08 +01:00
Andreas Lauser
d8792f36a0 fix a few "unused variable" warnings that occur on more uncommon compilers
i.e. on ICC. the compiler is right in producing warnings here, though.
2018-03-03 13:27:48 +01:00
Joakim Hove
e27a69a496 Rename test-deck to get consistent case 2018-02-20 14:34:31 +01:00
Tor Harald Sandve
c47dd68b1d Rename test_ecl_output.cpp -> test_ecl_output.cc 2018-02-19 13:18:56 +01:00
Tor Harald Sandve
7884229085 Minor clean up 2018-02-19 13:18:56 +01:00
Tor Harald Sandve
042d288478 move Test 2018-02-19 13:18:56 +01:00
Atgeirr Flø Rasmussen
672cfc3ca4 Adapt to moved opm-grid headers. 2018-02-12 10:20:09 +01:00
Andreas Lauser
7afb963fdd change gridManager -> vanguard in new file test_ecl_output.cpp 2018-02-08 17:07:32 +01:00
Andreas Lauser
2f4b835a16 rename the "grid manager" to "vanguard"
IMO the term "vanguard" expresses better what these classes are
supposed to do: level the ground for the cavalry. Normally this simply
means to create and distribute a grid object, but it can become quite
a bit more complicated, as exemplified by the vanguard classes of
ebos..
2018-02-08 16:26:58 +01:00
Andreas Lauser
e5344a2add adapt to the move of code from opm-common to opm-material 2018-02-08 12:11:20 +01:00
Tor Harald Sandve
bad406b0a8 Add test for summary output
Test summary output of FIP, FPR and RPR.
2018-02-05 14:24:11 +01:00
Tor Harald Sandve
46fc4b742b Add support for PBDV and PDDV in initstateequil.hh 2018-01-09 10:42:04 +01:00
Andreas Lauser
f5cfd8f768 fix compiler warnings and errors on dune 2.6 2018-01-03 18:53:03 +01:00
Andreas Lauser
9955c6a6f5 add some reference solutions for the adaptive "finger" problem
for some reason, the results changed slightly, but they still look
good to me.
2018-01-03 18:53:03 +01:00
Andreas Lauser
5a3f25d120 make the equil test work in the presence of dune-fem 2018-01-03 18:53:03 +01:00
Andreas Lauser
adb2783a0c restore the hydrostatic equilibration test from opm-core
This involved quite a bit of kicking and screaming. The result
certainly is not pretty, but it works.
2018-01-03 12:28:12 +01:00
Tor Harald Sandve
54e751fe70 Adress PR review issues 2 2018-01-02 14:28:06 +01:00
Tor Harald Sandve
1e10d25c24 Adress PR review issues 2018-01-02 14:28:06 +01:00
Tor Harald Sandve
740ff891ab Remove the usage of partition_unif_idx() from opm-core 2018-01-02 14:28:06 +01:00
Tor Harald Sandve
44c7fb8816 Cleaning the initialization code
-remove whitespaces
-fix documentation
2018-01-02 14:28:06 +01:00
Tor Harald Sandve
9389aecc26 Use &ref not shared_pointer to MaterialLawManager 2018-01-02 14:28:06 +01:00
Tor Harald Sandve
dc997185d9 Remove blackoilPhases and phaseUsage from the initialization code
Note 1: The initialization code now always consider 3 phases.
For 2-phase cases a trivial (0) state is returned.
Note 2: The initialization code does not compute a BlackoilStats,
but instead pass the initialization object with the initial state.
2018-01-02 14:28:06 +01:00
Tor Harald Sandve
b9b75a109c Remove BlackoilProps from equil initalization code
Use FluidSystem and materialLaw from opm-material
directly not via the BlackoilProps in opm-core
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
9e95d662bd Update swatinit tests to account for bugfix. 2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
680d96840a Update equil regression reference after bugfix.
Also reduce some very coarse tolerances to more reasonable levels.
2018-01-02 14:28:06 +01:00
Tor Harald Sandve
0df94d216a Update the swatinit test base on fix in opm-material#248 2018-01-02 14:28:06 +01:00
Arne Morten Kvarving
3904521ded changed: remove embedded 'parameters' namespace in ParamGroup
inconsistent and unnecessary.

this is purely a cosmetic change, the only exception was a function with
the generic name 'split', which was renamed to splitParam to avoid confusion.
2018-01-02 14:28:06 +01:00
Tor Harald Sandve
020a9af41e Enable swatinit equil test 2018-01-02 14:28:06 +01:00
Tor Harald Sandve
fde300018b FIX swatinit test in test_equil
The capillarySwatinit.DATA is updated to make it possible to run in Ecl.
Referance solutions is updated accordingly.
2018-01-02 14:28:06 +01:00
Joakim Hove
73e6a96180 Temporarily disabled EQUIL + SWATINIT test. 2018-01-02 14:28:06 +01:00
Tor Harald Sandve
fd121224d6 Add test for swatinit 2018-01-02 14:28:06 +01:00
Jørgen Kvalsvik
111979f4a6 Use new DeckItem constructor interface. 2018-01-02 14:28:06 +01:00
Jørgen Kvalsvik
2c30f9e534 Update to shared_ptr-less parser interface. 2018-01-02 14:28:06 +01:00
Andreas Lauser
ec0ac4869c consolidate the unit system to opm-parser
since the unit code within opm-parser is now a drop-in replacement,
this simplifies things and make them less error-prone.

unfortunately, this requires quite a few PRs. (most are pretty
trivial, though.)
2018-01-02 14:28:06 +01:00
Pål Grønås Drange
877bd70c54 transmult and initconfig are ref's, use ref for EclipseState constructor 2018-01-02 14:28:06 +01:00
Liu Ming
6fb9db5dcf rename ParseMode as ParseContext. 2018-01-02 14:28:06 +01:00
Jørgen Kvalsvik
32c5b5e862 Remove Equil + EquilWrapper, replace with upstream
Upstream (opm-parser) now provides a better Equil + EquilRecord, and
simultaneously deprecated EquilWrapper. This patch fixes the resulting
breakage.

One important note: The new Equil does not expose integers for live
oil/wet gas initialization procedure methods, but rather booleans
through constRs/constRv methods. This is how the variable behaves
according to the Eclipse reference manual (EQUIL keyword section).

Code has been updated to reflect this.
2018-01-02 14:28:06 +01:00