Bård Skaflestad
15211bc445
Merge pull request #454 from joakim-hove/wellmanager
...
Refactoring of well controls
2014-01-09 03:44:11 -08:00
Kristian Flikka
bc8ad56db1
Changed new WellsManager constructor to take in EclipseStateConstPtr instead of SchedulePtr
2014-01-08 16:10:55 +01:00
Joakim Hove
43faea6678
Comparing well names protects againts NULL.
2014-01-08 16:10:43 +01:00
Joakim Hove
dee5c880ea
Removed commented out code.
2014-01-08 15:58:11 +01:00
Joakim Hove
c3b4a95d82
Removed access to internal variabel cpty.
2014-01-08 11:32:00 +01:00
Kristian Flikka
43fd5e23ab
New constructor for WellsManager that also takes the new parser as argument. New test comparing old and new
2014-01-07 16:10:45 +01:00
Kristian Flikka
593dcf3cd7
Merge from joakim/wellmanager
2014-01-07 16:09:35 +01:00
Joakim Hove
28658347db
Using && instead of &= in the functions comparing wells and well_controls.
2014-01-06 19:22:39 +01:00
Joakim Hove
6725740f71
Removed explicit (struct WellControls *) cast to align with the rest of the code.
2014-01-06 19:09:36 +01:00
Joakim Hove
86c9acad5b
Removed temoporary file opm/core/well_control_type.h.
2014-01-06 19:09:01 +01:00
Joakim Hove
38b635a97f
Moved struct WellControls to the implementation file well_controls.c.
2014-01-06 15:13:32 +01:00
Joakim Hove
23b91c5466
Implemented well_controls based on well_controls_get_xxx() functions.
2014-01-06 15:02:19 +01:00
Joakim Hove
57a0ed6d98
Implemented well_controls based on well_controls_get_xxx() functions.
2014-01-06 14:59:11 +01:00
Joakim Hove
dc1935cc77
Implemented well_controls based on well_controls_get_xxx() functions.
2014-01-06 14:51:11 +01:00
Joakim Hove
bb2604a39b
Implemented well_controls based on well_controls_get_xxx() functions.
2014-01-06 14:40:55 +01:00
Joakim Hove
b346845903
Added functions to get type, target and distr of *current* control.
2014-01-06 14:40:03 +01:00
Joakim Hove
a19881f5f4
Implemented well_controls based on well_controls_iset_xxx() functions.
2014-01-06 14:19:09 +01:00
Joakim Hove
57226cde9e
Implemented well_control based on well_controls_iset_xxx() functions.
2014-01-06 12:40:03 +01:00
Joakim Hove
4cfa151e25
Implemented well_controls_add_new() with well_controls_iset_xxx() functions.
2014-01-06 12:24:32 +01:00
Joakim Hove
58ba8f45eb
Added new function well_controls_iset_distr().
2014-01-06 12:22:15 +01:00
Joakim Hove
ad73015cb9
Using new function well_controls_invert_current().
2014-01-06 12:08:29 +01:00
Joakim Hove
fdf7bdba85
Added new functions to set target and type and invert value of current control.
2014-01-06 12:06:36 +01:00
Joakim Hove
85984a72e4
Changes test_wells to use well_controls_get_xxx() functions.
2014-01-06 10:34:25 +01:00
Joakim Hove
9d9c6a5676
Changed test_wellsmanager to use well_controls_get_xxx() functions.
2014-01-06 10:26:46 +01:00
Joakim Hove
1462952511
Using well_controls_get_num() and well_controls_get|set_current() in WellsManager
2014-01-06 10:12:11 +01:00
Joakim Hove
0b37bdd1ec
Temporarily added symbol HAVE_WELLCONTROLS before including well_controls.h - to get acces to the internal elements in struct WellControls.
2014-01-05 16:25:31 +01:00
Joakim Hove
5ef171b212
Reimplemnted struct WellControls access to use the set/get functions in well_controls.c
2014-01-05 16:23:22 +01:00
Joakim Hove
49f6ff9791
Added well_controls_get_xxx() and well_controls_set_xxx() functions. The well_controls_reserved() function is called from well_controls_add() and not explicitly.
2014-01-05 16:22:30 +01:00
Joakim Hove
35d46225b8
Removed #include <opm/core/well_controls.h> from wells.h and inserted explicit #include <opm/core/well_controls.h> where needed.
2014-01-05 15:03:30 +01:00
Joakim Hove
f4142899b3
Removed struct WellControlManagement and replaced with simple integer field cpty in the WellControls structure.
2014-01-05 14:54:56 +01:00
Joakim Hove
76deba58bd
Moved well_controls implementation to separate file well_controls.c.
2014-01-05 14:47:15 +01:00
Joakim Hove
e75552750a
Extracted everything related to well controls to separate header well_controls.h - to simplify introducing new parser.
2014-01-03 16:04:12 +01:00
Joakim Hove
61ec55403a
Added test calls to wells_equal() and well_controls_equal().
2014-01-03 16:01:15 +01:00
Joakim Hove
35b371dfa9
Added test_wellmanager which loads wellmanager from deck and tests many values.
2014-01-03 16:00:57 +01:00
Kristian Flikka
fd942e347d
Implementation (not finished) of wells_equal, well_controls_equal, and tests. To build a WellsManager test for old and new parser
...
Conflicts:
CMakeLists_files.cmake
2014-01-03 16:00:10 +01:00
Joakim Hove
31b6c9adbe
Merge remote-tracking branch 'upstream/opm-parser-integrate' into opm-parser-integrate
2013-12-17 11:58:29 +01:00
Joakim Hove
42d058c6db
Merge remote-tracking branch 'upstream/master' into opm-parser-integrate
2013-12-16 16:58:22 +01:00
Bård Skaflestad
b280af372b
Merge pull request #449 from andlaus/fix_guard_macro
...
fix typo in guard macro of fsh.h
2013-12-16 05:52:18 -08:00
Andreas Lauser
48751432a5
OpmFind.cmake: also check for CAPITALIZED found variables
...
thanks to @rolk for catching this
2013-12-16 09:34:59 +01:00
Andreas Lauser
5bf751e921
cmake: make sure all calls to message() exhibit a type
2013-12-15 18:25:52 +01:00
Andreas Lauser
b660419992
fix typo in guard macro of fsh.h
...
on CLang 3.4 svn this produced
```
/home/erne/src/opm-core/opm/core/pressure/fsh.h:20:9: warning: 'OPM_FSH_HEADER_INCLUDED' is used as a
header guard here, followed by #define of a different macro [-Wheader-guard]
```
which is correct...
2013-12-15 18:10:27 +01:00
Andreas Lauser
92d1f463d9
OpmFind.cmake: prevent multiple calls to the same module in the same run
...
this prevents to check for the same module more than once in the same
cmake run and should thus speed things up a bit as well as make the
output a bit cleaner. For this I assumed that the ${name}_FOUND cmake
variable does not get cached, which it seems like it does not...
2013-12-15 17:56:37 +01:00
Bård Skaflestad
3528c1e988
Merge pull request #447 from akva2/add_rho
...
added: nonstandard 'RHO' field in eclipse grid parser
2013-12-12 03:54:24 -08:00
Arne Morten Kvarving
f1ba3d4b70
added: nonstandard 'RHO' field in eclipse grid parser
...
note that as this is a nonstandard field, there is no unit conversion
handling. use with caution
2013-12-12 12:43:30 +01:00
Bård Skaflestad
ee22e22897
Merge pull request #446 from andlaus/propertysystem_fixes
...
Property system: some simplifications and bugfixes
2013-12-11 09:15:48 -08:00
Andreas Lauser
34e26ae5bc
Property system: some simplifications and bugfixes
...
this simplifies the template meta programming a bit. (Which does not
mean that it suddenly gets easy.) The main motivation for this work is
to make the splices feature work properly which allows eWoms to
properly select the spatial discretization at any point.
Further, the number of type tags a node can inherit from now is truely
unlimited thanks the the generic tuple reversal class provided by
https://sydius.me/2011/07/reverse-tuple-in-c/ . (before, the maximum
number of nodes from which a type tag could inherit was 11, so this
limitation did not really matter in practice.)
2013-12-11 17:26:24 +01:00
Bård Skaflestad
1871fe49ea
Merge pull request #445 from rolk/445_asneeded
...
Only add linker option if it is not really there
2013-12-10 12:47:58 -08:00
Roland Kaufmann
ee7f4242b5
Only add linker option if it is not really there
...
This code is run unconditionally each time we do a reconfigure; if the
option is added at each time, they will accumulate (needlessly) on the
command-line, making it harder to inspect the log.
2013-12-10 21:01:22 +01:00
Joakim Hove
36a08a8f98
Merge pull request #443 from andlaus/parser-integrate-dunecontrol_support
...
dune.module: specify dependency on opm-parser
2013-12-10 07:57:50 -08:00
Joakim Hove
d0fb8655da
Merge remote-tracking branch 'upstream/master' into opm-parser-integrate
2013-12-08 18:38:38 +01:00