Skip to content
Snippets Groups Projects
Commit d366e92c authored by Natalie Schröder's avatar Natalie Schröder
Browse files

[dgf] overload makeGrid in dgfgridcreater.hh - needed for coupled problems...

[dgf] overload makeGrid in dgfgridcreater.hh - needed for coupled problems with more than one dgf file defined in the input file

discussed with and reviewed by Bernd



git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@13845 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent e6e1dce5
No related branches found
No related tags found
No related merge requests found
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- r// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4: // vi: set et ts=4 sw=4 sts=4:
/***************************************************************************** /*****************************************************************************
* See the file COPYING for full copying permissions. * * See the file COPYING for full copying permissions. *
...@@ -47,13 +47,20 @@ class DgfGridCreator ...@@ -47,13 +47,20 @@ class DgfGridCreator
public: public:
/*! /*!
* \brief Load the grid from the file. * \brief Load the grid from the dgf file.
*/
static void makeGrid(const std::string& dgfFileName)
{
gridPtr_ = GridPointer(dgfFileName.c_str(), Dune::MPIHelper::getCommunicator());
};
/*!
* \brief Load the grid from the dgf file given in the input file.
*/ */
static void makeGrid() static void makeGrid()
{ {
const std::string dgfFileName = GET_RUNTIME_PARAM_FROM_GROUP(TypeTag, std::string, Grid, File); const std::string dgfFileName = GET_RUNTIME_PARAM_FROM_GROUP(TypeTag, std::string, Grid, File);
makeGrid(dgfFileName);
gridPtr_ = GridPointer(dgfFileName.c_str(), Dune::MPIHelper::getCommunicator());
} }
/*! /*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment