mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
GridDataOutput: remove parantheses in return statements
This commit is contained in:
parent
02fbadb809
commit
26d3802ea6
@ -315,24 +315,24 @@ public:
|
|||||||
|
|
||||||
Dune::PartitionSet<partitions> getPartition(void)
|
Dune::PartitionSet<partitions> getPartition(void)
|
||||||
{
|
{
|
||||||
return (this->dunePartition_);
|
return this->dunePartition_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void printGridDetails(std::ostream& outstr);
|
void printGridDetails(std::ostream& outstr);
|
||||||
|
|
||||||
int getNCells()
|
int getNCells()
|
||||||
{
|
{
|
||||||
return (ncells_);
|
return ncells_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int getNVertices()
|
int getNVertices()
|
||||||
{
|
{
|
||||||
return (nvertices_);
|
return nvertices_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int getNCorners()
|
int getNCorners()
|
||||||
{
|
{
|
||||||
return (ncorners_);
|
return ncorners_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string getError()
|
std::string getError()
|
||||||
|
@ -182,7 +182,7 @@ writeGridPoints_AOS(T* xyz_inout, long max_size)
|
|||||||
xyz_inout[i++] = static_cast<T>(0.0);
|
xyz_inout[i++] = static_cast<T>(0.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ((i) / 3);
|
return i / 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
@ -220,7 +220,7 @@ writeGridPoints_AOS(VectType& xyz_inout)
|
|||||||
xyz_inout[i++] = static_cast<VT>(td);
|
xyz_inout[i++] = static_cast<VT>(td);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ((i) / 3);
|
return i / 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
@ -258,7 +258,7 @@ writeGridPoints_SOA(T* xyz_inout, long max_size)
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (i);
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
@ -302,7 +302,7 @@ writeGridPoints_SOA(VectType& xyz_inout)
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (i);
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
@ -343,7 +343,7 @@ writeConnectivity(Integer* connectivity_inout,
|
|||||||
i += cell_corners;
|
i += cell_corners;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (i);
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
@ -386,7 +386,7 @@ writeConnectivity(VectType& connectivity_inout, ConnectivityVertexOrder whichOrd
|
|||||||
i += cell_corners;
|
i += cell_corners;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (i);
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
@ -408,7 +408,7 @@ writeOffsetsCells(Integer* offsets_inout, long max_size)
|
|||||||
offsets_inout[i] = offsets_inout[i - 1] + cell_corners;
|
offsets_inout[i] = offsets_inout[i - 1] + cell_corners;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
return (i); // This should be 1 greater than ncells_
|
return i; // This should be 1 greater than ncells_
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
@ -435,7 +435,7 @@ writeOffsetsCells(VectType& offsets_inout)
|
|||||||
offsets_inout.data()[i] = offsets_inout.data()[i - 1] + cell_corners;
|
offsets_inout.data()[i] = offsets_inout.data()[i - 1] + cell_corners;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
return (i); // This should be 1 greater than ncells_
|
return i; // This should be 1 greater than ncells_
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
@ -455,7 +455,7 @@ writeCellTypes(Integer* types_inout, long max_size)
|
|||||||
Integer vtktype = static_cast<Integer>(Dune::VTK::geometryType(cit.type()));
|
Integer vtktype = static_cast<Integer>(Dune::VTK::geometryType(cit.type()));
|
||||||
types_inout[i++] = vtktype;
|
types_inout[i++] = vtktype;
|
||||||
}
|
}
|
||||||
return (i);
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
@ -477,7 +477,7 @@ writeCellTypes(VectType& types_inout)
|
|||||||
int vtktype = static_cast<int>(Dune::VTK::geometryType(cit.type()));
|
int vtktype = static_cast<int>(Dune::VTK::geometryType(cit.type()));
|
||||||
types_inout.data()[i++] = vtktype;
|
types_inout.data()[i++] = vtktype;
|
||||||
}
|
}
|
||||||
return (i);
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
@ -485,23 +485,23 @@ std::string SimMeshDataAccessor<GridView,partitions>::
|
|||||||
getPartitionTypeString()
|
getPartitionTypeString()
|
||||||
{
|
{
|
||||||
if (this->dunePartition_ == Dune::Partitions::all)
|
if (this->dunePartition_ == Dune::Partitions::all)
|
||||||
return (std::string("Dune::Partitions::all"));
|
return std::string("Dune::Partitions::all");
|
||||||
if (this->dunePartition_ == Dune::Partitions::interior)
|
if (this->dunePartition_ == Dune::Partitions::interior)
|
||||||
return (std::string("Dune::Partitions::interior"));
|
return std::string("Dune::Partitions::interior");
|
||||||
if (this->dunePartition_ == Dune::Partitions::interiorBorder)
|
if (this->dunePartition_ == Dune::Partitions::interiorBorder)
|
||||||
return (std::string("Dune::Partitions::interiorBorder"));
|
return std::string("Dune::Partitions::interiorBorder");
|
||||||
if (this->dunePartition_ == Dune::Partitions::interiorBorderOverlap)
|
if (this->dunePartition_ == Dune::Partitions::interiorBorderOverlap)
|
||||||
return (std::string("Dune::Partitions::interiorBorderOverlap"));
|
return std::string("Dune::Partitions::interiorBorderOverlap");
|
||||||
if (this->dunePartition_ == Dune::Partitions::front)
|
if (this->dunePartition_ == Dune::Partitions::front)
|
||||||
return (std::string("Dune::Partitions::front"));
|
return std::string("Dune::Partitions::front");
|
||||||
if (this->dunePartition_ == Dune::Partitions::interiorBorderOverlapFront)
|
if (this->dunePartition_ == Dune::Partitions::interiorBorderOverlapFront)
|
||||||
return (std::string("Dune::Partitions::InteriorBorderOverlapFront"));
|
return std::string("Dune::Partitions::InteriorBorderOverlapFront");
|
||||||
if (this->dunePartition_ == Dune::Partitions::border)
|
if (this->dunePartition_ == Dune::Partitions::border)
|
||||||
return (std::string("Dune::Partitions::border"));
|
return std::string("Dune::Partitions::border");
|
||||||
if (this->dunePartition_ == Dune::Partitions::ghost)
|
if (this->dunePartition_ == Dune::Partitions::ghost)
|
||||||
return (std::string("Dune::Partitions::ghost"));
|
return std::string("Dune::Partitions::ghost");
|
||||||
|
|
||||||
return (std::string("Unknown Dune::PartitionSet<>"));
|
return std::string("Unknown Dune::PartitionSet<>");
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class GridView, unsigned int partitions>
|
template <class GridView, unsigned int partitions>
|
||||||
|
Loading…
Reference in New Issue
Block a user