Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
code
pugs
Commits
1decef79
Commit
1decef79
authored
7 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
removed few test outputs
parent
2be59dc1
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!2
Develop
,
!1
Develop
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.cpp
+6
-52
6 additions, 52 deletions
main.cpp
with
6 additions
and
52 deletions
main.cpp
+
6
−
52
View file @
1decef79
...
...
@@ -132,7 +132,7 @@ int main(int argc, char *argv[])
method_cost_map
[
"AcousticSolverWithMesh"
]
=
timer
.
seconds
();
{
{
// gnuplot output for density
const
Kokkos
::
View
<
const
Rd
*>
xj
=
mesh_data
.
xj
();
const
Kokkos
::
View
<
const
double
*>
rhoj
=
unknowns
.
rhoj
();
std
::
ofstream
fout
(
"rho"
);
...
...
@@ -143,22 +143,6 @@ int main(int argc, char *argv[])
}
Kokkos
::
View
<
TinyVector
<
2
,
double
>*
[
2
]
>
test
(
"test"
,
10
);
constexpr
size_t
N
=
3
;
std
::
cout
<<
"sizeof(TinyVector<"
<<
N
<<
",double>)="
<<
sizeof
(
TinyVector
<
N
,
double
>
)
<<
std
::
endl
;
std
::
cout
<<
"sizeof(double)="
<<
sizeof
(
double
)
<<
std
::
endl
;
std
::
cout
<<
"sizeof(size_t) = "
<<
sizeof
(
size_t
)
<<
std
::
endl
;
std
::
cout
<<
"sizeof(int) = "
<<
sizeof
(
int
)
<<
std
::
endl
;
std
::
cout
<<
"sizeof(unsigned int) = "
<<
sizeof
(
unsigned
int
)
<<
std
::
endl
;
std
::
cout
<<
"sizeof(unsigned short) = "
<<
sizeof
(
unsigned
short
)
<<
std
::
endl
;
std
::
cout
<<
"std::numeric_limits<size_t>::max() = "
<<
std
::
numeric_limits
<
size_t
>::
max
()
<<
std
::
endl
;
std
::
cout
<<
"std::numeric_limits<int>::max() = "
<<
std
::
numeric_limits
<
int
>::
max
()
<<
std
::
endl
;
std
::
cout
<<
"std::numeric_limits<unsigned int>::max() = "
<<
std
::
numeric_limits
<
unsigned
int
>::
max
()
<<
std
::
endl
;
std
::
cout
<<
"std::numeric_limits<short>::max() = "
<<
std
::
numeric_limits
<
short
>::
max
()
<<
std
::
endl
;
std
::
cout
<<
"std::numeric_limits<unsigned short>::max() = "
<<
std
::
numeric_limits
<
unsigned
short
>::
max
()
<<
std
::
endl
;
std
::
cout
<<
"std::numeric_limits<char>::max() = "
<<
unsigned
(
std
::
numeric_limits
<
char
>::
max
())
<<
std
::
endl
;
std
::
cout
<<
"std::numeric_limits<unsigned char>::max() = "
<<
unsigned
(
std
::
numeric_limits
<
unsigned
char
>::
max
())
<<
std
::
endl
;
Kokkos
::
finalize
();
std
::
cout
<<
"----------------------
\n
"
;
...
...
@@ -169,46 +153,16 @@ int main(int argc, char *argv[])
}
for
(
const
auto
&
method_cost
:
method_cost_map
)
{
std
::
cout
<<
"* ["
<<
std
::
setw
(
size
)
<<
std
::
left
std
::
cout
<<
"* ["
<<
rang
::
fgB
::
cyan
<<
std
::
setw
(
size
)
<<
std
::
left
<<
method_cost
.
first
<<
rang
::
fg
::
reset
<<
"] Execution time: "
<<
rang
::
style
::
bold
<<
method_cost
.
second
<<
rang
::
style
::
reset
<<
'\n'
;
}
TinyVector
<
2
>
x
=
zero
;
TinyVector
<
2
>
y
{
1
,
2
};
TinyVector
<
6
>
kk
{
1
,
2
,
3
,
4
,
5
,
6
};
x
=
TinyVector
<
2
>
{
3
,
2
};
std
::
cout
<<
x
<<
"-"
<<
y
<<
"="
<<
x
-
y
<<
std
::
endl
;
std
::
cout
<<
x
<<
"+"
<<
y
<<
"="
<<
x
+
y
<<
std
::
endl
;
std
::
cout
<<
"3*"
<<
x
<<
'='
<<
3
*
x
<<
std
::
endl
;
x
[
1
]
=
3
;
y
[
1
]
=
0.1
;
std
::
cout
<<
"< "
<<
x
<<
" | "
<<
y
<<
" > = "
<<
(
x
,
y
)
<<
std
::
endl
;
TinyMatrix
<
2
>
Z
=
zero
;
TinyMatrix
<
2
>
A
(
1
,
2
,
3
,
4
);
TinyMatrix
<
2
>
B
=
identity
;
B
(
1
,
1
)
=
2
;
std
::
cout
<<
"A="
<<
A
<<
'\n'
;
std
::
cout
<<
"B="
<<
B
<<
'\n'
;
std
::
cout
<<
"2A="
<<
2
*
A
<<
'\n'
;
std
::
cout
<<
"A+B="
<<
A
+
B
<<
'\n'
;
std
::
cout
<<
"A-B="
<<
A
-
B
<<
'\n'
;
std
::
cout
<<
"AB="
<<
A
*
B
<<
'\n'
;
std
::
cout
<<
"Ax="
<<
A
*
x
<<
'\n'
;
std
::
cout
<<
"x tens y"
<<
tensorProduct
(
x
,
y
)
<<
'\n'
;
return
0
;
}
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