Commit 1d8d0d29 authored by Lukas Riedel's avatar Lukas Riedel

removed commented code in param_base.hh concerning processor ranks

parent 3b642398
......@@ -219,11 +219,8 @@ namespace Dune {
/// Opens H5 array for reading
void open_array(std::string groupName)
{
//if(helper.rank()==0)
//{
h5file.open(groupName);
array_open = true;
//}
h5file.open(groupName);
array_open = true;
}
/// Reads parameter array for Parameter p from H5 file
......@@ -232,12 +229,9 @@ namespace Dune {
if (!array_open)
DUNE_THROW(Exception,"Array file must be opened before reading a parameter");
//if(helper.rank()==0)
//{
Array fieldArray;
h5file.read_dataset(fieldArray, fieldCells, p.name);
p.set_values(fieldArray);
//}
Array fieldArray;
h5file.read_dataset(fieldArray, fieldCells, p.name);
p.set_values(fieldArray);
}
/// Closes H5 file
......@@ -246,11 +240,8 @@ namespace Dune {
if (!array_open)
DUNE_THROW(Exception,"Array file already closed");
//if(helper.rank()==0)
//{
h5file.close();
array_open = false;
//}
h5file.close();
array_open = false;
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment