Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
acts-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
acts
acts-core
Commits
cc6f61b7
Commit
cc6f61b7
authored
7 years ago
by
Paul Gessinger
Committed by
Paul Gessinger
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix tests to run with sa-no-te branch
parent
a5015c03
No related branches found
No related tags found
1 merge request
!413
Serialization to variant_data and json
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tests/Surfaces/SurfaceArrayTests.cpp
+6
-6
6 additions, 6 deletions
Tests/Surfaces/SurfaceArrayTests.cpp
with
6 additions
and
6 deletions
Tests/Surfaces/SurfaceArrayTests.cpp
+
6
−
6
View file @
cc6f61b7
...
@@ -291,12 +291,12 @@ namespace Test {
...
@@ -291,12 +291,12 @@ namespace Test {
R
*
std
::
sin
(
loc
[
0
]
-
angleShift
),
R
*
std
::
sin
(
loc
[
0
]
-
angleShift
),
loc
[
1
]);
loc
[
1
]);
};
};
SurfaceArray
::
SurfaceGridLookup
<
decltype
(
phiAxis
),
decltype
(
zAxis
)
>
sl
(
auto
sl
=
std
::
make_unique
<
SurfaceArray
::
SurfaceGridLookup
<
decltype
(
phiAxis
),
decltype
(
zAxis
)
>
>
(
transform
,
transform
,
itransform
,
itransform
,
std
::
make_tuple
(
std
::
move
(
phiAxis
),
std
::
move
(
zAxis
)));
std
::
make_tuple
(
std
::
move
(
phiAxis
),
std
::
move
(
zAxis
)));
sl
.
fill
(
brl
);
sl
->
fill
(
brl
);
SurfaceArray
sa
(
s
l
,
brl
);
SurfaceArray
sa
(
s
td
::
move
(
sl
)
,
brl
);
sa
.
dump
(
std
::
cout
);
sa
.
dump
(
std
::
cout
);
variant_data
data
=
sa
.
toVariantData
();
variant_data
data
=
sa
.
toVariantData
();
...
@@ -353,13 +353,13 @@ namespace Test {
...
@@ -353,13 +353,13 @@ namespace Test {
auto
itransform
=
[](
const
std
::
array
<
double
,
1
>&
loc
)
{
auto
itransform
=
[](
const
std
::
array
<
double
,
1
>&
loc
)
{
return
Vector3D
(
0
,
0
,
loc
[
0
]);
return
Vector3D
(
0
,
0
,
loc
[
0
]);
};
};
SurfaceArray
::
SurfaceGridLookup
<
decltype
(
zAxis
)
>
sl
(
auto
sl
=
std
::
make_unique
<
SurfaceArray
::
SurfaceGridLookup
<
decltype
(
zAxis
)
>
>
(
transform
,
itransform
,
std
::
make_tuple
(
zAxis
));
transform
,
itransform
,
std
::
make_tuple
(
zAxis
));
// same thing in 1D
// same thing in 1D
SrfVec
line
=
straightLineSurfaces
();
SrfVec
line
=
straightLineSurfaces
();
sl
.
fill
(
line
);
sl
->
fill
(
line
);
SurfaceArray
sa
(
s
l
,
line
);
SurfaceArray
sa
(
s
td
::
move
(
sl
)
,
line
);
sa
.
dump
(
std
::
cout
);
sa
.
dump
(
std
::
cout
);
...
...
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