mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Implement code style comments
This commit is contained in:
parent
02724b7f7a
commit
6ae7f460ff
@ -107,15 +107,18 @@ namespace Opm
|
|||||||
|
|
||||||
#ifdef HAVE_DUNE_CORNERPOINT
|
#ifdef HAVE_DUNE_CORNERPOINT
|
||||||
if (std::is_same<Grid, Dune::CpGrid>::value) {
|
if (std::is_same<Grid, Dune::CpGrid>::value) {
|
||||||
if (use_local_perm)
|
if (use_local_perm) {
|
||||||
OPM_THROW(std::runtime_error, "Local coordinate permeability not supported for CpGrid");
|
OPM_THROW(std::runtime_error, "Local coordinate permeability not supported for CpGrid");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (not use_local_perm)
|
if (! use_local_perm) {
|
||||||
tpfa_htrans_compute(ug, props.permeability(), htrans.data());
|
tpfa_htrans_compute(ug, props.permeability(), htrans.data());
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
tpfa_loc_trans_compute_(grid,props.permeability(),htrans);
|
tpfa_loc_trans_compute_(grid,props.permeability(),htrans);
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<double> mult;
|
std::vector<double> mult;
|
||||||
multiplyHalfIntersections_(grid, eclState, ntg, htrans, mult);
|
multiplyHalfIntersections_(grid, eclState, ntg, htrans, mult);
|
||||||
@ -309,7 +312,7 @@ namespace Opm
|
|||||||
OPM_MESSAGE("Warning: negative Z-transmissibility value in cell: " << cellIdx << " replace by absolute value") ;
|
OPM_MESSAGE("Warning: negative Z-transmissibility value in cell: " << cellIdx << " replace by absolute value") ;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
OPM_THROW(std::logic_error, "Inconsitancy in the faceTag in cell: " << cellIdx);
|
OPM_THROW(std::logic_error, "Inconsistency in the faceTag in cell: " << cellIdx);
|
||||||
|
|
||||||
}
|
}
|
||||||
cn = -cn;
|
cn = -cn;
|
||||||
|
Loading…
Reference in New Issue
Block a user