Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
OPAL
src
Commits
176f5c9d
Commit
176f5c9d
authored
Jul 16, 2020
by
frey_m
Browse files
remove duplicated hasGeometryChanged function + variable
parent
c098ae20
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
19 deletions
+13
-19
src/Solvers/ArbitraryDomain.h
src/Solvers/ArbitraryDomain.h
+0
-6
src/Solvers/BoxCornerDomain.h
src/Solvers/BoxCornerDomain.h
+0
-4
src/Solvers/EllipticDomain.h
src/Solvers/EllipticDomain.h
+0
-6
src/Solvers/IrregularDomain.h
src/Solvers/IrregularDomain.h
+13
-1
src/Solvers/MGPoissonSolver.h
src/Solvers/MGPoissonSolver.h
+0
-2
No files found.
src/Solvers/ArbitraryDomain.h
View file @
176f5c9d
...
...
@@ -86,9 +86,6 @@ public:
void
setYRangeMax
(
double
ymax
){
maxCoords_m
(
1
)
=
ymax
;
}
void
setZRangeMax
(
double
zmax
){
maxCoords_m
(
2
)
=
zmax
;
}
bool
hasGeometryChanged
()
{
return
hasGeometryChanged_m
;
}
private:
BoundaryGeometry
*
bgeom_m
;
...
...
@@ -131,9 +128,6 @@ private:
// Interpolation type
int
interpolationMethod
;
// Flag indicating if geometry has changed for the current time-step
bool
hasGeometryChanged_m
;
Vector_t
Geo_nr_m
;
Vector_t
Geo_hr_m
;
Vector_t
geomCentroid_m
;
...
...
src/Solvers/BoxCornerDomain.h
View file @
176f5c9d
...
...
@@ -122,8 +122,6 @@ public:
//TODO: ?
int
getStartIdx
()
{
return
0
;}
bool
hasGeometryChanged
()
{
return
hasGeometryChanged_m
;
}
private:
//XXX: since the Y coorindate is dependent on the Z value we need (int,
...
...
@@ -178,8 +176,6 @@ private:
/// interpolation type
int
interpolationMethod
;
/// flag indicating if geometry has changed for the current time-step
bool
hasGeometryChanged_m
;
/// for debug reasons
std
::
ofstream
os_m
;
...
...
src/Solvers/EllipticDomain.h
View file @
176f5c9d
...
...
@@ -85,9 +85,6 @@ public:
double
getZRangeMin
()
{
return
zMin_m
;
}
double
getZRangeMax
()
{
return
zMax_m
;
}
bool
hasGeometryChanged
()
{
return
hasGeometryChanged_m
;
}
void
resizeMesh
(
Vector_t
&
origin
,
Vector_t
&
hr
,
const
Vector_t
&
rmin
,
const
Vector_t
&
rmax
,
double
dh
);
...
...
@@ -121,9 +118,6 @@ private:
/// interpolation type
int
interpolationMethod_m
;
/// flag indicating if geometry has changed for the current time-step
bool
hasGeometryChanged_m
;
/// conversion from (x,y) to index in xy plane
inline
int
toCoordIdx
(
int
x
,
int
y
)
{
return
y
*
nr
[
0
]
+
x
;
}
...
...
src/Solvers/IrregularDomain.h
View file @
176f5c9d
...
...
@@ -133,7 +133,9 @@ public:
virtual
double
getZRangeMax
()
=
0
;
virtual
int
getIdx
(
int
x
,
int
y
,
int
z
)
=
0
;
virtual
bool
hasGeometryChanged
()
=
0
;
bool
hasGeometryChanged
();
virtual
~
IrregularDomain
()
{};
virtual
void
resizeMesh
(
Vector_t
&
origin
,
Vector_t
&
hr
,
...
...
@@ -169,10 +171,20 @@ protected:
/// mean position of bunch (m)
Vector_t
rMean_m
;
Quaternion_t
globalToLocalQuaternion_m
;
/// flag indicating if geometry has changed for the current time-step
bool
hasGeometryChanged_m
;
};
inline
bool
IrregularDomain
::
hasGeometryChanged
()
{
return
hasGeometryChanged_m
;
}
#endif
// vi: set et ts=4 sw=4 sts=4:
// Local Variables:
// mode:c
...
...
src/Solvers/MGPoissonSolver.h
View file @
176f5c9d
...
...
@@ -150,8 +150,6 @@ private:
/// container for multiple geometries
std
::
vector
<
BoundaryGeometry
*>
geometries_m
;
/// flag notifying us that the geometry (discretization) has changed
bool
hasGeometryChanged_m
;
int
repartFreq_m
;
/// flag specifying if we are verbose
bool
verbose_m
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment