mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
some bikeshedding to make the new code more consistent with the existing one
i.e., where to put spaces, where to put new lines and using identation width 4.
This commit is contained in:
@@ -165,14 +165,14 @@ public:
|
||||
if (intersection.boundary())
|
||||
continue;
|
||||
|
||||
const auto& inside = intersection.inside();
|
||||
const auto& inside = intersection.inside();
|
||||
const auto& outside = intersection.outside();
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2,4)
|
||||
int insideElemIdx = elementMapper.index( *inside );
|
||||
int outsideElemIdx = elementMapper.index( *outside);
|
||||
int insideElemIdx = elementMapper.index(*inside);
|
||||
int outsideElemIdx = elementMapper.index(*outside);
|
||||
#else
|
||||
int insideElemIdx = elementMapper.map( *inside );
|
||||
int outsideElemIdx = elementMapper.map( *outside);
|
||||
int insideElemIdx = elementMapper.map(*inside);
|
||||
int outsideElemIdx = elementMapper.map(*outside);
|
||||
#endif
|
||||
|
||||
// we only need to calculate a face's transmissibility
|
||||
|
||||
@@ -149,8 +149,8 @@ public:
|
||||
// make sure that the well is either an injector or a
|
||||
// producer for the current episode. (it is not allowed to
|
||||
// be neither or to be both...)
|
||||
assert( (deckWell->isInjector(episodeIdx)?1:0) +
|
||||
(deckWell->isProducer(episodeIdx)?1:0) == 1);
|
||||
assert((deckWell->isInjector(episodeIdx)?1:0) +
|
||||
(deckWell->isProducer(episodeIdx)?1:0) == 1);
|
||||
|
||||
if (deckWell->isInjector(episodeIdx)) {
|
||||
well->setWellType(Well::Injector);
|
||||
|
||||
Reference in New Issue
Block a user