Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Micropp
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
Packages
Packages
Container Registry
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
ggiuntol
Micropp
Commits
5ef325b3
Commit
5ef325b3
authored
Jul 17, 2019
by
Guido Giuntoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing benchmark-sc2019.cpp and test_damage.cpp
parent
3f8d0975
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
test/benchmark-sc2019.cpp
test/benchmark-sc2019.cpp
+8
-6
test/test_damage.cpp
test/test_damage.cpp
+1
-0
No files found.
test/benchmark-sc2019.cpp
View file @
5ef325b3
...
...
@@ -39,7 +39,7 @@ using namespace std::chrono;
double
eps_vs_t
(
double
time
,
double
t_final
)
{
const
double
eps_max
=
4.0e-3
;
const
double
eps_max
=
1.0e-1
;
double
eps
=
eps_max
*
time
;
return
eps
;
}
...
...
@@ -78,14 +78,16 @@ int main(int argc, char **argv)
mic_params
.
size
[
0
]
=
n
;
mic_params
.
size
[
1
]
=
n
;
mic_params
.
size
[
2
]
=
n
;
mic_params
.
type
=
MIC_HOMOGENEOUS
;
mic_params
.
geo_params
[
0
]
=
0.1
;
mic_params
.
geo_params
[
1
]
=
0.02
;
mic_params
.
geo_params
[
2
]
=
0.01
;
mic_params
.
subiterations
=
true
;
mic_params
.
nsubiterations
=
10
;
material_set
(
&
mic_params
.
materials
[
0
],
2
,
6.0e7
,
0.25
,
0.0
,
0.0
,
5.0e4
);
material_set
(
&
mic_params
.
materials
[
1
],
0
,
3.0e7
,
0.25
,
0.0
,
0.0
,
0.0
);
material_set
(
&
mic_params
.
materials
[
2
],
0
,
3.0e7
,
0.25
,
0.0
,
0.0
,
0.0
);
//mic_params.subiterations = true;
//mic_params.nsubiterations = 10;
mic_params
.
nr_max_its
=
12
;
material_set
(
&
mic_params
.
materials
[
0
],
2
,
1.0e7
,
0.3
,
0.0
,
0.0
,
1.0e5
);
material_set
(
&
mic_params
.
materials
[
1
],
0
,
3.0e7
,
0.3
,
0.0
,
0.0
,
0.0
);
material_set
(
&
mic_params
.
materials
[
2
],
0
,
3.0e7
,
0.3
,
0.0
,
0.0
,
0.0
);
mic_params
.
mpi_rank
=
rank
;
mic_params
.
calc_ctan_lin
=
false
;
mic_params
.
lin_stress
=
false
;
...
...
test/test_damage.cpp
View file @
5ef325b3
...
...
@@ -81,6 +81,7 @@ int main (int argc, char *argv[])
mic_params
.
size
[
1
]
=
n
;
mic_params
.
size
[
2
]
=
n
;
mic_params
.
type
=
MIC_HOMOGENEOUS
;
mic_params
.
nr_max_its
=
8
;
material_set
(
&
mic_params
.
materials
[
0
],
2
,
1.0e7
,
0.3
,
0.0
,
0.0
,
1.0e5
);
material_set
(
&
mic_params
.
materials
[
1
],
0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
);
material_set
(
&
mic_params
.
materials
[
2
],
0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
);
...
...
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