Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hurstel
CGoGN
Commits
409564ae
Commit
409564ae
authored
Mar 17, 2014
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update mark vector of Dart & Cell Marker after load
parent
3b468c90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
src/Topology/generic/genericmap.cpp
src/Topology/generic/genericmap.cpp
+20
-12
No files found.
src/Topology/generic/genericmap.cpp
View file @
409564ae
...
...
@@ -326,6 +326,17 @@ void GenericMap::removeThreadMarker(unsigned int nb)
void
GenericMap
::
restore_shortcuts
()
{
// NB THREADS
std
::
vector
<
std
::
string
>
typeMark
;
unsigned
int
nbatt0
=
m_attribs
[
0
].
getAttributesTypes
(
typeMark
);
m_nbThreads
=
0
;
for
(
unsigned
int
i
=
0
;
i
<
nbatt0
;
++
i
)
{
if
(
typeMark
[
i
]
==
"Mark"
)
++
m_nbThreads
;
}
// EMBEDDING
// get container of dart orbit
...
...
@@ -384,14 +395,14 @@ void GenericMap::restore_shortcuts()
AttributeMultiVector
<
Mark
>*
amvMark
=
cont
.
getDataVector
<
Mark
>
(
i
);
m_markTables
[
orbit
][
thread
]
=
amvMark
;
if
((
orbit
==
DART
)
&&
(
thread
==
0
))
// for
Marker of dart of thread O keep the boundary marker
{
if
((
orbit
==
DART
)
&&
(
thread
==
0
))
// for
Dart Marker of thread O
{
// clear all marks expect boundary marks
Mark
m
(
m_boundaryMarkers
[
0
]
+
m_boundaryMarkers
[
1
]);
m
.
invert
();
for
(
unsigned
int
i
=
cont
.
begin
();
i
!=
cont
.
end
();
cont
.
next
(
i
))
amvMark
->
operator
[](
i
).
unsetMark
(
m
);
}
else
// for others clear all
else
// for others clear all
{
for
(
unsigned
int
i
=
cont
.
begin
();
i
!=
cont
.
end
();
cont
.
next
(
i
))
amvMark
->
operator
[](
i
).
clear
();
...
...
@@ -400,16 +411,13 @@ void GenericMap::restore_shortcuts()
}
}
// NB THREADS
// restore mark vectors in Dart & Cell Markers
for
(
std
::
vector
<
DartMarkerGen
*>::
iterator
it
=
dartMarkers
.
begin
();
it
!=
dartMarkers
.
end
();
++
it
)
(
*
it
)
->
updateMarkVector
(
m_markTables
[
DART
][(
*
it
)
->
getThread
()]);
for
(
std
::
vector
<
CellMarkerGen
*>::
iterator
it
=
cellMarkers
.
begin
();
it
!=
cellMarkers
.
end
();
++
it
)
(
*
it
)
->
updateMarkVector
(
m_markTables
[(
*
it
)
->
getCell
()][(
*
it
)
->
getThread
()]);
std
::
vector
<
std
::
string
>
typeMark
;
unsigned
int
nbatt0
=
m_attribs
[
0
].
getAttributesTypes
(
typeMark
);
m_nbThreads
=
0
;
for
(
unsigned
int
i
=
0
;
i
<
nbatt0
;
++
i
)
{
if
(
typeMark
[
i
]
==
"Mark"
)
++
m_nbThreads
;
}
}
void
GenericMap
::
dumpAttributesAndMarkers
()
...
...
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