mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 01:01:00 -06:00
simplexvanguard: update parameter references
this file is unused so this is untested
This commit is contained in:
parent
3a261e15e3
commit
858cc11328
@ -27,12 +27,15 @@
|
||||
#ifndef EWOMS_SIMPLEX_GRID_VANGUARD_HH
|
||||
#define EWOMS_SIMPLEX_GRID_VANGUARD_HH
|
||||
|
||||
#include <opm/models/utils/basicproperties.hh>
|
||||
#include <opm/models/utils/propertysystem.hh>
|
||||
#include <opm/models/utils/parametersystem.hh>
|
||||
#include <dune/common/fvector.hh>
|
||||
|
||||
#include <dune/grid/utility/structuredgridfactory.hh>
|
||||
#include <dune/common/fvector.hh>
|
||||
|
||||
#include <opm/models/io/basevanguard.hh>
|
||||
|
||||
#include <opm/models/utils/basicproperties.hh>
|
||||
#include <opm/models/utils/parametersystem.hh>
|
||||
#include <opm/models/utils/propertysystem.hh>
|
||||
|
||||
#include <memory>
|
||||
|
||||
@ -59,23 +62,23 @@ public:
|
||||
*/
|
||||
static void registerParameters()
|
||||
{
|
||||
Parameters::registerParam<TypeTag, Properties::GridGlobalRefinements>
|
||||
Parameters::registerParam<TypeTag, Parameters::GridGlobalRefinements>
|
||||
("The number of global refinements of the grid "
|
||||
"executed after it was loaded");
|
||||
Parameters::registerParam<TypeTag, Properties::DomainSizeX>
|
||||
Parameters::registerParam<TypeTag, Parameters::DomainSizeX>
|
||||
("The size of the domain in x direction");
|
||||
Parameters::registerParam<TypeTag, Properties::CellsX>
|
||||
Parameters::registerParam<TypeTag, Parameters::CellsX>
|
||||
("The number of intervalls in x direction");
|
||||
if (dimWorld > 1) {
|
||||
Parameters::registerParam<TypeTag, Properties::DomainSizeY>
|
||||
Parameters::registerParam<TypeTag, Parameters::DomainSizeY>
|
||||
("The size of the domain in y direction");
|
||||
Parameters::registerParam<TypeTag, Properties::CellsY>
|
||||
Parameters::registerParam<TypeTag, Parameters::CellsY>
|
||||
("The number of intervalls in y direction");
|
||||
}
|
||||
if (dimWorld > 2) {
|
||||
Parameters::registerParam<TypeTag, Properties::DomainSizeZ>
|
||||
Parameters::registerParam<TypeTag, Parameters::DomainSizeZ>
|
||||
("The size of the domain in z direction");
|
||||
Parameters::registerParam<TypeTag, Properties::CellsZ>
|
||||
Parameters::registerParam<TypeTag, Parameters::CellsZ>
|
||||
("The number of intervalls in z direction");
|
||||
}
|
||||
}
|
||||
@ -91,24 +94,24 @@ public:
|
||||
GlobalPosition lowerLeft;
|
||||
|
||||
lowerLeft[0] = 0.0;
|
||||
upperRight[0] = Parameters::get<TypeTag, Properties::DomainSizeX>();
|
||||
cellRes[0] = Parameters::get<TypeTag, Properties::CellsX>();
|
||||
upperRight[0] = Parameters::get<TypeTag, Parameters::DomainSizeX>();
|
||||
cellRes[0] = Parameters::get<TypeTag, Parameters::CellsX>();
|
||||
if (dimWorld > 1) {
|
||||
lowerLeft[1] = 0.0;
|
||||
upperRight[1] = Parameters::get<TypeTag, Properties::DomainSizeY>();
|
||||
cellRes[1] = Parameters::get<TypeTag, Properties::CellsY>();
|
||||
upperRight[1] = Parameters::get<TypeTag, Parameters::DomainSizeY>();
|
||||
cellRes[1] = Parameters::get<TypeTag, Parameters::CellsY>();
|
||||
}
|
||||
if (dimWorld > 2) {
|
||||
lowerLeft[2] = 0.0;
|
||||
upperRight[2] = Parameters::get<TypeTag, Properties::DomainSizeZ>();
|
||||
cellRes[2] = Parameters::get<TypeTag, Properies::CellsZ>();
|
||||
upperRight[2] = Parameters::get<TypeTag, Parameters::DomainSizeZ>();
|
||||
cellRes[2] = Parameters::get<TypeTag, Parameters::CellsZ>();
|
||||
}
|
||||
|
||||
simplexGrid_ = Dune::StructuredGridFactory<Grid>::createSimplexGrid(lowerLeft,
|
||||
upperRight,
|
||||
cellRes);
|
||||
|
||||
unsigned numRefinments = Parameters::get<TypeTag, Properties::GridGlobalRefinements>();
|
||||
unsigned numRefinments = Parameters::get<TypeTag, Parameters::GridGlobalRefinements>();
|
||||
simplexGrid_->globalRefine(numRefinments);
|
||||
|
||||
this->finalizeInit_();
|
||||
|
Loading…
Reference in New Issue
Block a user