Roland Kaufmann
98a36189d3
Conditionally use input file
...
If config.h is written, then the build system will also define
HAVE_CONFIG_H.
2013-11-25 14:14:45 +01:00
Roland Kaufmann
cdc45b2d56
Trim needless header includes
2013-11-25 14:14:45 +01:00
Roland Kaufmann
1cda556cb9
Remove dependency on ERT in header
2013-11-25 14:14:45 +01:00
Roland Kaufmann
5ce5975586
Coalesce called methods into init and timestep
2013-11-25 14:14:45 +01:00
Roland Kaufmann
572123675d
Updated copyright statement at top
2013-11-25 14:14:45 +01:00
Roland Kaufmann
92fd082630
Remove now unused member holding starting time
...
If we restart from a later time, then the SimulatorTimer should be
restarted in that state as well, so it is already always a reflection
of how far we've progressed in the input file's schedule.
2013-11-25 14:14:45 +01:00
Roland Kaufmann
f637a0cea9
Replace summary variables with RAII type
2013-11-25 14:14:45 +01:00
Roland Kaufmann
cf8c58a33d
Replace restart and solution handling with RAII type
2013-11-25 14:14:45 +01:00
Roland Kaufmann
b0a4881d45
Replace init setup with RAII type
2013-11-25 14:14:45 +01:00
Roland Kaufmann
3b8d42ca02
Make grid writing part of the grid type
2013-11-25 14:14:44 +01:00
Roland Kaufmann
2ae164a878
Replace grid construction with RAII type
2013-11-25 14:14:44 +01:00
Roland Kaufmann
97b0dcc3ac
Centralize all time conversion
...
Remove duplicate code into a common helper function
2013-11-25 14:14:44 +01:00
Roland Kaufmann
f845163a0b
Replace file name handling with RAII type
2013-11-25 14:14:44 +01:00
Roland Kaufmann
fa03df1e8b
Replace data series handling with RAII type
...
The EclipseKeyword class takes care of cleaning up the handle after we
are done using it, and provides several convenience constructors that
make the code read easier.
2013-11-25 14:14:44 +01:00
Roland Kaufmann
7d7470d36b
Add generic version of getXxxValue
...
This allows us to call getIntegerValue/getFloatingPointValue from
generic code where the type to be used is a template parameter.
2013-11-25 14:14:44 +01:00
Bård Skaflestad
1467a16a34
Merge pull request #439 from andlaus/fix_configure_syntax_error
...
fix syntax error in configure shell script
2013-11-25 03:52:30 -08:00
Bård Skaflestad
aa9117cf02
Merge pull request #420 from rolk/420_state
...
Refactor BlackoilState and TwophaseState to have a common interface for writing
2013-11-25 03:30:38 -08:00
Bård Skaflestad
6c56cff450
Merge pull request #436 from rolk/436_searchdir
...
Search in build/ sub-dir if only suite root is given
2013-11-25 02:29:41 -08:00
Andreas Lauser
c1fc5c53c6
fix syntax error in configure shell script
...
strangly enough, it seems to work like it was in some circumstances...
2013-11-22 18:39:49 +01:00
Joakim Hove
2b65421d4e
Merge remote-tracking branch 'upstream/master' into opm-parser-integrate
2013-11-22 10:23:11 +01:00
Roland Kaufmann
3c3e14daed
Merge pull request #430 from andlaus/fix_infinite_configure
...
build system: prevent endless loop when using dunecontrol
2013-11-21 03:07:34 -08:00
Joakim Hove
a77b73486a
Merge remote-tracking branch 'upstream/master' into opm-parser-integrate
2013-11-18 14:33:52 +01:00
Bård Skaflestad
2bdcf79369
Merge pull request #433 from joakim-hove/require-opm-parser
...
Require opm parser
2013-11-18 05:08:32 -08:00
Joakim Hove
70505ffcb3
Raised the opm-core boost dependency to 1.44 to reflect parser requirement
2013-11-18 13:24:53 +01:00
Roland Kaufmann
9e54d276bd
Only add parent directories for actual variants
...
Otherwise we'll inadvertedly add the root directory and will probably
find the system implementation underneath there.
2013-11-18 13:19:58 +01:00
Roland Kaufmann
6d433017a4
Only add build sub-directory if it is actually used
...
Otherwise the search will cascade down one level too many.
2013-11-18 13:19:18 +01:00
Roland Kaufmann
4379ee8da6
Search in build/ sub-dir if only suite root is given
...
If the package suite was given (e.g. DUNE_ROOT=/blum), then the code
set up the root for each individual package automatically (e.g.
DUNE_COMMON_ROOT=/blum/dune-common), but the path which was then
activated did not get the local build sub-directory (e.g. if we are
building opm-autodiff in /frub/opm-autodiff/build, then the local
build directory is "build/"), and thus this was not appended to the
library search path. The result was that the source was found (because
the root pointed to a valid source tree), but the library was not
(because it is "hidden" in the subdirectory).
2013-11-18 11:21:06 +01:00
Joakim Hove
954203fb83
Added CJSON_INCLUDE_DIRS to OPM_PARSER_INCLUDE_DIRS
2013-11-15 15:40:42 +01:00
Joakim Hove
1d39d4bcda
Removed explicit cJSON dependency from opm-core
2013-11-15 15:39:55 +01:00
Joakim Hove
04d7d82e7c
Set the boost version requirement to 1.44 - and added cJSON dependency
2013-11-15 15:38:03 +01:00
Andreas Lauser
58122cc2f5
include the latest review comments by Roland Kaufmann
2013-11-15 13:14:50 +01:00
Atgeirr Flø Rasmussen
1ad84ae3fe
Merge pull request #431 from bska/simplify-cpchop-output
...
CornerPointChopper: Tidy code to output GRDECL format of subsample
2013-11-14 08:36:42 -08:00
Bård Skaflestad
6aacc4f738
Merge pull request #432 from joakim-hove/find-opm-parser
...
CMAKE: check_cxx_source_compiles() in Findopm-parser to look for Deck.hpp
2013-11-14 08:19:21 -08:00
Joakim Hove
ce8da88764
Added very simple parser test to check a parser can be instantiated and a simple file parsed
2013-11-14 12:52:12 +01:00
Joakim Hove
86439d6a52
Added required dependencies on opm-parser and CJSON
2013-11-14 12:51:12 +01:00
Joakim Hove
dc27dc1adf
Changed the check_cxx_source_compiles() in Findopm-parser to look for Deck.hpp; Parser.hpp had uneccasary complicated interaction with cJSON
2013-11-14 10:20:05 +01:00
Bård Skaflestad
ca5c7bcb6e
Remove long-disabled code
...
The code to condense the output using repeat counts was disabled
long ago (commit fc992da
). If we ever need this feature, we can
bring it back from history or reimplemented in a refined fashion.
2013-11-13 20:41:07 +01:00
Bård Skaflestad
d4b522459a
outputField(): Use straight-line code
...
There is no need to use a nested loop to output a constant number of
items per line. We only need to output a '\n' rather than a ' '
after every "nl" item output.
2013-11-13 20:37:59 +01:00
Bård Skaflestad
ac4fd4d0cd
writeGrdecl(): Use outputField() for COORD and ZCORN
...
This leverages the "number-of-items-per-line" parameter introduced
in commit 608d4c1
.
2013-11-13 20:33:13 +01:00
Bård Skaflestad
608d4c1a11
outputField(): Parametrise number of items per line
...
This is in preparation of leveraging the outputField() helper for
printing COORD and ZCORN too.
2013-11-13 20:29:47 +01:00
Andreas Lauser
4c1f238fb3
configure script: add a stub implementation for the --config-cache argument
...
so far, it is only a flag which prevents the cache from being
deleted. To warn the user about a potential infinite loop, a warning
is printed if this flag was specified and some compiler or some compiler
flags were set by the user. This idea was proposed by Roland Kaufmann.
2013-11-13 15:21:39 +01:00
Roland Kaufmann
9bb4941a38
Extract common parts of blackoil and incomp. state
...
Put the identical parts of the simulator state into a base class that
they can be referenced from when adressing the common fields.
2013-11-13 13:48:28 +01:00
Andreas Lauser
6b037027c3
configure script: also delete the cmake cache
...
This replicates the autotools behavior and was suggested by Roland
Kaufmann.
2013-11-13 11:46:27 +01:00
Bård Skaflestad
b59ec1639a
Merge pull request #429 from karbor/master
...
Output newline after last entry before "/" when outputting grid to file....
2013-11-12 00:33:32 -08:00
Bård Skaflestad
20819e4861
Merge pull request #427 from andlaus/fix_spline
...
spline: some fixes to make Spline::intersect() work correctly
2013-11-11 12:54:20 -08:00
Andreas Lauser
ff619105eb
fixup! spline: avoid bogous "might be used uninitialized" compiler warning on GCC
2013-11-11 18:13:43 +01:00
Andreas Lauser
2f36aa10fa
build system: prevent endless loop when using dunecontrol
...
this seems to be a bug in cmake 2.8.10.2: if the user sets the
CMAKE_CXX_COMPILER variable for a build directory where this variable
has already been set, one gets an endless loop. This stings especially
if using the dunecontrol compatibility layer as the compiler flags are
unconditionally set via the CXX_FLAGS environment variable in the
options file. Running duncontrol on a module twice will thus trigger the
infinite loop if some compiler flags are set by the user.
The solution is relatively simple: Delete the CMakeFiles directory
before calling cmake. for the dunecontrol compatibility mode, we do
this in the configure script. For details about the cmake bug, see
http://www.cmake.org/Bug/view.php?id=14119
2013-11-11 17:04:23 +01:00
Kari B. Skjerve
d18a90bced
Output newline after last entry before "/" when outputting grid to file. This make gridfile more robust for later usage.
2013-11-11 14:13:38 +01:00
Roland Kaufmann
63f95c317d
Merge pull request #428 from andlaus/make_quadmath_test_more_strict
...
fix test for HAVE_QUAD on some instances of ubuntu 13.10
2013-11-11 04:41:37 -08:00
Andreas Lauser
434a3a8dd5
spline: avoid bogous "might be used uninitialized" compiler warning on GCC
2013-11-10 17:55:41 +01:00