Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dmitri Naumov
ogs
Commits
20e1dabe
Commit
20e1dabe
authored
3 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[MaL] Make TemplatePoint::_x a private member.
Using (const) access functions in two cases of direct member access.
parent
a4cf5c61
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Applications/FileIO/Gmsh/GMSHPoint.cpp
+2
-2
2 additions, 2 deletions
Applications/FileIO/Gmsh/GMSHPoint.cpp
MathLib/TemplatePoint.h
+1
-1
1 addition, 1 deletion
MathLib/TemplatePoint.h
MeshLib/Node.cpp
+4
-4
4 additions, 4 deletions
MeshLib/Node.cpp
with
7 additions
and
7 deletions
Applications/FileIO/Gmsh/GMSHPoint.cpp
+
2
−
2
View file @
20e1dabe
...
@@ -25,8 +25,8 @@ GMSHPoint::GMSHPoint(GeoLib::Point const& pnt, std::size_t id,
...
@@ -25,8 +25,8 @@ GMSHPoint::GMSHPoint(GeoLib::Point const& pnt, std::size_t id,
void
GMSHPoint
::
write
(
std
::
ostream
&
os
)
const
void
GMSHPoint
::
write
(
std
::
ostream
&
os
)
const
{
{
os
<<
"Point("
<<
getID
()
<<
") = {"
<<
_x
[
0
]
<<
", "
<<
_x
[
1
]
<<
", "
os
<<
"Point("
<<
getID
()
<<
") = {"
<<
(
*
this
)
[
0
]
<<
", "
<<
(
*
this
)[
1
]
<<
_x
[
2
];
<<
", "
<<
(
*
this
)
[
2
];
if
(
fabs
(
_mesh_density
)
>
std
::
numeric_limits
<
double
>::
epsilon
())
if
(
fabs
(
_mesh_density
)
>
std
::
numeric_limits
<
double
>::
epsilon
())
{
{
os
<<
", "
<<
_mesh_density
<<
"};"
;
os
<<
", "
<<
_mesh_density
<<
"};"
;
...
...
This diff is collapsed.
Click to expand it.
MathLib/TemplatePoint.h
+
1
−
1
View file @
20e1dabe
...
@@ -95,7 +95,7 @@ public:
...
@@ -95,7 +95,7 @@ public:
std
::
copy
(
std
::
istream_iterator
<
T
>
(
is
),
std
::
istream_iterator
<
T
>
(),
_x
.
begin
());
std
::
copy
(
std
::
istream_iterator
<
T
>
(
is
),
std
::
istream_iterator
<
T
>
(),
_x
.
begin
());
}
}
pr
otec
te
d
:
pr
iva
te
:
std
::
array
<
T
,
DIM
>
_x
;
std
::
array
<
T
,
DIM
>
_x
;
};
};
...
...
This diff is collapsed.
Click to expand it.
MeshLib/Node.cpp
+
4
−
4
View file @
20e1dabe
...
@@ -34,13 +34,13 @@ Node::Node(double x, double y, double z, std::size_t id)
...
@@ -34,13 +34,13 @@ Node::Node(double x, double y, double z, std::size_t id)
{
{
}
}
Node
::
Node
(
const
Node
&
node
)
:
MathLib
::
Point3dWithID
(
node
.
_x
,
node
.
getID
())
{}
Node
::
Node
(
const
Node
&
node
)
:
MathLib
::
Point3dWithID
(
node
,
node
.
getID
())
{}
void
Node
::
updateCoordinates
(
double
x
,
double
y
,
double
z
)
void
Node
::
updateCoordinates
(
double
x
,
double
y
,
double
z
)
{
{
_x
[
0
]
=
x
;
(
*
this
)
[
0
]
=
x
;
_x
[
1
]
=
y
;
(
*
this
)
[
1
]
=
y
;
_x
[
2
]
=
z
;
(
*
this
)
[
2
]
=
z
;
const
std
::
size_t
nElements
(
this
->
_elements
.
size
());
const
std
::
size_t
nElements
(
this
->
_elements
.
size
());
for
(
std
::
size_t
i
=
0
;
i
<
nElements
;
i
++
)
for
(
std
::
size_t
i
=
0
;
i
<
nElements
;
i
++
)
...
...
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