Commit Graph
63 Commits
Author SHA1 Message Date
Markus Blatt 0e5f57e84e Changed file encoding of all files to utf-8
National encodings are being phased out in some Linux distributions
(e.g. Debian). Hence package checkers such as lintian are complaining.

This removes the linitian warnings about national encodings for Debian.
2021-09-14 12:18:55 +02:00
Arne Morten Kvarving a7564dc5e2 avoid shadowing warning 2020-02-14 10:22:22 +01:00
Atgeirr Flø Rasmussen 41b61032b6 Do not use std::bind2nd, which is removed in C++17. 2020-02-14 08:43:53 +01:00
Arne Morten Kvarving 7b2bbd4cab fixed: limit scope of variables 2019-07-10 10:02:21 +02:00
Atgeirr Flø Rasmussen 2e66eadfa3 Removing another unused class. 2018-01-16 09:30:58 +01:00
Atgeirr Flø Rasmussen 506952e686 Remove unused classes. 2018-01-16 09:25:35 +01:00
Atgeirr Flø Rasmussen 6d8bcf3269 Remove unused transportsolver class. 2018-01-15 15:42:49 +01:00
Atgeirr Flø Rasmussen f062d5a0e6 Avoid depending on miscUtilities.hpp from opm-core. 2018-01-11 15:05:07 +01:00
Arne Morten Kvarving a08d691d14 Import implicit transport code from opm-core 2018-01-10 12:42:03 +01:00
Andreas Lauser 182fb0d04a replace #if HAVE_CONFIG_H by #ifdef HAVE_CONFIG_H
it seems like most build systems pass a -DHAVE_CONFIG_H flag to the
compiler which still causes `#if HAVE_CONFIG_H` to be false while it
clearly is supposed to be triggered.

That said, I do not really see a good reason why the inclusion of the
`config.h` file should be guarded in the first place: the file is
guaranteed to always available by proper build systems, and if it was
not included the build either breaks at the linking stage or -- at the
very least -- the runtime behavior of the resulting libraries will be
very awkward.
2017-12-11 11:33:52 +01:00
Andreas Lauser 2043ba4423 fix the averages wrt negative values and divisions by zero
it could be discussed whether it's better to throw a
std::runtime_error instead...
2017-12-04 16:51:16 +01:00
Andreas Lauser d72cdc129e Replace boost::is_integral by std::is_integral 2017-12-04 16:51:16 +01:00
Andreas Lauser bf00ae1d4c replace BOOST_STATIC_ASSERT by C++-2011's static_assert 2017-12-04 16:51:16 +01:00
Markus Blatt 22b025554b Changed std::tr1 occurences to boost.
std::tr1 might not be supported by all compilers and will eventually
be dropped by others. Using boost instead makes this more
portable.
2017-12-04 16:51:16 +01:00
Atgeirr Flø Rasmussen 9ce89ca68e Changed OpenRS->OPM in copyright notices and #include guards. 2017-12-04 16:51:16 +01:00
Bjørn Spjelkavik 21d1ddee02 Changed namespace Dune -> namespace Opm. 2017-12-04 16:51:16 +01:00
Arne Morten Kvarving 629ce29a2f 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.
2017-04-28 15:34:11 +02:00
Andreas Lauser f011efa4ad use the error macros from opm-common 2015-10-08 11:42:15 +02:00
Bård Skaflestad 0ddfdba4e1 Remove unused "typedef"s
CLang and recent versions of GCC warn about unused "typedef"s.  This
change-set removes currently known instances in opm-core.
2013-09-26 19:22:59 +02:00
Andreas Lauser 4c8df333e6 fix headers
make all non-implementation headers includable without
preconditions. Also, this removes the GravityColumnSolver.hpp file,
because it tried to include a non-existing file and it was thus unused.
2013-09-11 13:11:47 +02:00
Andreas Lauser e09311fc5a convert users of the ASSERT and the ASSERT2 macros to standard assert() 2013-09-05 13:04:37 +02:00
Andreas Lauser fd73941919 convert THROW to OPM_THROW 2013-09-05 13:04:37 +02:00
Andreas Lauser 117d3a427f include iostream in the files which use std::cerr or std::cout
for some of these files this is needed to make to keep it compiling
after the next patch because the new ErrorMacros.hpp file will no
longer implicitly includes <iostream>. for the remaining files it is
just good style.

While at it, the includes for most of these files have been ordered in
order of decreasing abstraction level.
2013-09-05 13:04:37 +02:00
Andreas Lauser 6f0162d388 replace boost::scoped_ptr by std::unique_ptr
thanks to Bård Skaflestad, Atgeirr Rasmusen and Roland Kaufmann for
the hint.
2013-08-08 15:21:38 +02:00
Júlio Hoffimann cd99e3e37f Remove trailing whitespaces 2013-07-28 08:34:13 -03:00
Lars Vingli Odsæter e1c49af8dc Change verbosity level of warning message in transport solver
Don't print message "s was clamped in some cells" unless preprocessor
symbol 'VERBOSE' is set.
2013-06-20 13:30:23 +02:00
Andreas Lauser cfaf0867c4 make config.h the first header to be included in any compile unit
this is required for consistency amongst the compile units which are
linked into the same library and seems to be forgotten quite
frequently.
2013-04-10 12:56:14 +02:00
Atgeirr Flø Rasmussen a9d8ca69c7 Include config.h in cpp file. 2013-03-22 15:20:38 +01:00
Atgeirr Flø Rasmussen d4a7070d2d Fixes and improvements to transport solver docs. 2013-03-21 14:52:21 +01:00
Atgeirr Flø Rasmussen dc636608a3 Changed #ifdef HAVE_... to #if HAVE_... 2013-03-19 13:33:07 +01:00
Atgeirr Flø Rasmussen 10977b6c1b Fixed conditional compilation issues with UMFPACK.
This should fix the issue reported in #208 introduced in #203.
2013-03-19 10:30:27 +01:00
Atgeirr Flø Rasmussen b65859e08b Further reorganising of opm-core.
Deleted some unused code (or moved to opm-porsol), moved all code dealing with
time-of-flight to opm/core/tof, moved code for implicit transport solver to
opm/core/transport/implicit, spu_[im|ex]plicit.[ch] to opm/core/transport/minimal.
2013-03-18 12:38:04 +01:00
Atgeirr Flø Rasmussen dc3760548d Rename ImplicitTwoPhaseTransportSolver -> TransportSolverTwophaseImplicit. 2013-03-14 22:39:08 +01:00
Atgeirr Flø Rasmussen bcc3834613 Rename TwoPhaseTransportSolver -> TransportSolverTwophaseInterface.
To be more consistent with naming practices elsewhere in opm-core.
2013-03-14 22:24:36 +01:00
Atgeirr Flø Rasmussen 00106fd838 Modified for added files and changed class names. 2013-03-14 21:43:21 +01:00
Atgeirr Flø Rasmussen 992b7db6f9 Merge remote-tracking branch 'hnil/hnil_class' into combined.
Conflicts:
	CMakeLists.txt
	examples/sim_wateroil.cpp
	opm/core/grid/cpgpreprocess/geometry.c
	opm/core/transport/reorder/ReorderSolverInterface.hpp
	opm/core/transport/reorder/TofDiscGalReorder.cpp
	opm/core/transport/reorder/TofDiscGalReorder.hpp
	opm/core/transport/reorder/TofReorder.cpp
	opm/core/transport/reorder/TofReorder.hpp
	opm/core/transport/reorder/TransportSolverCompressibleTwophaseReorder.cpp
	opm/core/transport/reorder/TransportSolverTwophaseReorder.cpp
2013-03-14 16:18:39 +01:00
Bård Skaflestad afc02fe21c Include <cassert> to bring in declaration of assert() 2013-02-20 12:59:40 +01:00
Halvor Møll Nilsen 42376e9686 Corrected include statements after renaming files. 2012-11-16 16:24:54 +01:00
Halvor Møll Nilsen be963a1fbb Corrected spelling of implicit in filename and class name 2012-11-16 13:50:52 +01:00
Halvor Møll Nilsen 3ce9e4b385 Corrected error of name of impl hpp file. 2012-11-16 13:47:35 +01:00
Halvor Møll Nilsen 070418eb21 Changes needed to for makeing a simulator using ImplicitTransport. Several changes in names to highlight what is reorder simulator classes 2012-11-16 13:38:03 +01:00
Halvor Møll Nilsen ad20a1c294 Added wrapper in code in separate file. Continued to change ../simulator/SimulatorIncompTwophase.cpp 2012-11-15 15:01:12 +01:00
Halvor Møll Nilsen 73af52646b Changes to try to make naming and classes more consistent. This is a start to make devide models and tranport solvers so that VE models is more easely handled 2012-11-15 13:20:49 +01:00
Atgeirr Flø Rasmussen 0bdb0cf375 Make explicit intention to do nothing on empty input. 2012-11-15 08:54:45 +01:00
Atgeirr Flø Rasmussen 0e9daf2f6a Remove unneeded assert().
Function is safe to call with empty vectors.
2012-11-14 15:30:25 +01:00
Bård Skaflestad 38fcd86bcf makefhfQPeriodic(): Use less branch'y implementation. 2012-07-02 19:09:58 +02:00
Bård Skaflestad b8372c9ce3 Doxygenise class spu_2p::ModelParameterStorage
Mostly stub comments.
2012-07-02 14:58:59 +02:00
Bård Skaflestad 43ed6e1568 Initialise all members in constructor. 2012-07-02 14:13:42 +02:00
Bård Skaflestad b6e79990f5 ModelParameterStorage(): Extract 'size_t' from the std:: namespace. 2012-05-24 16:29:33 +02:00
Bård Skaflestad 4a5d832b25 Disable assertions that do not hold, in general. 2012-05-24 16:28:43 +02:00