Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
755c7740
Commit
755c7740
authored
7 years ago
by
Martin Schneider
Browse files
Options
Downloads
Patches
Plain Diff
[opm][geometry] Correct opm-grid patch
Adapt geometry() functions of opm-grid
parent
87e5967e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!600
[WIP][components][plotproperties] Add a source file to plot properties of some components
,
!526
[opm] Update dumux to newest opm release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/opm-grid-2017.04.patch
+32
-1
32 additions, 1 deletion
patches/opm-grid-2017.04.patch
with
32 additions
and
1 deletion
patches/opm-grid-2017.04.patch
+
32
−
1
View file @
755c7740
diff --git a/dune/grid/cpgrid/Entity.hpp b/dune/grid/cpgrid/Entity.hpp
diff --git a/dune/grid/cpgrid/Entity.hpp b/dune/grid/cpgrid/Entity.hpp
index eadcb33..
290fbb0
100644
index eadcb33..
0efcedd
100644
--- a/dune/grid/cpgrid/Entity.hpp
--- a/dune/grid/cpgrid/Entity.hpp
+++ b/dune/grid/cpgrid/Entity.hpp
+++ b/dune/grid/cpgrid/Entity.hpp
@@ -148,7 +148,7 @@
namespace Dune
}
/// Returns the geometry of the entity (does not depend on its orientation).
- const Geometry& geometry() const;
+ Geometry geometry() const;
/// We do not support refinement, so level() is always 0.
int level() const
@@ -182,7 +182,7 @@
namespace Dune
@@ -182,7 +182,7 @@
namespace Dune
/// The count of subentities of codimension cc
/// The count of subentities of codimension cc
unsigned int subEntities ( const unsigned int cc ) const
unsigned int subEntities ( const unsigned int cc ) const
...
@@ -11,6 +20,15 @@ index eadcb33..290fbb0 100644
...
@@ -11,6 +20,15 @@ index eadcb33..290fbb0 100644
if (cc == 0) {
if (cc == 0) {
return 1;
return 1;
} else if (cc == 3) {
} else if (cc == 3) {
@@ -412,7 +412,7 @@
namespace Dune {
namespace cpgrid {
template <int codim>
-const typename Entity<codim>::Geometry& Entity<codim>::geometry() const
+typename Entity<codim>::Geometry Entity<codim>::geometry() const
{
return pgrid_->geomVector<codim>()[*this];
}
diff --git a/dune/grid/cpgrid/Geometry.hpp b/dune/grid/cpgrid/Geometry.hpp
diff --git a/dune/grid/cpgrid/Geometry.hpp b/dune/grid/cpgrid/Geometry.hpp
index 86d82a5..10c7e14 100644
index 86d82a5..10c7e14 100644
--- a/dune/grid/cpgrid/Geometry.hpp
--- a/dune/grid/cpgrid/Geometry.hpp
...
@@ -68,6 +86,19 @@ index 86d82a5..10c7e14 100644
...
@@ -68,6 +86,19 @@ index 86d82a5..10c7e14 100644
}
}
/// Using the cube type for all entities now (cells and vertices),
/// Using the cube type for all entities now (cells and vertices),
diff --git a/dune/grid/cpgrid/Intersection.hpp b/dune/grid/cpgrid/Intersection.hpp
index f7152ef..cf01473 100644
--- a/dune/grid/cpgrid/Intersection.hpp
+++ b/dune/grid/cpgrid/Intersection.hpp
@@ -188,7 +188,7 @@
namespace Dune
/// @brief
/// @todo Doc me!
/// @return
- const Geometry& geometry() const
+ Geometry geometry() const
{
return global_geom_;
}
diff --git a/dune/grid/polyhedralgrid/geometry.hh b/dune/grid/polyhedralgrid/geometry.hh
diff --git a/dune/grid/polyhedralgrid/geometry.hh b/dune/grid/polyhedralgrid/geometry.hh
index 64a15fc..9c3c0b4 100644
index 64a15fc..9c3c0b4 100644
--- a/dune/grid/polyhedralgrid/geometry.hh
--- a/dune/grid/polyhedralgrid/geometry.hh
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment