Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
INMOST
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Kirill Terekhov
INMOST
Commits
1a68f59b
Commit
1a68f59b
authored
Apr 18, 2018
by
Kirill Terekhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another fix
parent
f00fd658
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
Source/Mesh/mesh.cpp
Source/Mesh/mesh.cpp
+5
-12
No files found.
Source/Mesh/mesh.cpp
View file @
1a68f59b
...
...
@@ -686,8 +686,8 @@ namespace INMOST
Tag
Mesh
::
DeleteTag
(
Tag
tag
,
ElementType
type_mask
)
{
//std::cout << "Delete tag " << tag.GetTagName() << " type " << DataTypeName(tag.GetDataType()) << " on ";
for
(
ElementType
etype
=
NODE
;
etype
<=
MESH
;
etype
=
NextElementType
(
etype
))
if
(
(
etype
&
type_mask
)
&&
tag
.
isDefined
(
etype
)
)
std
::
cout
<<
ElementTypeName
(
etype
)
<<
" "
;
std
::
cout
<<
std
::
endl
;
//
for(ElementType etype = NODE; etype <= MESH; etype = NextElementType(etype)) if( (etype & type_mask) && tag.isDefined(etype) ) std::cout << ElementTypeName(etype) << " ";
//
std::cout << std::endl;
//deallocate data on elements
for
(
ElementType
etype
=
NODE
;
etype
<=
MESH
;
etype
=
NextElementType
(
etype
))
{
...
...
@@ -1875,16 +1875,9 @@ namespace INMOST
if
(
data_pos
==
ENUMUNDEF
)
continue
;
TagManager
::
dense_sub_type
&
arr
=
GetDenseData
(
data_pos
);
INMOST_DATA_ENUM_TYPE
record_size
=
t
->
GetRecordSize
();
memcpy
(
&
arr
[
new_addr
],
&
arr
[
old_addr
],
record_size
);
#if defined(USE_AUTODIFF)
if
(
t
->
GetDataType
()
==
DATA_VARIABLE
)
{
variable
*
p
=
static_cast
<
variable
*>
(
static_cast
<
void
*>
(
&
arr
[
old_addr
]));
for
(
INMOST_DATA_ENUM_TYPE
j
=
0
;
j
<
t
->
GetSize
();
++
j
)
p
[
j
]
=
0.0
;
}
else
#endif
memset
(
&
arr
[
old_addr
],
0
,
record_size
);
TagManager
::
CopyData
(
*
t
,
static_cast
<
void
*>
(
&
arr
[
new_addr
]),
static_cast
<
void
*>
(
&
arr
[
old_addr
]));
//memcpy(&arr[new_addr],&arr[old_addr],record_size);
DelDenseData
(
ComposeHandle
(
etypenum
,
old_addr
),
*
t
);
}
}
}
...
...
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