Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sdpm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
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
Aerospace and Mechanical Engineering
sdpm
Commits
f075e5ea
Commit
f075e5ea
authored
2 years ago
by
Adrien Crovato
Browse files
Options
Downloads
Patches
Plain Diff
Fix compilation linux
parent
035acd9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
USCSDPM v1.0
Pipeline
#11025
passed
2 years ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sdpm/src/sdpmBuilder.cpp
+1
-1
1 addition, 1 deletion
sdpm/src/sdpmBuilder.cpp
sdpm/src/sdpmGmshImport.cpp
+2
-2
2 additions, 2 deletions
sdpm/src/sdpmGmshImport.cpp
sdpm/src/sdpmMesh.h
+2
-2
2 additions, 2 deletions
sdpm/src/sdpmMesh.h
with
5 additions
and
5 deletions
sdpm/src/sdpmBuilder.cpp
+
1
−
1
View file @
f075e5ea
...
...
@@ -55,7 +55,7 @@ sdpmMatrixXd Builder::gatherCoords(bool symy, Element const *ej)
// Get coordinates
Eigen
::
MatrixXd
coords
(
3
,
nV
);
for
(
in
t
j
=
0
;
j
<
nV
;
++
j
)
for
(
size_
t
j
=
0
;
j
<
nV
;
++
j
)
coords
.
col
(
j
)
=
nods
[
nV
-
1
-
j
]
->
getCoords
();
if
(
symy
)
coords
.
row
(
1
)
=
-
coords
.
row
(
1
);
...
...
This diff is collapsed.
Click to expand it.
sdpm/src/sdpmGmshImport.cpp
+
2
−
2
View file @
f075e5ea
...
...
@@ -90,7 +90,7 @@ void GmshImport::readPhysicalTags(FILE *file)
{
Tag
*
tag
=
new
Tag
(
no
,
name
,
dim
);
_tagMap
[
no
]
=
tag
;
_msh
.
addTag
(
static_cast
<
std
::
string
>
(
name
)
,
tag
);
_msh
.
addTag
(
name
,
tag
);
}
}
}
...
...
@@ -150,7 +150,7 @@ void GmshImport::readElements(FILE *file)
if
(
nbtags
>
1
)
{
size_t
idx
;
for
(
size_
t
itag
=
1
;
itag
<
nbtags
;
++
itag
)
for
(
in
t
itag
=
1
;
itag
<
nbtags
;
++
itag
)
if
(
fscanf
(
file
,
"%zu"
,
&
idx
)
!=
1
)
throw
std
::
runtime_error
(
"GmshImport::readElements: error reading tags!
\n
"
);
}
...
...
This diff is collapsed.
Click to expand it.
sdpm/src/sdpmMesh.h
+
2
−
2
View file @
f075e5ea
...
...
@@ -50,10 +50,10 @@ public:
std
::
map
<
std
::
string
,
Tag
*>
const
&
getTags
()
const
{
return
_tags
;
}
#ifndef SWIG
// Setters
void
setName
(
std
::
string
&
n
)
{
_name
=
n
;
}
void
setName
(
std
::
string
const
&
n
)
{
_name
=
n
;
}
void
addNode
(
Node
*
n
)
{
_nodes
.
push_back
(
n
);
}
void
addElement
(
Element
*
e
)
{
_elements
.
push_back
(
e
);
}
void
addTag
(
std
::
string
&
n
,
Tag
*
t
)
{
_tags
[
n
]
=
t
;
}
void
addTag
(
std
::
string
const
&
n
,
Tag
*
t
)
{
_tags
[
n
]
=
t
;
}
void
reserveNodes
(
size_t
n
)
{
_nodes
.
reserve
(
n
);
}
void
reserveElements
(
size_t
n
)
{
_elements
.
reserve
(
n
);
}
#endif
...
...
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