diff --git a/dune/upscaling/UpscalerBase.hpp b/dune/upscaling/UpscalerBase.hpp index def0416..1d58319 100644 --- a/dune/upscaling/UpscalerBase.hpp +++ b/dune/upscaling/UpscalerBase.hpp @@ -80,24 +80,24 @@ namespace Dune double perm_threshold, double z_tolerance = 0.0, double residual_tolerance = 1e-8, - int linsolver_maxit = 0, - double linsolver_prolongate_factor =1.6, int linsolver_verbosity = 0, int linsolver_type = 1, bool twodim_hack = false, - int linsolver_smooth_steps=2); + int linsolver_maxit = 0, + double linsolver_prolongate_factor = 1.6, + int linsolver_smooth_steps = 2); /// Access the grid. const GridType& grid() const; - /// Set boundary condition type. This may not be used to swicth - /// between Periodic and the other types, since the grid is - /// modified for Periodic conditions. - void setBoundaryConditionType(BoundaryConditionType type); + /// Set boundary condition type. This may not be used to swicth + /// between Periodic and the other types, since the grid is + /// modified for Periodic conditions. + void setBoundaryConditionType(BoundaryConditionType type); - /// Set the permeability of a cell directly. This will override - /// the permeability that was read from the eclipse file. - void setPermeability(const int cell_index, const permtensor_t& k); + /// Set the permeability of a cell directly. This will override + /// the permeability that was read from the eclipse file. + void setPermeability(const int cell_index, const permtensor_t& k); /// Does a single-phase upscaling. /// @return an upscaled permeability tensor. diff --git a/dune/upscaling/UpscalerBase_impl.hpp b/dune/upscaling/UpscalerBase_impl.hpp index 220d17b..b52a94d 100644 --- a/dune/upscaling/UpscalerBase_impl.hpp +++ b/dune/upscaling/UpscalerBase_impl.hpp @@ -127,16 +127,16 @@ namespace Dune template inline void UpscalerBase::init(const Opm::EclipseGridParser& parser, - BoundaryConditionType bctype, - double perm_threshold, - double z_tolerance, - double residual_tolerance, - int linsolver_maxit, - double linsolver_prolongate_factor, - int linsolver_verbosity, - int linsolver_type, - bool twodim_hack, - int linsolver_smooth_steps) + BoundaryConditionType bctype, + double perm_threshold, + double z_tolerance, + double residual_tolerance, + int linsolver_verbosity, + int linsolver_type, + bool twodim_hack, + int linsolver_maxit, + double linsolver_prolongate_factor, + int linsolver_smooth_steps) { bctype_ = bctype; residual_tolerance_ = residual_tolerance; diff --git a/examples/upscale_relperm.cpp b/examples/upscale_relperm.cpp index 2a88fd4..6d189b4 100644 --- a/examples/upscale_relperm.cpp +++ b/examples/upscale_relperm.cpp @@ -950,8 +950,9 @@ int main(int varnum, char** vararg) eclParser.convertToSI(); upscaler.init(eclParser, boundaryCondition, Opm::unit::convert::from(minPerm, Opm::prefix::milli*Opm::unit::darcy), - ztol, linsolver_tolerance, linsolver_maxit, linsolver_prolongate_factor, - linsolver_verbosity, linsolver_type, twodim_hack, smooth_steps); + ztol, linsolver_tolerance, + linsolver_verbosity, linsolver_type, twodim_hack, + linsolver_maxit, linsolver_prolongate_factor, smooth_steps); finish = clock(); timeused_tesselation = (double(finish)-double(start))/CLOCKS_PER_SEC; if (isMaster) cout << " (" << timeused_tesselation <<" secs)" << endl;